1# SSRestartDetector app 2type ssr_detector, domain; 3 4app_domain(ssr_detector) 5 6userdebug_or_eng(` 7 allow ssr_detector ramdump_vendor_data_file:dir r_dir_perms; 8 allow ssr_detector ramdump_vendor_data_file:file r_file_perms; 9 get_prop(ssr_detector, vendor_ssr_prop) 10') 11 12allow ssr_detector { app_api_service }:service_manager find; 13 14# Read and write /data/data subdirectory. 15allow ssr_detector system_app_data_file:dir create_dir_perms; 16allow ssr_detector system_app_data_file:{ file lnk_file } create_file_perms; 17 18# Read sysfs info 19r_dir_file(ssr_detector, sysfs_msm_subsys) 20 21allow ssr_detector cgroup:file w_file_perms; 22