1type obdm_app, domain, coredomain; 2 3app_domain(obdm_app) 4net_domain(obdm_app) 5 6allow obdm_app app_api_service:service_manager find; 7allow obdm_app radio_service:service_manager find; 8allow obdm_app surfaceflinger_service:service_manager find; 9 10userdebug_or_eng(` 11 allow obdm_app proc_stat:file r_file_perms; 12 13 # talk to /dev/diag 14 allow obdm_app diag_device:chr_file rw_file_perms; 15 16 allow obdm_app self:socket create_socket_perms; 17 allowxperm obdm_app self:socket ioctl { 0x0000c302 0x0000c304 }; 18 19 allow obdm_app sysfs:dir r_dir_perms; 20 r_dir_file(obdm_app, sysfs_msm_subsys) 21 22 # b/162012722 23 allow obdm_app self:qipcrtr_socket { create getattr read setopt write }; 24 allow obdm_app sysfs_soc:dir search; 25 allow obdm_app sysfs_soc:file r_file_perms; 26 allow obdm_app sysfs_ssr:file r_file_perms; 27') 28