1# charger needs to tell init to continue the boot 2# process when running in charger mode. 3set_prop(charger_type, charger_status_prop) 4get_prop(charger_type, charger_config_prop) 5 6# get minui properties 7get_prop(charger_type, recovery_config_prop) 8 9### Neverallow rules for charger properties 10 11# charger_config_prop: Only init and vendor_init is allowed to set it 12neverallow { 13 domain 14 -init 15 -vendor_init 16} charger_config_prop:property_service set; 17 18# charger_status_prop: Only init, vendor_init, charger, and charger_vendor 19# are allowed to set it 20neverallow { 21 domain 22 -init 23 -vendor_init 24 -charger 25 -charger_vendor 26} charger_status_prop:property_service set; 27 28# Both charger_config_prop and charger_status_prop: 29# Only init, vendor_init, dumpstate, charger, and charger_vendor 30# are allowed to read it 31neverallow { 32 domain 33 -init 34 -dumpstate 35 -vendor_init 36 -charger 37 -charger_vendor 38} { charger_config_prop charger_status_prop }:file no_rw_file_perms; 39