1typeattribute charger coredomain; 2 3# The system charger is a client of HIDL health HAL. 4hal_client_domain(charger, hal_health) 5 6# charger needs to tell init to continue the boot 7# process when running in charger mode. 8# The system charger needs to be allowed to set these properties on legacy devices. 9set_prop(charger, system_prop) 10set_prop(charger, exported_system_prop) 11set_prop(charger, exported3_system_prop) 12 13# The system charger can read ro.charger.* 14get_prop(charger, charger_prop) 15 16compatible_property_only(` 17 neverallow { 18 domain 19 -init 20 -dumpstate 21 -charger 22 } charger_prop:file no_rw_file_perms; 23') 24