2014-02-19 22:33:32 +01:00
|
|
|
# uncrypt
|
2015-11-03 18:54:39 +01:00
|
|
|
type uncrypt, domain, domain_deprecated, 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
|
|
|
# Read /cache/recovery/command
|
2015-05-21 01:29:42 +02:00
|
|
|
# Read /cache/recovery/uncrypt_file
|
|
|
|
# Write to pipe file /cache/recovery/uncrypt_status
|
2015-12-22 21:37:17 +01:00
|
|
|
allow uncrypt cache_recovery_file:dir rw_dir_perms;
|
|
|
|
allow uncrypt cache_recovery_file:file create_file_perms;
|
|
|
|
allow uncrypt cache_recovery_file:fifo_file w_file_perms;
|
2014-02-19 22:33:32 +01:00
|
|
|
|
|
|
|
# Set a property to reboot the device.
|
2015-05-05 03:22:45 +02:00
|
|
|
set_prop(uncrypt, powerctl_prop)
|
2014-02-19 22:33:32 +01:00
|
|
|
|
|
|
|
# Raw writes to block device
|
|
|
|
allow uncrypt self:capability sys_rawio;
|
|
|
|
allow uncrypt block_device:blk_file w_file_perms;
|
2015-10-05 23:04:39 +02:00
|
|
|
auditallow uncrypt block_device:blk_file w_file_perms;
|
|
|
|
allow uncrypt misc_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;
|