1binder_use(hal_fastboot_default) 2 3# For get-off-mode charge state 4allow hal_fastboot_default devinfo_block_device:blk_file { open read }; 5allow hal_fastboot_default kmsg_device:chr_file { open write }; 6 7# For dev/block/by-name dir 8allow hal_fastboot_default block_device:dir r_dir_perms; 9 10allow hal_fastboot_default tmpfs:dir rw_dir_perms; 11allow hal_fastboot_default rootfs:dir r_dir_perms; 12 13# For set-brightness 14allow hal_fastboot_default sysfs_leds:dir search; 15allow hal_fastboot_default sysfs_leds:file rw_file_perms; 16allow hal_fastboot_default sysfs_leds:lnk_file read; 17 18#for fastboot -w (wiping device) 19allow hal_fastboot_default citadel_device:chr_file { rw_file_perms }; 20allow hal_fastboot_default proc_bootconfig:file { rw_file_perms }; 21allow hal_fastboot_default proc_cmdline:file { rw_file_perms }; 22allow hal_fastboot_default st54spi_device:chr_file { rw_file_perms }; 23allow hal_fastboot_default metadata_block_device:blk_file { rw_file_perms }; 24allowxperm hal_fastboot_default metadata_block_device:blk_file ioctl { BLKSECDISCARD BLKDISCARD }; 25