1 # SSRestartDetector app 2 type ssr_detector, domain; 3 4 app_domain(ssr_detector) 5 6 userdebug_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 12 allow ssr_detector { app_api_service }:service_manager find; 13 14 # Read and write /data/data subdirectory. 15 allow ssr_detector system_app_data_file:dir create_dir_perms; 16 allow ssr_detector system_app_data_file:{ file lnk_file } create_file_perms; 17 18 # Read sysfs info 19 r_dir_file(ssr_detector, sysfs_msm_subsys) 20 21 allow ssr_detector cgroup:file w_file_perms; 22