1*e4a36f41SAndroid Build Coastguard Workertypeattribute charger coredomain; 2*e4a36f41SAndroid Build Coastguard Worker 3*e4a36f41SAndroid Build Coastguard Worker# charger needs to tell init to continue the boot 4*e4a36f41SAndroid Build Coastguard Worker# process when running in charger mode. 5*e4a36f41SAndroid Build Coastguard Worker# The system charger needs to be allowed to set these properties on legacy devices. 6*e4a36f41SAndroid Build Coastguard Workerset_prop(charger, system_prop) 7*e4a36f41SAndroid Build Coastguard Workerset_prop(charger, exported_system_prop) 8*e4a36f41SAndroid Build Coastguard Workerset_prop(charger, exported3_system_prop) 9*e4a36f41SAndroid Build Coastguard Worker 10*e4a36f41SAndroid Build Coastguard Worker# The system charger can read ro.charger.* 11*e4a36f41SAndroid Build Coastguard Workerget_prop(charger, charger_prop) 12*e4a36f41SAndroid Build Coastguard Worker 13*e4a36f41SAndroid Build Coastguard Workercompatible_property_only(` 14*e4a36f41SAndroid Build Coastguard Worker neverallow { 15*e4a36f41SAndroid Build Coastguard Worker domain 16*e4a36f41SAndroid Build Coastguard Worker -init 17*e4a36f41SAndroid Build Coastguard Worker -dumpstate 18*e4a36f41SAndroid Build Coastguard Worker -charger 19*e4a36f41SAndroid Build Coastguard Worker } charger_prop:file no_rw_file_perms; 20*e4a36f41SAndroid Build Coastguard Worker') 21