From bad4e91dd2c7c043707d93b347b06d45f1f9b25b Mon Sep 17 00:00:00 2001 From: Doug Zongker Date: Thu, 10 Jul 2014 13:40:25 -0700 Subject: [PATCH] support newer-style adbd interface in recovery Support opening the ffs-based interface for adbd in recovery. (Copied from adbd.te.) Bug: 16183878 Change-Id: Ib80e5b910d9ad4252cb80e7ce2f85e478cd94816 --- recovery.te | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/recovery.te b/recovery.te index 66aa3dfc0..aac201b8d 100644 --- a/recovery.te +++ b/recovery.te @@ -52,8 +52,10 @@ recovery_only(` # TODO: create more specific label? allow recovery sysfs:file w_file_perms; - # Access /dev/android_adb. + # Access /dev/android_adb or /dev/usb-ffs/adb/ep0 allow recovery adb_device:chr_file rw_file_perms; + allow recovery functionfs:dir search; + allow recovery functionfs:file rw_file_perms; # Required to e.g. wipe userdata/cache. allow recovery device:dir r_dir_perms;