Skip to content
Snippets Groups Projects
Commit bad4e91d authored by Doug Zongker's avatar Doug Zongker
Browse files

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
parent 4da3bb14
No related branches found
No related tags found
No related merge requests found
...@@ -52,8 +52,10 @@ recovery_only(` ...@@ -52,8 +52,10 @@ recovery_only(`
# TODO: create more specific label? # TODO: create more specific label?
allow recovery sysfs:file w_file_perms; 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 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. # Required to e.g. wipe userdata/cache.
allow recovery device:dir r_dir_perms; allow recovery device:dir r_dir_perms;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment