1 # Grant access to Qualcomm MSM Interface (QMI) radio sockets to system services 2 # (e.g., LocationManager) 3 qmux_socket(system_server) 4 5 allow system_server self:netlink_socket create_socket_perms_no_ioctl; 6 7 allow system_server per_mgr_service:service_manager find; 8 9 # Fingerprint access 10 allow system_server fingerprint_device:chr_file rw_file_perms; 11 12 #Needed by libmdmdetect to get subsystem info and to check their states 13 allow system_server sysfs_ssr:dir r_dir_perms; 14 allow system_server sysfs_ssr:lnk_file r_file_perms; 15 16 # Needed by hubconnection for sensor hub 17 allow system_server sensors_device:chr_file rw_file_perms; 18 allow system_server uhid_device:chr_file rw_file_perms; 19 allow system_server persist_file:dir search; 20 allow system_server persist_sensortool_file:file r_file_perms; 21 22 # talk to perfd 23 allow system_server perfd_data_file:dir search; 24 allow system_server perfd_data_file:sock_file write; 25 allow system_server perfd:unix_stream_socket connectto; 26 27 # hubconnection to get and set sensors.contexthub.* properties 28 set_prop(system_server, contexthub_prop); 29 30 # To improve app launch times - we would like to force all tasks to 31 # run on big cores for app launch (sched_boost) - instead of just 32 # boosting them to make it "more likely" to run on big cores. 33 allow system_server zygote:process setsched; 34 35 allowxperm system_server self:udp_socket ioctl { SIOCSIFFLAGS SIOCDEVPRIVATE_D }; 36 37 # use MSM ipc router ioctls 38 allow system_server self:socket ioctl; 39 allowxperm system_server self:socket ioctl msm_sock_ipc_ioctls; 40 41 # system_server calls the power HAL, which reads debugfs_rpm 42 allow system_server debugfs_rpm:file { read open getattr }; 43