summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMao Jinlong <c_jmao@codeaurora.org>2015-09-22 17:19:53 +0800
committerMao Jinlong <c_jmao@codeaurora.org>2016-01-11 13:29:19 +0800
commit94e2cac6eeb375e4788f666e0f72c5f04b7ca0c0 (patch)
treecb72b67768d837aa415a924da05f7d6e1dbb9af5
parent5e4ef80e5181a97893d1d53cd3ed612d96cf28c4 (diff)
downloadandroid_device_qcom_sepolicy-94e2cac6eeb375e4788f666e0f72c5f04b7ca0c0.tar.gz
android_device_qcom_sepolicy-94e2cac6eeb375e4788f666e0f72c5f04b7ca0c0.tar.bz2
android_device_qcom_sepolicy-94e2cac6eeb375e4788f666e0f72c5f04b7ca0c0.zip
sepolicy: Define SE policy for alarm and boot animation property
ro.alarm_boot property is to indicate whether it is alarm boot. This property need to set during early boot.If boot up is triggered by rtc alarm, boot animation will be disabled. Change-Id: Ib4243071363917664cd401e5309443587aade1dc
-rw-r--r--common/init_shell.te2
-rw-r--r--common/property.te3
-rw-r--r--common/property_contexts2
3 files changed, 7 insertions, 0 deletions
diff --git a/common/init_shell.te b/common/init_shell.te
index d96edbe8..5a150b36 100644
--- a/common/init_shell.te
+++ b/common/init_shell.te
@@ -73,6 +73,8 @@ allow qti_init_shell {
fm_prop
usf_prop
qemu_hw_mainkeys_prop
+ alarm_boot_prop
+ boot_animation_prop
# Needed for starting console in userdebug mode
userdebug_or_eng(`ctl_console_prop coresight_prop')
rmnet_mux_prop
diff --git a/common/property.te b/common/property.te
index 1d83d8c4..a8821776 100644
--- a/common/property.te
+++ b/common/property.te
@@ -35,3 +35,6 @@ type rmnet_mux_prop, property_type;
type qemu_hw_mainkeys_prop, property_type;
type coresight_prop, property_type;
+
+type alarm_boot_prop, property_type;
+type boot_animation_prop, property_type;
diff --git a/common/property_contexts b/common/property_contexts
index 8f52c1be..cf8d8d94 100644
--- a/common/property_contexts
+++ b/common/property_contexts
@@ -33,3 +33,5 @@ location. u:object_r:location_prop:s0
persist.rmnet.mux u:object_r:rmnet_mux_prop:s0
qemu.hw.mainkeys u:object_r:qemu_hw_mainkeys_prop:s0
dbg.coresight.cfg_file u:object_r:coresight_prop:s0
+alarm_boot u:object_r:alarm_boot_prop:s0
+debug.sf.nobootanimation u:object_r:boot_animation_prop:s0