1binder_call(rild, per_mgr) 2 3vndbinder_use(rild) 4 5allow rild qmuxd_socket:dir w_dir_perms; 6allow rild qmuxd_socket:sock_file create_file_perms; 7 8allow rild netmgrd_socket:dir search; 9unix_socket_connect(rild, netmgrd, netmgrd) 10 11allow rild vendor_file:file { execute_no_trans lock ioctl }; 12 13allow rild per_mgr_service:service_manager find; 14 15add_hwservice(rild, vnd_ims_radio_hwservice) 16add_hwservice(rild, vnd_qcrilhook_hwservice) 17 18allow rild self:socket ioctl; 19allowxperm rild self:socket ioctl msm_sock_ipc_ioctls; 20allow rild time_daemon:unix_stream_socket connectto; 21 22userdebug_or_eng(` 23 domain_auto_trans(rild, smlog_dump_exec, smlog_dump) 24 allow rild diag_device:chr_file rw_file_perms; 25') 26dontaudit rild diag_device:chr_file rw_file_perms; 27 28allow rild radio_vendor_data_file:dir rw_dir_perms; 29allow rild radio_vendor_data_file:file create_file_perms; 30 31set_prop(rild, vendor_radio_prop) 32 33# Allow vendor native process to read the proc file of xt_qtaguid 34allow rild proc_qtaguid_stat:file r_file_perms; 35