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 Workerset_prop(charger, system_prop) 6*e4a36f41SAndroid Build Coastguard Workerset_prop(charger, exported_system_prop) 7*e4a36f41SAndroid Build Coastguard Workerset_prop(charger, exported3_system_prop) 8*e4a36f41SAndroid Build Coastguard Workerset_prop(charger, charger_status_prop) 9*e4a36f41SAndroid Build Coastguard Worker 10*e4a36f41SAndroid Build Coastguard Workerget_prop(charger, charger_prop) 11*e4a36f41SAndroid Build Coastguard Workerget_prop(charger, charger_config_prop) 12*e4a36f41SAndroid Build Coastguard Worker 13*e4a36f41SAndroid Build Coastguard Worker# get minui properties 14*e4a36f41SAndroid Build Coastguard Workerget_prop(charger, recovery_config_prop) 15*e4a36f41SAndroid Build Coastguard Worker 16*e4a36f41SAndroid Build Coastguard Workercompatible_property_only(` 17*e4a36f41SAndroid Build Coastguard Worker neverallow { 18*e4a36f41SAndroid Build Coastguard Worker domain 19*e4a36f41SAndroid Build Coastguard Worker -init 20*e4a36f41SAndroid Build Coastguard Worker -dumpstate 21*e4a36f41SAndroid Build Coastguard Worker -charger 22*e4a36f41SAndroid Build Coastguard Worker } charger_prop:file no_rw_file_perms; 23*e4a36f41SAndroid Build Coastguard Worker') 24*e4a36f41SAndroid Build Coastguard Worker 25*e4a36f41SAndroid Build Coastguard Workerneverallow { 26*e4a36f41SAndroid Build Coastguard Worker domain 27*e4a36f41SAndroid Build Coastguard Worker -init 28*e4a36f41SAndroid Build Coastguard Worker -dumpstate 29*e4a36f41SAndroid Build Coastguard Worker -vendor_init 30*e4a36f41SAndroid Build Coastguard Worker -charger 31*e4a36f41SAndroid Build Coastguard Worker} { charger_config_prop charger_status_prop }:file no_rw_file_perms; 32