type display_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 mobicore_data_registry_file, file_type, data_file_type;
type rild_vendor_data_file, file_type, data_file_type;
type sensor_vendor_data_file, file_type, data_file_type;
type thermal_vendor_data_file, file_type, data_file_type;
/data/vendor/misc(/.*)? u:object_r:misc_vendor_data_file:s0
/data/vendor/sensor(/.*)? u:object_r:sensor_vendor_data_file:s0
/data/vendor/rild(/.*)? u:object_r:rild_vendor_data_file:s0
-/data/vendor/mcRegistry(/.*)? u:object_r:mobicore_data_registry_file:s0
/data/nfc(/.*)? u:object_r:nfc_data_file:s0
/data/chargeonlymode(/.*)? u:object_r:chargeonly_data_file:s0
r_dir_file(tee, persist_mobicore_file)
-allow tee mobicore_data_registry_file:dir create_dir_perms;
-allow tee mobicore_data_registry_file:file create_file_perms;
-
allow tee log_vendor_data_file:file create_file_perms;
allow tee log_vendor_data_file:dir rw_dir_perms;