Add persist.sys.theme.
This property will be set by system_server (to indicate the currently selected theme for device), and can be accessed by vendor init.rc. avc: denied { read } for property=persist.sys.theme pid=0 uid=0 gid=0 scontext=u:r:vendor_init:s0 tcontext=u:object_r:theme_prop:s0 tclass=file Bug: 113028175 Test: Set a vendor init trigger that waits on `persist.sys.theme`. Check that the trigger fires without denial. Change-Id: Ibb4e392d5059b76059f36f7d11ba82cd65cbe970
This commit is contained in:
parent
6dc831d2fb
commit
75182a1ea6
12 changed files with 14 additions and 0 deletions
|
@ -132,6 +132,7 @@
|
|||
task_profiles_file
|
||||
testharness_service
|
||||
test_harness_prop
|
||||
theme_prop
|
||||
time_prop
|
||||
timedetector_service
|
||||
timezonedetector_service
|
||||
|
|
|
@ -59,6 +59,7 @@ persist.mmc. u:object_r:mmc_prop:s0
|
|||
persist.netd.stable_secret u:object_r:netd_stable_secret_prop:s0
|
||||
persist.sys. u:object_r:system_prop:s0
|
||||
persist.sys.safemode u:object_r:safemode_prop:s0
|
||||
persist.sys.theme u:object_r:theme_prop:s0
|
||||
persist.sys.fflag.override.settings_dynamic_system u:object_r:dynamic_system_prop:s0
|
||||
ro.sys.safemode u:object_r:safemode_prop:s0
|
||||
persist.sys.audit_safemode u:object_r:safemode_prop:s0
|
||||
|
|
|
@ -571,6 +571,7 @@ set_prop(system_server, exported_system_prop)
|
|||
set_prop(system_server, exported2_system_prop)
|
||||
set_prop(system_server, exported3_system_prop)
|
||||
set_prop(system_server, safemode_prop)
|
||||
set_prop(system_server, theme_prop)
|
||||
set_prop(system_server, dhcp_prop)
|
||||
set_prop(system_server, net_radio_prop)
|
||||
set_prop(system_server, net_dns_prop)
|
||||
|
|
|
@ -83,6 +83,7 @@ type system_radio_prop, property_type, core_property_type;
|
|||
type system_trace_prop, property_type;
|
||||
type test_boot_reason_prop, property_type;
|
||||
type test_harness_prop, property_type;
|
||||
type theme_prop, property_type;
|
||||
type time_prop, property_type;
|
||||
type traced_enabled_prop, property_type;
|
||||
type traced_lazy_prop, property_type;
|
||||
|
@ -457,6 +458,7 @@ compatible_property_only(`
|
|||
-system_trace_prop
|
||||
-test_boot_reason_prop
|
||||
-test_harness_prop
|
||||
-theme_prop
|
||||
-time_prop
|
||||
-traced_enabled_prop
|
||||
-traced_lazy_prop
|
||||
|
|
|
@ -162,6 +162,7 @@ wlan.driver.status u:object_r:exported_wifi_prop:s0 exact enum ok unloaded
|
|||
apexd.status u:object_r:apexd_prop:s0 exact enum starting ready
|
||||
dev.bootcomplete u:object_r:exported3_system_prop:s0 exact bool
|
||||
persist.sys.device_provisioned u:object_r:exported3_system_prop:s0 exact string
|
||||
persist.sys.theme u:object_r:theme_prop:s0 exact string
|
||||
persist.sys.usb.usbradio.config u:object_r:exported3_system_prop:s0 exact string
|
||||
sys.boot_completed u:object_r:exported3_system_prop:s0 exact bool
|
||||
sys.retaildemo.enabled u:object_r:exported3_system_prop:s0 exact int
|
||||
|
|
|
@ -247,6 +247,7 @@ set_prop(vendor_init, wifi_log_prop)
|
|||
|
||||
get_prop(vendor_init, exported2_radio_prop)
|
||||
get_prop(vendor_init, exported3_system_prop)
|
||||
get_prop(vendor_init, theme_prop)
|
||||
|
||||
###
|
||||
### neverallow rules
|
||||
|
|
|
@ -132,6 +132,7 @@
|
|||
task_profiles_file
|
||||
testharness_service
|
||||
test_harness_prop
|
||||
theme_prop
|
||||
time_prop
|
||||
timedetector_service
|
||||
timezonedetector_service
|
||||
|
|
|
@ -59,6 +59,7 @@ persist.mmc. u:object_r:mmc_prop:s0
|
|||
persist.netd.stable_secret u:object_r:netd_stable_secret_prop:s0
|
||||
persist.sys. u:object_r:system_prop:s0
|
||||
persist.sys.safemode u:object_r:safemode_prop:s0
|
||||
persist.sys.theme u:object_r:theme_prop:s0
|
||||
persist.sys.fflag.override.settings_dynamic_system u:object_r:dynamic_system_prop:s0
|
||||
ro.sys.safemode u:object_r:safemode_prop:s0
|
||||
persist.sys.audit_safemode u:object_r:safemode_prop:s0
|
||||
|
|
|
@ -571,6 +571,7 @@ set_prop(system_server, exported_system_prop)
|
|||
set_prop(system_server, exported2_system_prop)
|
||||
set_prop(system_server, exported3_system_prop)
|
||||
set_prop(system_server, safemode_prop)
|
||||
set_prop(system_server, theme_prop)
|
||||
set_prop(system_server, dhcp_prop)
|
||||
set_prop(system_server, net_radio_prop)
|
||||
set_prop(system_server, net_dns_prop)
|
||||
|
|
|
@ -83,6 +83,7 @@ type system_radio_prop, property_type, core_property_type;
|
|||
type system_trace_prop, property_type;
|
||||
type test_boot_reason_prop, property_type;
|
||||
type test_harness_prop, property_type;
|
||||
type theme_prop, property_type;
|
||||
type time_prop, property_type;
|
||||
type traced_enabled_prop, property_type;
|
||||
type traced_lazy_prop, property_type;
|
||||
|
@ -457,6 +458,7 @@ compatible_property_only(`
|
|||
-system_trace_prop
|
||||
-test_boot_reason_prop
|
||||
-test_harness_prop
|
||||
-theme_prop
|
||||
-time_prop
|
||||
-traced_enabled_prop
|
||||
-traced_lazy_prop
|
||||
|
|
|
@ -162,6 +162,7 @@ wlan.driver.status u:object_r:exported_wifi_prop:s0 exact enum ok unloaded
|
|||
apexd.status u:object_r:apexd_prop:s0 exact enum starting ready
|
||||
dev.bootcomplete u:object_r:exported3_system_prop:s0 exact bool
|
||||
persist.sys.device_provisioned u:object_r:exported3_system_prop:s0 exact string
|
||||
persist.sys.theme u:object_r:theme_prop:s0 exact string
|
||||
persist.sys.usb.usbradio.config u:object_r:exported3_system_prop:s0 exact string
|
||||
sys.boot_completed u:object_r:exported3_system_prop:s0 exact bool
|
||||
sys.retaildemo.enabled u:object_r:exported3_system_prop:s0 exact int
|
||||
|
|
|
@ -247,6 +247,7 @@ set_prop(vendor_init, wifi_log_prop)
|
|||
|
||||
get_prop(vendor_init, exported2_radio_prop)
|
||||
get_prop(vendor_init, exported3_system_prop)
|
||||
get_prop(vendor_init, theme_prop)
|
||||
|
||||
###
|
||||
### neverallow rules
|
||||
|
|
Loading…
Reference in a new issue