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:
parent
31056ae11d
commit
1145be1fc3
4 changed files with 7 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue