Enforce fastbootd

Fix: 264489957
Test: flash and no related avc error
Change-Id: Ibf616a98e9341310e18db6dda27d86adbf24deac
This commit is contained in:
Wilson Sung 2023-04-27 17:50:39 +08:00
parent 83087bd818
commit 8080b95d06
2 changed files with 6 additions and 4 deletions

View file

@ -1,4 +0,0 @@
# b/264489957
userdebug_or_eng(`
permissive fastbootd;
')

6
vendor/fastbootd.te vendored Normal file
View file

@ -0,0 +1,6 @@
recovery_only(`
allow fastbootd devinfo_block_device:blk_file rw_file_perms;
allow fastbootd sda_block_device:blk_file rw_file_perms;
allow fastbootd sysfs_ota:file rw_file_perms;
allow fastbootd st54spi_device:chr_file rw_file_perms;
')