1# Needed by hubconnection for sensor hub 2allow system_server sensors_device:chr_file rw_file_perms; 3allow system_server uhid_device:chr_file rw_file_perms; 4 5allow system_server sysfs_led:dir r_dir_perms; 6allow system_server sysfs_led:file rw_file_perms; 7 8allow system_server sysfs_gpu_tuning:dir r_dir_perms; 9allow system_server sysfs_gpu_tuning:file rw_file_perms; 10 11allow system_server sysfs_msm_subsys:dir r_dir_perms; 12allow system_server sysfs_msm_subsys:lnk_file r_file_perms; 13 14# Grant access to Qualcomm MSM Interface (QMI) radio sockets to system services 15# (e.g., LocationManager) 16qmux_socket(system_server) 17 18# talk to perfd 19allow system_server perfd_data_file:dir search; 20allow system_server perfd_data_file:sock_file write; 21allow system_server perfd:unix_stream_socket connectto; 22 23allow system_server persist_file:dir search; 24allow system_server persist_file:file r_file_perms; 25 26# hubconnection to get and set sensors.contexthub.* properties 27set_prop(system_server, contexthub_prop); 28 29allow system_server per_mgr_service:service_manager find; 30 31# To improve app launch times - we would like to force all tasks to 32# run on big cores for app launch (sched_boost) - instead of just 33# boosting them to make it "more likely" to run on big cores. 34allow system_server zygote:process setsched; 35 36# remove fingerprint dataset when remove user account 37allow system_server fingerprintd_data_file:file r_file_perms; 38allow system_server fingerprintd_data_file:file create_file_perms; 39allow system_server fingerprintd_data_file:dir create_dir_perms; 40 41# Access /dev/graphics/fb0 for setting display persistence 42allow system_server graphics_device:dir search; 43allow system_server graphics_device:chr_file rw_file_perms; 44 45# Access for thermal-engine 46allow system_server sysfs_thermal:file write; 47