Nick Kralevich | 9f6af08 | 2014-07-02 16:18:16 -0700 | [diff] [blame] | 1 | # service flash_recovery in init.rc |
Nick Kralevich | 0c8101b | 2017-01-06 16:54:25 -0800 | [diff] [blame] | 2 | type install_recovery, domain; |
Nick Kralevich | 5e37271 | 2018-09-27 10:21:37 -0700 | [diff] [blame] | 3 | type install_recovery_exec, system_file_type, exec_type, file_type; |
Nick Kralevich | 9f6af08 | 2014-07-02 16:18:16 -0700 | [diff] [blame] | 4 | |
Nick Kralevich | 9f6af08 | 2014-07-02 16:18:16 -0700 | [diff] [blame] | 5 | # /system/bin/install-recovery.sh is a shell script. |
| 6 | # Needs to execute /system/bin/sh |
| 7 | allow install_recovery shell_exec:file rx_file_perms; |
| 8 | |
| 9 | # Execute /system/bin/applypatch |
| 10 | allow install_recovery system_file:file rx_file_perms; |
Jeff Vander Stoep | 2db1cd4 | 2017-04-21 09:33:39 -0700 | [diff] [blame] | 11 | not_full_treble(`allow install_recovery vendor_file:file rx_file_perms;') |
Nick Kralevich | 9f6af08 | 2014-07-02 16:18:16 -0700 | [diff] [blame] | 12 | |
Stephen Smalley | a3c97a7 | 2015-08-25 11:38:29 -0400 | [diff] [blame] | 13 | allow install_recovery toolbox_exec:file rx_file_perms; |
Stephen Smalley | a3c97a7 | 2015-08-25 11:38:29 -0400 | [diff] [blame] | 14 | |
Nick Kralevich | a8e073c | 2015-02-27 17:39:09 -0800 | [diff] [blame] | 15 | # Update the recovery block device based off a diff of the boot block device |
Nick Kralevich | 9f6af08 | 2014-07-02 16:18:16 -0700 | [diff] [blame] | 16 | allow install_recovery block_device:dir search; |
Nick Kralevich | a8e073c | 2015-02-27 17:39:09 -0800 | [diff] [blame] | 17 | allow install_recovery boot_block_device:blk_file r_file_perms; |
Stephen Smalley | 206b1a6 | 2014-09-30 12:53:12 -0400 | [diff] [blame] | 18 | allow install_recovery recovery_block_device:blk_file rw_file_perms; |
Nick Kralevich | 9f6af08 | 2014-07-02 16:18:16 -0700 | [diff] [blame] | 19 | |
Nick Kralevich | 9f6af08 | 2014-07-02 16:18:16 -0700 | [diff] [blame] | 20 | # Write to /proc/sys/vm/drop_caches |
Jeff Sharkey | c960596 | 2015-05-14 20:55:31 -0700 | [diff] [blame] | 21 | allow install_recovery proc_drop_caches:file w_file_perms; |