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: I714ccb34f60d1413d2b184dae9b561cd06bc6b45
This commit is contained in:
parent
a50467c3c7
commit
9f88bc554d
1 changed files with 3 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue