2014-02-19 22:33:32 +01:00
|
|
|
# uncrypt
|
2015-01-06 00:03:43 +01:00
|
|
|
type uncrypt, domain, mlstrustedsubject;
|
2014-02-19 22:33:32 +01:00
|
|
|
type uncrypt_exec, exec_type, file_type;
|
|
|
|
|
|
|
|
init_daemon_domain(uncrypt)
|
|
|
|
|
|
|
|
allow uncrypt self:capability dac_override;
|
|
|
|
|
|
|
|
# Read OTA zip file from /data/data/com.google.android.gsf/app_download
|
|
|
|
r_dir_file(uncrypt, app_data_file)
|
|
|
|
|
2014-02-20 20:47:00 +01:00
|
|
|
userdebug_or_eng(`
|
|
|
|
# For debugging, allow /data/local/tmp access
|
|
|
|
r_dir_file(uncrypt, shell_data_file)
|
|
|
|
')
|
|
|
|
|
2014-02-19 22:33:32 +01:00
|
|
|
# Create tmp file /cache/recovery/command.tmp
|
|
|
|
# Read /cache/recovery/command
|
|
|
|
# Rename /cache/recovery/command.tmp to /cache/recovery/command
|
|
|
|
allow uncrypt cache_file:dir rw_dir_perms;
|
|
|
|
allow uncrypt cache_file:file create_file_perms;
|
|
|
|
|
|
|
|
# Set a property to reboot the device.
|
|
|
|
unix_socket_connect(uncrypt, property, init)
|
|
|
|
allow uncrypt powerctl_prop:property_service set;
|
|
|
|
|
|
|
|
# Raw writes to block device
|
|
|
|
allow uncrypt self:capability sys_rawio;
|
|
|
|
allow uncrypt block_device:blk_file w_file_perms;
|
2014-02-28 02:24:43 +01:00
|
|
|
allow uncrypt block_device:dir r_dir_perms;
|
2014-09-11 14:50:04 +02:00
|
|
|
|
|
|
|
# Access userdata block device.
|
2015-01-06 00:03:43 +01:00
|
|
|
allow uncrypt userdata_block_device:blk_file w_file_perms;
|