2015-12-05 02:48:50 +01:00
|
|
|
# update_verifier
|
2016-11-18 03:43:03 +01:00
|
|
|
# update_verifier uses the boot_control_hal.
|
|
|
|
type update_verifier, domain, boot_control_hal;
|
2015-12-05 02:48:50 +01:00
|
|
|
type update_verifier_exec, exec_type, file_type;
|
|
|
|
|
2017-01-24 21:29:50 +01:00
|
|
|
# find the boot_control_hal
|
|
|
|
allow update_verifier system_file:dir r_dir_perms;
|
|
|
|
|
2016-06-22 21:16:47 +02:00
|
|
|
# Allow update_verifier to reach block devices in /dev/block.
|
|
|
|
allow update_verifier block_device:dir search;
|
|
|
|
|
2016-06-06 20:30:20 +02:00
|
|
|
# Read care map in /data/ota_package/.
|
|
|
|
allow update_verifier ota_package_file:dir r_dir_perms;
|
|
|
|
allow update_verifier ota_package_file:file r_file_perms;
|
|
|
|
|
2017-01-20 02:41:02 +01:00
|
|
|
# Read all blocks in dm wrapped system partition.
|
|
|
|
allow update_verifier dm_device:blk_file r_file_perms;
|
2016-06-06 20:30:20 +02:00
|
|
|
|
2016-11-18 03:43:03 +01:00
|
|
|
# Use binderized HAL
|
2016-11-09 19:33:03 +01:00
|
|
|
hwbinder_use(update_verifier)
|
|
|
|
binder_call(update_verifier, hal_boot)
|