type ssr_detector_app, domain;

app_domain(ssr_detector_app)
allow ssr_detector_app app_api_service:service_manager find;
allow ssr_detector_app radio_service:service_manager find;

allow ssr_detector_app system_app_data_file:dir create_dir_perms;
allow ssr_detector_app system_app_data_file:file create_file_perms;

allow ssr_detector_app sscoredump_vendor_data_crashinfo_file:dir r_dir_perms;
allow ssr_detector_app sscoredump_vendor_data_crashinfo_file:file r_file_perms;

userdebug_or_eng(`
  allow ssr_detector_app sscoredump_vendor_data_coredump_file:dir r_dir_perms;
  allow ssr_detector_app sscoredump_vendor_data_coredump_file:file r_file_perms;
  allow ssr_detector_app sscoredump_vendor_data_logcat_file:dir create_dir_perms;
  allow ssr_detector_app sscoredump_vendor_data_logcat_file:file create_file_perms;
  get_prop(ssr_detector_app, vendor_aoc_prop)
  allow ssr_detector_app sysfs_sjtag:dir r_dir_perms;
  allow ssr_detector_app sysfs_sjtag:file rw_file_perms;
  allow ssr_detector_app proc_vendor_sched:dir search;
  allow ssr_detector_app proc_vendor_sched:file rw_file_perms;
  allow ssr_detector_app cgroup:file write;
')

get_prop(ssr_detector_app, vendor_ssrdump_prop)
get_prop(ssr_detector_app, vendor_wifi_version)
