diff --git a/public/fastbootd.te b/public/fastbootd.te index 1d39d509012941016f90a42b55a123a3b7c7cc88..bba5ab953b77452b4404dd25624b47832fa9923d 100644 --- a/public/fastbootd.te +++ b/public/fastbootd.te @@ -44,6 +44,11 @@ recovery_only(` allow fastbootd misc_block_device:blk_file rw_file_perms; + # Required to wipe userdata + allow fastbootd userdata_block_device:blk_file { w_file_perms getattr ioctl }; + allowxperm fastbootd userdata_block_device:blk_file ioctl { BLKGETSIZE64 BLKSECDISCARD + BLKDISCARD }; + allow fastbootd proc_cmdline:file r_file_perms; allow fastbootd rootfs:dir r_dir_perms; allow fastbootd sysfs_dt_firmware_android:file r_file_perms;