From 7bd7d417bf9a1b2457a81661067aa204c9b0c4ee Mon Sep 17 00:00:00 2001 From: Steven Moreland <smoreland@google.com> Date: Fri, 24 Mar 2017 18:38:43 -0700 Subject: [PATCH] adbd: use hal_client_domain Bug: 36546152 Bug: 36278706 Test: `adb shell screencap ...` and pull and visually verify image. Change-Id: Iab2ddcfc145cb7f55104cd8f1ce0d58286bca282 --- private/adbd.te | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/private/adbd.te b/private/adbd.te index 9b84603d0..73302acd1 100644 --- a/private/adbd.te +++ b/private/adbd.te @@ -71,9 +71,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; + +# Needed for various screenshots +hal_client_domain(adbd, hal_graphics_allocator) # Read /data/misc/adb/adb_keys. allow adbd adb_keys_file:dir search; -- GitLab