792219e48d
Failing to read minui properties causes charger crash. Bug: N/A Test: enter charger mode with blueline Change-Id: Ic174cd1116edd510499836ab42675d6fabc63324
29 lines
690 B
Text
29 lines
690 B
Text
typeattribute charger coredomain;
|
|
|
|
# charger needs to tell init to continue the boot
|
|
# process when running in charger mode.
|
|
set_prop(charger, system_prop)
|
|
set_prop(charger, exported_system_prop)
|
|
set_prop(charger, exported3_system_prop)
|
|
set_prop(charger, charger_status_prop)
|
|
|
|
get_prop(charger, charger_prop)
|
|
get_prop(charger, charger_config_prop)
|
|
|
|
# get minui properties
|
|
get_prop(charger, recovery_config_prop)
|
|
|
|
compatible_property_only(`
|
|
neverallow {
|
|
-init
|
|
-dumpstate
|
|
-charger
|
|
} charger_prop:file no_rw_file_perms;
|
|
')
|
|
|
|
neverallow {
|
|
-init
|
|
-dumpstate
|
|
-vendor_init
|
|
-charger
|
|
} { charger_config_prop charger_status_prop }:file no_rw_file_perms;
|