type charge_only_exec, exec_type, vendor_file_type, file_type;
init_daemon_domain(charge_only)
-allow charge_only chargeonly_data_file:dir rw_dir_perms;
-allow charge_only chargeonly_data_file:file create_file_perms;
+allow charge_only chargeonly_vendor_data_file:dir rw_dir_perms;
+allow charge_only chargeonly_vendor_data_file:file create_file_perms;
allow charge_only {
graphics_device
# data types
type camera_vendor_data_file, file_type, data_file_type;
-type chargeonly_data_file, file_type, data_file_type;
+type chargeonly_vendor_data_file, file_type, data_file_type;
type mediadrm_vendor_data_file, file_type, data_file_type;
type misc_vendor_data_file, file_type, data_file_type;
type rild_vendor_data_file, file_type, data_file_type;
/data/vendor/sensor(/.*)? u:object_r:sensor_vendor_data_file:s0
/data/vendor/rild(/.*)? u:object_r:rild_vendor_data_file:s0
/data/nfc(/.*)? u:object_r:nfc_data_file:s0
-/data/chargeonlymode(/.*)? u:object_r:chargeonly_data_file:s0
+/data/vendor/chargeonlymode(/.*)? u:object_r:chargeonly_vendor_data_file:s0
##########################
# Devices