Allow adbd to use graphics fds
Bug: 35708449
Test: AS screen capture
Change-Id: I53f1604e1ee9c9b32c6932f1b8944708f5012e5f
diff --git a/private/adbd.te b/private/adbd.te
index 5b0b8f2..1865b2a 100644
--- a/private/adbd.te
+++ b/private/adbd.te
@@ -70,6 +70,9 @@
allow adbd gpu_device:chr_file rw_file_perms;
allow adbd ion_device:chr_file rw_file_perms;
r_dir_file(adbd, system_file)
+# Needed for Android Studio screenshot
+hwbinder_use(adbd)
+allow adbd hal_graphics_allocator:fd use;
# Read /data/misc/adb/adb_keys.
allow adbd adb_keys_file:dir search;