1 # Policy for /system/bin/pm-service 2 type per_mgr, domain; 3 type per_mgr_exec, exec_type, file_type; 4 5 allow per_mgr self:capability net_bind_service; 6 7 init_daemon_domain(per_mgr) 8 9 allow per_mgr per_mgr_service:service_manager add; 10 11 binder_use(per_mgr) 12 binder_call(per_mgr, system_server) 13 binder_call(per_mgr, rild) 14 binder_call(per_mgr, per_proxy) 15 16 allow per_mgr firmware_file:dir search; 17 allow per_mgr firmware_file:file r_file_perms; 18 allow per_mgr self:socket create_socket_perms; 19 allowxperm per_mgr self:socket ioctl msm_sock_ipc_ioctls; 20 allow per_mgr ssr_device:chr_file { open read }; 21 22 allow per_mgr sysfs:dir r_dir_perms; 23 24 r_dir_file(per_mgr, sysfs_msm_subsys) 25 26 userdebug_or_eng(` 27 allow rild ssr_device:chr_file { open read }; 28 ') 29