1 type htc_ramdump_exec, exec_type, vendor_file_type, file_type; 2 3 userdebug_or_eng(` 4 type htc_ramdump, domain; 5 init_daemon_domain(htc_ramdump) 6 7 allow htc_ramdump kmsg_device:chr_file { append open }; 8 allow htc_ramdump userdata_block_device:blk_file { read write open }; 9 allow htc_ramdump self:capability { fowner fsetid sys_rawio }; 10 11 set_prop(htc_ramdump, debug_prop) 12 13 allow htc_ramdump rootfs:file { r_file_perms }; 14 allow htc_ramdump misc_block_device:blk_file { rw_file_perms }; 15 allow htc_ramdump ramdump_vendor_data_file:file { create_file_perms }; 16 allow htc_ramdump ramdump_vendor_data_file:dir { create_dir_perms }; 17 allow htc_ramdump block_device:dir { search }; 18 allow htc_ramdump ramdump_block_device:blk_file { open read }; 19 ') 20