1type modem_diagnostic_app, domain; 2 3app_domain(modem_diagnostic_app) 4net_domain(modem_diagnostic_app) 5 6allow modem_diagnostic_app app_api_service:service_manager find; 7allow modem_diagnostic_app radio_service:service_manager find; 8 9userdebug_or_eng(` 10 allow modem_diagnostic_app sysfs_modem_state:file r_file_perms; 11 12 hal_client_domain(modem_diagnostic_app, hal_power_stats); 13 14 allow modem_diagnostic_app hal_exynos_rild_hwservice:hwservice_manager find; 15 binder_call(modem_diagnostic_app, rild) 16 17 binder_call(modem_diagnostic_app, dmd) 18 19 set_prop(modem_diagnostic_app, vendor_cbd_prop) 20 set_prop(modem_diagnostic_app, vendor_rild_prop) 21 set_prop(modem_diagnostic_app, vendor_modem_prop) 22 23 allow modem_diagnostic_app sysfs_chosen:dir r_dir_perms; 24 allow modem_diagnostic_app sysfs_chosen:file r_file_perms; 25 26 allow modem_diagnostic_app vendor_fw_file:file r_file_perms; 27 28 allow modem_diagnostic_app radio_vendor_data_file:dir create_dir_perms; 29 allow modem_diagnostic_app radio_vendor_data_file:file create_file_perms; 30 31 allow modem_diagnostic_app mnt_vendor_file:dir r_dir_perms; 32 allow modem_diagnostic_app mnt_vendor_file:file r_file_perms; 33 34 allow modem_diagnostic_app modem_img_file:dir r_dir_perms; 35 allow modem_diagnostic_app modem_img_file:file r_file_perms; 36 allow modem_diagnostic_app modem_img_file:lnk_file r_file_perms; 37 38 allow modem_diagnostic_app hal_vendor_oem_hwservice:hwservice_manager find; 39 40 allow modem_diagnostic_app sysfs_batteryinfo:file r_file_perms; 41 allow modem_diagnostic_app sysfs_batteryinfo:dir search; 42 43 dontaudit modem_diagnostic_app default_prop:file r_file_perms; 44 45 # Modem Log Mask Library Permissions 46 allow modem_diagnostic_app liboemservice_proxy_service:service_manager find; 47 binder_use(modem_diagnostic_app) 48 binder_call(modem_diagnostic_app, liboemservice_proxy_default) 49') 50