Allow charger to read ro.charger.*

Allow charger to read system properties with this prefix
so that charger's behavior is controlled by runtime.

Test: run offline charging on walleye
Bug: 124118169
Change-Id: I4266b2d043a5323b4adbd1636ada46b7e08ca667
This commit is contained in:
Yifan Hong 2019-07-08 10:57:46 -07:00
parent 31056ae11d
commit 1145be1fc3
4 changed files with 7 additions and 0 deletions

View file

@ -5,6 +5,7 @@
(typeattribute new_objects)
(typeattributeset new_objects
( new_objects
charger_prop
cold_boot_done_prop
ctl_apexd_prop
device_config_sys_traced_prop

View file

@ -206,3 +206,6 @@ ro.nnapi.extensions.deny_on_product u:object_r:nnapi_ext_deny_pro
# Property that is set once ueventd finishes cold boot.
ro.cold_boot_done u:object_r:cold_boot_done_prop:s0
# Charger properties
ro.charger. u:object_r:charger_prop:s0

View file

@ -42,3 +42,5 @@ set_prop(charger, system_prop)
set_prop(charger, exported_system_prop)
set_prop(charger, exported2_system_prop)
set_prop(charger, exported3_system_prop)
get_prop(charger, charger_prop)

View file

@ -6,6 +6,7 @@ type bluetooth_audio_hal_prop, property_type;
type bluetooth_prop, property_type;
type bpf_progs_loaded_prop, property_type;
type bootloader_boot_reason_prop, property_type;
type charger_prop, property_type;
type cold_boot_done_prop, property_type;
type config_prop, property_type, core_property_type;
type cppreopt_prop, property_type, core_property_type;