chown radio system /efs/bluetooth
chmod 0775 /efs/bluetooth
- chown system system /sys/devices/system/cpu/cpufreq/interactive/timer_rate
- chmod 0660 /sys/devices/system/cpu/cpufreq/interactive/timer_rate
- chown system system /sys/devices/system/cpu/cpufreq/interactive/timer_slack
- chmod 0660 /sys/devices/system/cpu/cpufreq/interactive/timer_slack
- chown system system /sys/devices/system/cpu/cpufreq/interactive/min_sample_time
- chmod 0660 /sys/devices/system/cpu/cpufreq/interactive/min_sample_time
- chown system system /sys/devices/system/cpu/cpufreq/interactive/hispeed_freq
- chmod 0660 /sys/devices/system/cpu/cpufreq/interactive/hispeed_freq
- chown system system /sys/devices/system/cpu/cpufreq/interactive/target_loads
- chmod 0660 /sys/devices/system/cpu/cpufreq/interactive/target_loads
- chown system system /sys/devices/system/cpu/cpufreq/interactive/go_hispeed_load
- chmod 0660 /sys/devices/system/cpu/cpufreq/interactive/go_hispeed_load
- chown system system /sys/devices/system/cpu/cpufreq/interactive/above_hispeed_delay
- chmod 0660 /sys/devices/system/cpu/cpufreq/interactive/above_hispeed_delay
- chown system system /sys/devices/system/cpu/cpufreq/interactive/boost
- chmod 0660 /sys/devices/system/cpu/cpufreq/interactive/boost
- chown system system /sys/devices/system/cpu/cpufreq/interactive/boostpulse
- chown system system /sys/devices/system/cpu/cpufreq/interactive/input_boost
- chmod 0660 /sys/devices/system/cpu/cpufreq/interactive/input_boost
- chown system system /sys/devices/system/cpu/cpufreq/interactive/boostpulse_duration
- chmod 0660 /sys/devices/system/cpu/cpufreq/interactive/boostpulse_duration
- chown system system /sys/devices/system/cpu/cpufreq/interactive/io_is_busy
- chmod 0660 /sys/devices/system/cpu/cpufreq/interactive/io_is_busy
-
-
# Change permission for dvfshelper
chown radio system /sys/power/cpufreq_table
chmod 0664 /sys/power/cpufreq_table
chown radio system /sys/power/cpufreq_max_limit
chmod 0664 /sys/power/cpufreq_max_limit
- chown radio system /sys/devices/11400000.mali/dvfs_table
- chown radio system /sys/devices/11400000.mali/dvfs_min_lock
- chown radio system /sys/devices/11400000.mali/dvfs_max_lock
- chmod 0664 /sys/devices/11400000.mali/dvfs_table
- chmod 0664 /sys/devices/11400000.mali/dvfs_min_lock
- chmod 0664 /sys/devices/11400000.mali/dvfs_max_lock
-
- chown radio system /sys/class/devfreq/bus_mif.7/available_frequencies
- chown radio system /sys/class/devfreq/bus_mif.7/min_freq
- chown radio system /sys/class/devfreq/bus_mif.7/max_freq
- chmod 0664 /sys/class/devfreq/bus_mif.7/available_frequencies
- chmod 0664 /sys/class/devfreq/bus_mif.7/min_freq
- chmod 0664 /sys/class/devfreq/bus_mif.7/max_freq
-
- chown radio system /sys/class/devfreq/bus_int.6/available_frequencies
- chown radio system /sys/class/devfreq/bus_int.6/min_freq
- chown radio system /sys/class/devfreq/bus_int.6/max_freq
- chmod 0664 /sys/class/devfreq/bus_int.6/available_frequencies
- chmod 0664 /sys/class/devfreq/bus_int.6/min_freq
- chmod 0664 /sys/class/devfreq/bus_int.6/max_freq
-
# NFC_NXP
setprop ro.nfc.port "I2C"
chmod 0660 /dev/pn547
chown system system /sys/class/timed_output/vibrator/intensity
#permission for TSP, Touchkey and Wacom
- chown system radio /sys/class/sec/tsp/cmd
chmod 0660 /sys/class/sec/tsp/input/enabled
- chown system system /sys/class/sec/tsp/input/enabled
-
- chmod 0660 /sys/class/sec_touchkey/input/enabled
- chown system system /sys/class/sec/sec_touchkey/input/enabled
- chown system radio /sys/class/sec/sec_touchkey/brightness
chmod 0660 /sys/class/sec/sec_epen/input/enabled
chown system system /sys/class/sec/sec_epen/input/enabled
# Sensors permissions
# Accelerometer_sensor
- chown system radio /sys/class/sensors/accelerometer_sensor/raw_data
- chown system radio /sys/class/sensors/accelerometer_sensor/calibration
- chown system radio /sys/class/sensors/accelerometer_sensor/reactive_alert
- chown system radio /sys/class/sensors/accelerometer_sensor/selftest
- chown system radio /sys/class/sensors/accelerometer_sensor/vendor
- chown system radio /sys/class/sensors/accelerometer_sensor/name
chown system system /efs/calibration_data
chmod 0666 /efs/calibration_data
- # Proximity_sensor
- chown system radio /sys/class/sensors/proximity_sensor/state
- chown system radio /sys/class/sensors/proximity_sensor/raw_data
- chown system radio /sys/class/sensors/proximity_sensor/prox_avg
- chown system radio /sys/class/sensors/proximity_sensor/prox_cal
- chown system radio /sys/class/sensors/proximity_sensor/prox_thresh
- chown system radio /sys/class/sensors/proximity_sensor/thresh_high
- chown system radio /sys/class/sensors/proximity_sensor/thresh_low
- chown system radio /sys/class/sensors/proximity_sensor/vendor
- chown system radio /sys/class/sensors/proximity_sensor/name
- # Light_sensor
- chown system radio /sys/class/sensors/light_sensor/lux
- chown system radio /sys/class/sensors/light_sensor/raw_data
- chown system radio /sys/class/sensors/light_sensor/vendor
- chown system radio /sys/class/sensors/light_sensor/name
- # Gyro_sensor
- chown system radio /sys/class/sensors/gyro_sensor/power_on
- chown system radio /sys/class/sensors/gyro_sensor/power_off
- chown system radio /sys/class/sensors/gyro_sensor/temperature
- chown system radio /sys/class/sensors/gyro_sensor/selftest
- chown system radio /sys/class/sensors/gyro_sensor/selftest_dps
- chown system radio /sys/class/sensors/gyro_sensor/vendor
- chown system radio /sys/class/sensors/gyro_sensor/name
# Magnetic_sensor
- chown system radio /sys/class/sensors/magnetic_sensor/selftest
- chown system radio /sys/class/sensors/magnetic_sensor/raw_data
chown system radio /sys/class/sensors/magnetic_sensor/adc
- chown system radio /sys/class/sensors/magnetic_sensor/vendor
- chown system radio /sys/class/sensors/magnetic_sensor/name
chown system radio /sys/class/sensors/magnetic_sensor/status
# MPL IIO
chown system system /dev/invensense
class core
user system
group system
- oneshot
\ No newline at end of file
+ oneshot
chown system radio /sys/class/sensors/proximity_sensor/raw_data
chown system radio /sys/class/sensors/proximity_sensor/prox_avg
chown system radio /sys/class/sensors/proximity_sensor/prox_cal
+ chown system radio /sys/class/sensors/proximity_sensor/prox_thresh
chown system radio /sys/class/sensors/proximity_sensor/vendor
chown system radio /sys/class/sensors/proximity_sensor/name
chown system radio /sys/class/sensors/proximity_sensor/thresh_high
chown system radio /sys/class/sensors/barometer_sensor/calibration
# Magnetic_sensor
- chown system radio /sys/class/sensors/magnetic_sensor/raw_data
chown system radio /sys/class/sensors/magnetic_sensor/vendor
chown system radio /sys/class/sensors/magnetic_sensor/name
chown system radio /sys/class/sensors/magnetic_sensor/selftest
chown system radio /sys/class/sensors/hrm_sensor/read_reg
chown system radio /sys/class/sensors/hrm_sensor/write_reg
chown system radio /sys/class/sensors/hrm_sensor/ctrl_allreg_file
- chown system radio /sys/class/sensors/hrm_sensor/led_current
chown system radio /sys/class/sensors/hrm_sensor/alc_enable
chown system radio /sys/class/sensors/hrm_sensor/selftest
chown system radio /sys/class/sensors/hrmled_sensor/vendor
chown system radio /sys/class/sensors/hrmled_sensor/hrmled_flush
- # Meta_sensor
- chown system radio /sys/class/sensors/sensor_dev/flush
-
# UV_sensor
chown system radio /sys/class/sensors/uv_sensor/name
chown system radio /sys/class/sensors/uv_sensor/vendor