1typeattribute charger coredomain;
2
3# charger needs to tell init to continue the boot
4# process when running in charger mode.
5set_prop(charger, system_prop)
6set_prop(charger, exported_system_prop)
7set_prop(charger, exported3_system_prop)
8set_prop(charger, charger_status_prop)
9
10get_prop(charger, charger_prop)
11get_prop(charger, charger_config_prop)
12
13# get minui properties
14get_prop(charger, recovery_config_prop)
15
16compatible_property_only(`
17    neverallow {
18        -init
19        -dumpstate
20        -charger
21    } charger_prop:file no_rw_file_perms;
22')
23
24neverallow {
25    -init
26    -dumpstate
27    -vendor_init
28    -charger
29} { charger_config_prop charger_status_prop }:file no_rw_file_perms;
30