Allow adbd to use graphics fds

Bug: 35708449
Test: AS screen capture
Change-Id: I53f1604e1ee9c9b32c6932f1b8944708f5012e5f
This commit is contained in:
Chia-I Wu 2017-02-24 07:23:45 -08:00
parent 3355de1398
commit 8585788d9f

View file

@ -70,6 +70,9 @@ binder_call(adbd, surfaceflinger)
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;