| 1 | import init.samsungexynos7580.usb.rc |
| 2 | import init.baseband.rc |
| 3 | import init.wifi.rc |
| 4 | import init.samsung.rc |
| 5 | import init.power.rc |
| 6 | import init.target.rc |
| 7 | |
| 8 | on early-init |
| 9 | mount debugfs /sys/kernel/debug /sys/kernel/debug mode=755 |
| 10 | |
| 11 | on init |
| 12 | # RIL <-> audioserver comm |
| 13 | chmod 0644 /proc/cmdline |
| 14 | |
| 15 | # See storage config details at http://source.android.com/tech/storage/ |
| 16 | mkdir /mnt/shell/emulated 0700 shell shell |
| 17 | mkdir /storage/emulated 0555 root root |
| 18 | |
| 19 | # CPUSETS permission |
| 20 | chmod 0660 /dev/cpuctl |
| 21 | # Support legacy paths |
| 22 | symlink /sdcard /storage/sdcard0 |
| 23 | symlink /storage/usbdisk /mnt/usbdisk |
| 24 | |
| 25 | export EXTERNAL_STORAGE /sdcard |
| 26 | |
| 27 | symlink /data/app /factory |
| 28 | symlink /dev/block/platform/13540000.dwmmc0/by-name/PERSISTENT /dev/block/persistent |
| 29 | |
| 30 | on post-fs-data |
| 31 | # mkdir /data/media 0770 media_rw media_rw |
| 32 | |
| 33 | setprop vold.post_fs_data_done 1 |
| 34 | |
| 35 | # Permissions for audio |
| 36 | chown system radio /sys/class/audio/earjack/select_jack |
| 37 | chown system radio /sys/class/audio/earjack/key_state |
| 38 | chown system radio /sys/class/audio/earjack/state |
| 39 | chown system radio /sys/class/audio/earjack/mic_adc |
| 40 | |
| 41 | # Permissions for dbmd2 |
| 42 | chown system audio /sys/class/voice_trigger/dbd2/vqe_use_case |
| 43 | chmod 0664 /sys/class/voice_trigger/dbd2/vqe_use_case |
| 44 | chown system audio /sys/class/voice_trigger/dbd2/d2paramaddr |
| 45 | chmod 0220 /sys/class/voice_trigger/dbd2/d2paramaddr |
| 46 | chown system audio /sys/class/voice_trigger/dbd2/d2param |
| 47 | chmod 0664 /sys/class/voice_trigger/dbd2/d2param |
| 48 | chown system audio /sys/class/voice_trigger/dbd2/vqe_spkvollvl |
| 49 | chmod 0664 /sys/class/voice_trigger/dbd2/vqe_spkvollvl |
| 50 | chown system audio /sys/class/voice_trigger/dbd2/reboot |
| 51 | chmod 0664 /sys/class/voice_trigger/dbd2/reboot |
| 52 | chown system audio /sys/class/voice_trigger/dbd2/va_load_amodel |
| 53 | chmod 0664 /sys/class/voice_trigger/dbd2/va_load_amodel |
| 54 | mkdir /data/firmware 0770 audioserver system |
| 55 | chown audioserver system /data/firmware |
| 56 | |
| 57 | on boot |
| 58 | # Allow to access debugfs |
| 59 | chmod 755 /sys/kernel/debug |
| 60 | |
| 61 | # Reset mDNIe scenario |
| 62 | write /sys/class/mdnie/mdnie/scenario 0 |
| 63 | |
| 64 | # Set up kernel tracing, but disable it by default |
| 65 | chmod 0222 /sys/kernel/debug/tracing/trace_marker |
| 66 | write /sys/kernel/debug/tracing/tracing_on 0 |
| 67 | |
| 68 | # Dynamic cluster hotplug |
| 69 | chown system system /sys/devices/system/cpu/clusterhotplug/force_hstate |
| 70 | chmod 0660 /sys/devices/system/cpu/clusterhotplug/force_hstate |
| 71 | chown system system /sys/devices/system/cpu/clusterhotplug/min_lock |
| 72 | chmod 0660 /sys/devices/system/cpu/clusterhotplug/min_lock |
| 73 | chown system system /sys/devices/system/cpu/clusterhotplug/max_lock |
| 74 | chmod 0660 /sys/devices/system/cpu/clusterhotplug/max_lock |
| 75 | |
| 76 | # C-STATE |
| 77 | chown system system /sys/module/cpuidle/parameters/off |
| 78 | chmod 0660 /sys/module/cpuidle/parameters/off |
| 79 | |
| 80 | # CPU Idle |
| 81 | chown system system /sys/module/cpuidle_exynos64_smp/parameters/enable_mask |
| 82 | |
| 83 | # Change permissions for the CPU governor settings |
| 84 | chown system system /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq |
| 85 | chown system system /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq |
| 86 | chown system system /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor |
| 87 | chown system system /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq |
| 88 | chmod 0664 /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq |
| 89 | chmod 0664 /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq |
| 90 | chmod 0664 /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor |
| 91 | chmod 0664 /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq |
| 92 | |
| 93 | # Change permission for interactive governor |
| 94 | chown system system /sys/devices/system/cpu/cpu0/cpufreq/interactive/timer_rate |
| 95 | chmod 0660 /sys/devices/system/cpu/cpu0/cpufreq/interactive/timer_rate |
| 96 | chown system system /sys/devices/system/cpu/cpu0/cpufreq/interactive/timer_slack |
| 97 | chmod 0660 /sys/devices/system/cpu/cpu0/cpufreq/interactive/timer_slack |
| 98 | chown system system /sys/devices/system/cpu/cpu0/cpufreq/interactive/min_sample_time |
| 99 | chmod 0660 /sys/devices/system/cpu/cpu0/cpufreq/interactive/min_sample_time |
| 100 | chown system system /sys/devices/system/cpu/cpu0/cpufreq/interactive/hispeed_freq |
| 101 | chmod 0660 /sys/devices/system/cpu/cpu0/cpufreq/interactive/hispeed_freq |
| 102 | chown system system /sys/devices/system/cpu/cpu0/cpufreq/interactive/target_loads |
| 103 | chmod 0660 /sys/devices/system/cpu/cpu0/cpufreq/interactive/target_loads |
| 104 | chown system system /sys/devices/system/cpu/cpu0/cpufreq/interactive/go_hispeed_load |
| 105 | chmod 0660 /sys/devices/system/cpu/cpu0/cpufreq/interactive/go_hispeed_load |
| 106 | chown system system /sys/devices/system/cpu/cpu0/cpufreq/interactive/above_hispeed_delay |
| 107 | chmod 0660 /sys/devices/system/cpu/cpu0/cpufreq/interactive/above_hispeed_delay |
| 108 | chown system system /sys/devices/system/cpu/cpu0/cpufreq/interactive/boost |
| 109 | chmod 0660 /sys/devices/system/cpu/cpu0/cpufreq/interactive/boost |
| 110 | chown system system /sys/devices/system/cpu/cpu0/cpufreq/interactive/boostpulse |
| 111 | chmod 0660 /sys/devices/system/cpu/cpu0/cpufreq/interactive/boostpulse |
| 112 | chown system system /sys/devices/system/cpu/cpu0/cpufreq/interactive/input_boost |
| 113 | chmod 0660 /sys/devices/system/cpu/cpu0/cpufreq/interactive/input_boost |
| 114 | chown system system /sys/devices/system/cpu/cpu0/cpufreq/interactive/boostpulse_duration |
| 115 | chmod 0660 /sys/devices/system/cpu/cpu0/cpufreq/interactive/boostpulse_duration |
| 116 | chown system system /sys/devices/system/cpu/cpu0/cpufreq/interactive/io_is_busy |
| 117 | chmod 0660 /sys/devices/system/cpu/cpu0/cpufreq/interactive/io_is_busy |
| 118 | chown system system /sys/devices/system/cpu/cpu0/cpufreq/interactive/freq_max |
| 119 | chmod 0660 /sys/devices/system/cpu/cpu0/cpufreq/interactive/freq_max |
| 120 | chown system system /sys/devices/system/cpu/cpu0/cpufreq/interactive/freq_min |
| 121 | chmod 0660 /sys/devices/system/cpu/cpu0/cpufreq/interactive/freq_min |
| 122 | |
| 123 | # change permissions for all cpusets we touch at runtime |
| 124 | chown system system /dev/cpuset/cpus |
| 125 | chown system system /dev/cpuset/foreground/cpus |
| 126 | chown system system /dev/cpuset/background/cpus |
| 127 | chown system system /dev/cpuset/system-background/cpus |
| 128 | chown system system /dev/cpuset/top-app/cpus |
| 129 | chmod 0664 /dev/cpuset/cpus |
| 130 | chmod 0664 /dev/cpuset/foreground/cpus |
| 131 | chmod 0664 /dev/cpuset/background/cpus |
| 132 | chmod 0664 /dev/cpuset/system-background/cpus |
| 133 | chmod 0664 /dev/cpuset/top-app/cpus |
| 134 | |
| 135 | # Change permissions of the CPU online settings |
| 136 | chown system system /sys/devices/system/cpu/cpu0/online |
| 137 | chown system system /sys/devices/system/cpu/cpu1/online |
| 138 | chown system system /sys/devices/system/cpu/cpu2/online |
| 139 | chown system system /sys/devices/system/cpu/cpu3/online |
| 140 | chown system system /sys/devices/system/cpu/cpu4/online |
| 141 | chown system system /sys/devices/system/cpu/cpu5/online |
| 142 | chown system system /sys/devices/system/cpu/cpu6/online |
| 143 | chown system system /sys/devices/system/cpu/cpu7/online |
| 144 | chmod 0664 /sys/devices/system/cpu/cpu0/online |
| 145 | chmod 0664 /sys/devices/system/cpu/cpu1/online |
| 146 | chmod 0664 /sys/devices/system/cpu/cpu2/online |
| 147 | chmod 0664 /sys/devices/system/cpu/cpu3/online |
| 148 | chmod 0664 /sys/devices/system/cpu/cpu4/online |
| 149 | chmod 0664 /sys/devices/system/cpu/cpu5/online |
| 150 | chmod 0664 /sys/devices/system/cpu/cpu6/online |
| 151 | chmod 0664 /sys/devices/system/cpu/cpu7/online |
| 152 | |
| 153 | # Permissions for input_booster |
| 154 | chown system radio /sys/class/input_booster/level |
| 155 | chown system radio /sys/class/input_booster/head |
| 156 | chown system radio /sys/class/input_booster/tail |
| 157 | chmod 0664 /sys/class/input_booster/level |
| 158 | chmod 0664 /sys/class/input_booster/head |
| 159 | chmod 0664 /sys/class/input_booster/tail |
| 160 | |
| 161 | chown system log /proc/sec_log |
| 162 | |
| 163 | chown bluetooth bluetooth /dev/ttySAC3 |
| 164 | chmod 0660 /dev/ttySAC3 |
| 165 | |
| 166 | # permissions for bluetooth. |
| 167 | setprop ro.bt.bdaddr_path "/efs/bluetooth/bt_addr" |
| 168 | chown bluetooth bluetooth ro.bt.bdaddr_path |
| 169 | chown radio bluetooth /efs/bluetooth/bt_addr |
| 170 | chmod 0640 /efs/bluetooth/bt_addr |
| 171 | chmod 0660 /sys/class/rfkill/rfkill0/state |
| 172 | chown bluetooth bluetooth /sys/class/rfkill/rfkill0/state |
| 173 | chown bluetooth bluetooth /sys/class/rfkill/rfkill0/type |
| 174 | |
| 175 | # IR_LED |
| 176 | chown system radio /sys/class/sec/sec_ir/ir_send |
| 177 | chown system radio /sys/class/sec/sec_ir/ir_send_result |
| 178 | |
| 179 | # SVC LED |
| 180 | chown system system /sys/class/sec/led/led_r |
| 181 | chown system system /sys/class/sec/led/led_g |
| 182 | chown system system /sys/class/sec/led/led_b |
| 183 | |
| 184 | chown system system /sys/class/leds/led_r/brightness |
| 185 | chown system system /sys/class/leds/led_g/brightness |
| 186 | chown system system /sys/class/leds/led_b/brightness |
| 187 | chown system system /sys/class/leds/led_r/delay_on |
| 188 | chown system system /sys/class/leds/led_g/delay_on |
| 189 | chown system system /sys/class/leds/led_b/delay_on |
| 190 | chown system system /sys/class/leds/led_r/delay_off |
| 191 | chown system system /sys/class/leds/led_g/delay_off |
| 192 | chown system system /sys/class/leds/led_b/delay_off |
| 193 | chown system system /sys/class/leds/led_r/blink |
| 194 | chown system system /sys/class/leds/led_g/blink |
| 195 | chown system system /sys/class/leds/led_b/blink |
| 196 | |
| 197 | chown system system /sys/class/sec/led/led_pattern |
| 198 | chown system system /sys/class/sec/led/led_blink |
| 199 | chown system system /sys/class/sec/led/led_br_lev |
| 200 | chown system system /sys/class/sec/led/led_lowpower |
| 201 | |
| 202 | # HALL IC IRQ CTRL |
| 203 | chown system system /sys/class/sec/sec_key/hall_irq_ctrl |
| 204 | |
| 205 | # MSP FactoryApp |
| 206 | mkdir /efs/FactoryApp 0775 system system |
| 207 | |
| 208 | # IMEI folder |
| 209 | mkdir /efs/imei 0775 radio system |
| 210 | |
| 211 | #for datarouter |
| 212 | chown system system /dev/dun |
| 213 | chown system system /dev/ttyGS0 |
| 214 | chown system system /dev/ttyGS1 |
| 215 | chown system system /dev/ttyGS2 |
| 216 | chown system system /dev/ttyGS3 |
| 217 | |
| 218 | # tdmb |
| 219 | chown system system /dev/tdmb |
| 220 | chmod 0660 /dev/tdmb |
| 221 | |
| 222 | # IPSec for VOLTE |
| 223 | chown root system /dev/socket |
| 224 | chmod 0775 /dev/socket |
| 225 | |
| 226 | on fs |
| 227 | mount_all /fstab.samsungexynos7580 |
| 228 | setprop ro.crypto.fuse_sdcard true |
| 229 | |
| 230 | # Permissions for ION |
| 231 | chmod 0660 /sys/class/ion_cma/ion_video_ext/isolated |
| 232 | chown system system /sys/class/ion_cma/ion_video_ext/isolated |
| 233 | |
| 234 | # Permissions for backlight |
| 235 | chmod 0660 /sys/class/backlight/panel/brightness |
| 236 | chown system system /sys/class/backlight/panel/brightness |
| 237 | chown system system /sys/class/backlight/panel/auto_brightness |
| 238 | |
| 239 | # Permissions for LCD |
| 240 | chown system radio /sys/class/lcd/panel/manufacture_code |
| 241 | chown system radio /sys/class/lcd/panel/lcd_type |
| 242 | chown system system /sys/class/lcd/panel/siop_enable |
| 243 | chown system system /sys/class/lcd/panel/temperature |
| 244 | chown system radio /sys/class/lcd/panel/power_reduce |
| 245 | |
| 246 | # Permissions for MDNIE |
| 247 | chown system media_rw /sys/class/mdnie/mdnie/mode |
| 248 | chown system media_rw /sys/class/mdnie/mdnie/scenario |
| 249 | chown system system /sys/class/mdnie/mdnie/accessibility |
| 250 | chown system system /sys/class/mdnie/mdnie/auto_brightness |
| 251 | chown system system /sys/class/mdnie/mdnie/sensorRGB |
| 252 | chown system system /sys/class/mdnie/mdnie/mdnie_ldu |
| 253 | chmod 0660 /sys/class/mdnie/mdnie/lux |
| 254 | chown system system /sys/class/mdnie/mdnie/lux |
| 255 | |
| 256 | # Permissions for TouchScreen |
| 257 | chown system radio /sys/class/sec/tsp/cmd |
| 258 | chown system system /sys/class/sec/tsp/input/enabled |
| 259 | |
| 260 | # Permissions for Touchkey |
| 261 | chown system radio /sys/class/sec/sec_touchkey/brightness |
| 262 | chown system radio /sys/class/sec/sec_touchkey/touchkey_firm_update |
| 263 | chown system radio /sys/class/sec/sec_touchkey/touch_sensitivity |
| 264 | chown system radio /sys/class/sec/sec_touchkey/glove_mode |
| 265 | chown system radio /sys/class/sec/sec_touchkey/flip_mode |
| 266 | chown system system /sys/class/sec/sec_touchkey/input/enabled |
| 267 | |
| 268 | # Permissions for DT2W |
| 269 | chown system system /sys/android_touch/doubletap2wake |
| 270 | |
| 271 | # Permissions for gpio_keys |
| 272 | chown radio system /sys/class/sec/sec_key/wakeup_keys |
| 273 | write /sys/class/sec/sec_key/wakeup_keys 116,172 |
| 274 | # Fingerprint |
| 275 | mkdir /dev/validity 0770 system system |
| 276 | |
| 277 | # GnssConfiguration doesn't actually look at gps.conf, just the debug file |
| 278 | mount none /system/etc/gps.conf /system/etc/gps_debug.conf bind |
| 279 | |
| 280 | # create data/gps for GPS daemon |
| 281 | chown root system /dev/ttySAC0 |
| 282 | chmod 0660 /dev/ttySAC0 |
| 283 | chown root system /sys/class/sec/gps/GPS_PWR_EN/value |
| 284 | chmod 0664 /sys/class/sec/gps/GPS_PWR_EN/value |
| 285 | mkdir /data/system 0771 system system |
| 286 | chown system system /data/system |
| 287 | mkdir /data/system/gps 0771 system system |
| 288 | chown system system /data/system/gps |
| 289 | rm /data/system/gps/gps_started |
| 290 | rm /data/system/gps/glonass_started |
| 291 | rm /data/system/gps/smd_started |
| 292 | rm /data/system/gps/sv_cno.info |
| 293 | |
| 294 | # MTP permission |
| 295 | chmod 0660 /dev/usb_mtp_gadget |
| 296 | chown system mtp /dev/usb_mtp_gadget |
| 297 | |
| 298 | # terminal mode |
| 299 | chmod 0660 /sys/class/android_usb/android0/terminal_version |
| 300 | chown system system /sys/class/android_usb/android0/terminal_version |
| 301 | |
| 302 | # for datarouter |
| 303 | chown system system /dev/dun |
| 304 | chown system system /dev/ttyGS0 |
| 305 | chown system system /dev/ttyGS1 |
| 306 | chown system system /dev/ttyGS2 |
| 307 | chown system system /dev/ttyGS3 |
| 308 | |
| 309 | # Permission for flashlight control for HAL3.3 |
| 310 | chmod 0660 /sys/class/camera/flash/rear_torch_flash |
| 311 | chown cameraserver system /sys/class/camera/flash/rear_torch_flash |
| 312 | |
| 313 | # Permissions Camera |
| 314 | chown system radio /sys/class/camera/rear/rear_camfw |
| 315 | chown system radio /sys/class/camera/rear/rear_camfw_full |
| 316 | chown system radio /sys/class/camera/rear/rear_checkfw_user |
| 317 | chown system radio /sys/class/camera/rear/rear_checkfw_factory |
| 318 | chown system radio /sys/class/camera/rear/rear_sensor_standby |
| 319 | chown system radio /sys/class/camera/rear/rear_camtype |
| 320 | chown system radio /sys/class/camera/rear/rear_companionfw |
| 321 | chown system radio /sys/class/camera/rear/rear_companionfw_full |
| 322 | chown system radio /sys/class/camera/rear/rear_calcheck |
| 323 | chown system radio /sys/class/camera/rear/rear_caminfo |
| 324 | chown system radio /sys/class/camera/rear/from_write |
| 325 | chown system radio /sys/class/camera/rear/isp_core |
| 326 | chown system radio /sys/class/camera/rear/fw_update |
| 327 | chown system radio /sys/class/camera/flash/rear_flash |
| 328 | chown system radio /sys/class/camera/front/front_camfw |
| 329 | chown system radio /sys/class/camera/front/front_camtype |
| 330 | chown system radio /sys/class/camera/front/front_caminfo |
| 331 | chown system radio /sys/class/camera/ois/selftest |
| 332 | chown system radio /sys/class/camera/ois/ois_power |
| 333 | chown system radio /sys/class/camera/ois/ois_rawdata |
| 334 | chown system radio /sys/class/camera/ois/oisfw |
| 335 | chown system radio /sys/class/camera/ois/ois_diff |
| 336 | chown system radio /sys/class/camera/ois/fw_update |
| 337 | chown system radio /sys/class/camera/ois/ois_exif |
| 338 | |
| 339 | # SENSORS |
| 340 | # Accelerometer_sensor |
| 341 | chown system radio /sys/class/sensors/accelerometer_sensor/raw_data |
| 342 | chown system radio /sys/class/sensors/accelerometer_sensor/calibration |
| 343 | chown system radio /sys/class/sensors/accelerometer_sensor/reactive_alert |
| 344 | chown system radio /sys/class/sensors/accelerometer_sensor/vendor |
| 345 | chown system radio /sys/class/sensors/accelerometer_sensor/name |
| 346 | chown system radio /sys/class/sensors/accelerometer_sensor/selftest |
| 347 | chown system radio /sys/class/sensors/accelerometer_sensor/lowpassfilter |
| 348 | |
| 349 | # Proximity_sensor |
| 350 | chown system radio /sys/class/sensors/proximity_sensor/state |
| 351 | chown system radio /sys/class/sensors/proximity_sensor/raw_data |
| 352 | chown system radio /sys/class/sensors/proximity_sensor/prox_avg |
| 353 | chown system radio /sys/class/sensors/proximity_sensor/prox_cal |
| 354 | chown system radio /sys/class/sensors/proximity_sensor/prox_thresh |
| 355 | chown system radio /sys/class/sensors/proximity_sensor/vendor |
| 356 | chown system radio /sys/class/sensors/proximity_sensor/name |
| 357 | chown system radio /sys/class/sensors/proximity_sensor/thresh_high |
| 358 | chown system radio /sys/class/sensors/proximity_sensor/thresh_low |
| 359 | chown system radio /sys/class/sensors/proximity_sensor/barcode_emul_en |
| 360 | chown system radio /sys/class/sensors/proximity_sensor/prox_offset_pass |
| 361 | chown system radio /sys/class/sensors/proximity_sensor/prox_trim |
| 362 | |
| 363 | # Light_sensor |
| 364 | chown system radio /sys/class/sensors/light_sensor/lux |
| 365 | chown system radio /sys/class/sensors/light_sensor/raw_data |
| 366 | chown system radio /sys/class/sensors/light_sensor/vendor |
| 367 | chown system radio /sys/class/sensors/light_sensor/name |
| 368 | |
| 369 | # Gyro_sensor |
| 370 | chown system radio /sys/class/sensors/gyro_sensor/power_on |
| 371 | chown system radio /sys/class/sensors/gyro_sensor/power_off |
| 372 | chown system radio /sys/class/sensors/gyro_sensor/temperature |
| 373 | chown system radio /sys/class/sensors/gyro_sensor/selftest |
| 374 | chown system radio /sys/class/sensors/gyro_sensor/selftest_dps |
| 375 | chown system radio /sys/class/sensors/gyro_sensor/vendor |
| 376 | chown system radio /sys/class/sensors/gyro_sensor/name |
| 377 | |
| 378 | # Barometer_sensor |
| 379 | chown system radio /sys/class/sensors/barometer_sensor/sea_level_pressure |
| 380 | chown system radio /sys/class/sensors/barometer_sensor/vendor |
| 381 | chown system radio /sys/class/sensors/barometer_sensor/name |
| 382 | chown system radio /sys/class/sensors/barometer_sensor/calibration |
| 383 | |
| 384 | # Magnetic_sensor |
| 385 | chown system radio /sys/class/sensors/magnetic_sensor/vendor |
| 386 | chown system radio /sys/class/sensors/magnetic_sensor/name |
| 387 | chown system radio /sys/class/sensors/magnetic_sensor/selftest |
| 388 | chown system radio /sys/class/sensors/magnetic_sensor/raw_data |
| 389 | |
| 390 | # HRM_sensor |
| 391 | chown system radio /sys/class/sensors/hrm_sensor/name |
| 392 | chown system radio /sys/class/sensors/hrm_sensor/vendor |
| 393 | chown system radio /sys/class/sensors/hrm_sensor/led_current |
| 394 | chown system radio /sys/class/sensors/hrm_sensor/led_current1 |
| 395 | chown system radio /sys/class/sensors/hrm_sensor/led_current2 |
| 396 | chown system radio /sys/class/sensors/hrm_sensor/led_current3 |
| 397 | chown system radio /sys/class/sensors/hrm_sensor/led_current4 |
| 398 | chown system radio /sys/class/sensors/hrm_sensor/hr_range |
| 399 | chown system radio /sys/class/sensors/hrm_sensor/hr_range2 |
| 400 | chown system radio /sys/class/sensors/hrm_sensor/look_mode_ir |
| 401 | chown system radio /sys/class/sensors/hrm_sensor/look_mode_red |
| 402 | chown system radio /sys/class/sensors/hrm_sensor/eol_test |
| 403 | chown system radio /sys/class/sensors/hrm_sensor/eol_test_result |
| 404 | chown system radio /sys/class/sensors/hrm_sensor/eol_test_status |
| 405 | chown system radio /sys/class/sensors/hrm_sensor/int_pin_check |
| 406 | chown system radio /sys/class/sensors/hrm_sensor/lib_ver |
| 407 | chown system radio /sys/class/sensors/hrm_sensor/regulator |
| 408 | chown system radio /sys/class/sensors/hrm_sensor/part_type |
| 409 | chown system radio /sys/class/sensors/hrm_sensor/device_id |
| 410 | chown system radio /sys/class/sensors/hrm_sensor/hrm_flush |
| 411 | chown system radio /sys/class/sensors/hrm_sensor/threshold |
| 412 | chown system radio /sys/class/sensors/hrm_sensor/read_reg |
| 413 | chown system radio /sys/class/sensors/hrm_sensor/write_reg |
| 414 | chown system radio /sys/class/sensors/hrm_sensor/ctrl_allreg_file |
| 415 | chown system radio /sys/class/sensors/hrm_sensor/alc_enable |
| 416 | chown system radio /sys/class/sensors/hrm_sensor/selftest |
| 417 | |
| 418 | # HRMLED_sensor |
| 419 | chown system radio /sys/class/sensors/hrmled_sensor/name |
| 420 | chown system radio /sys/class/sensors/hrmled_sensor/vendor |
| 421 | chown system radio /sys/class/sensors/hrmled_sensor/hrmled_flush |
| 422 | |
| 423 | # UV_sensor |
| 424 | chown system radio /sys/class/sensors/uv_sensor/name |
| 425 | chown system radio /sys/class/sensors/uv_sensor/vendor |
| 426 | chown system radio /sys/class/sensors/uv_sensor/uv_lib_ver |
| 427 | chown system radio /sys/class/sensors/uv_sensor/uv_sr_interval |
| 428 | chown system radio /sys/class/sensors/uv_sensor/uv_eol_test |
| 429 | chown system radio /sys/class/sensors/uv_sensor/uv_flush |
| 430 | |
| 431 | # Grip_sensor |
| 432 | chown system radio /sys/class/sensors/grip_sensor/name |
| 433 | chown system radio /sys/class/sensors/grip_sensor/vendor |
| 434 | chown system radio /sys/class/sensors/grip_sensor/raw_data |
| 435 | chown system radio /sys/class/sensors/grip_sensor/threshold |
| 436 | chown system radio /sys/class/sensors/grip_sensor/calibration |
| 437 | chown system radio /sys/class/sensors/grip_sensor/onoff |
| 438 | chown system radio /sys/class/sensors/grip_sensor/reset |
| 439 | chown system radio /sys/class/sensors/grip_sensor/mode |
| 440 | chown system radio /sys/class/sensors/grip_sensor/gain |
| 441 | |
| 442 | # SensorHub |
| 443 | chown system radio /sys/class/sensors/ssp_sensor/enable |
| 444 | chown system radio /sys/class/sensors/ssp_sensor/mcu_rev |
| 445 | chown system radio /sys/class/sensors/ssp_sensor/mcu_name |
| 446 | chown system radio /sys/class/sensors/ssp_sensor/mcu_test |
| 447 | chown system radio /sys/class/sensors/ssp_sensor/mcu_reset |
| 448 | chown system radio /sys/class/sensors/ssp_sensor/mcu_update |
| 449 | chown system radio /sys/class/sensors/ssp_sensor/mcu_sleep_test |
| 450 | chown system radio /sys/class/sensors/ssp_sensor/ori_poll_delay |
| 451 | |
| 452 | # Sensorhub IIO |
| 453 | chown system radio /sys/class/sensors/ssp_sensor/accel_poll_delay |
| 454 | chown system radio /sys/class/sensors/ssp_sensor/rot_poll_delay |
| 455 | chown system radio /sys/class/sensors/ssp_sensor/game_rot_poll_delay |
| 456 | chown system radio /sys/class/sensors/ssp_sensor/step_det_poll_delay |
| 457 | chown system radio /sys/class/sensors/ssp_sensor/gyro_poll_delay |
| 458 | chown system radio /sys/class/sensors/ssp_sensor/uncalib_gyro_poll_delay |
| 459 | chown system radio /sys/class/sensors/ssp_sensor/mag_poll_delay |
| 460 | chown system radio /sys/class/sensors/ssp_sensor/uncal_mag_poll_delay |
| 461 | chown system radio /sys/class/sensors/ssp_sensor/light_poll_delay |
| 462 | chown system radio /sys/class/sensors/ssp_sensor/pressure_poll_delay |
| 463 | chown system radio /sys/class/sensors/ssp_sensor/prox_poll_delay |
| 464 | chown system radio /sys/class/sensors/ssp_sensor/sig_motion_poll_delay |
| 465 | chown system radio /sys/class/sensors/ssp_sensor/step_cnt_poll_delay |
| 466 | chown system radio /sys/class/sensors/ssp_sensor/uncal_gyro_poll_delay |
| 467 | chown system radio /sys/class/sensors/ssp_sensor/ssp_flush |
| 468 | chmod 0600 /dev/batch_io |
| 469 | chown system system /dev/batch_io |
| 470 | |
| 471 | # MPL IIO |
| 472 | chown system radio /sys/devices/13870000.hsi2c/i2c-0/0-0068/iio:device1/accel_enable |
| 473 | chown system radio /sys/devices/13870000.hsi2c/i2c-0/0-0068/iio:device1/accel_fifo_enable |
| 474 | chown system radio /sys/devices/13870000.hsi2c/i2c-0/0-0068/iio:device1/accel_matrix |
| 475 | chown system radio /sys/devices/13870000.hsi2c/i2c-0/0-0068/iio:device1/accel_rate |
| 476 | chown system radio /sys/devices/13870000.hsi2c/i2c-0/0-0068/iio:device1/batchmode_timeout |
| 477 | chown system radio /sys/devices/13870000.hsi2c/i2c-0/0-0068/iio:device1/batchmode_wake_fifo_full_on |
| 478 | chown system radio /sys/devices/13870000.hsi2c/i2c-0/0-0068/iio:device1/buffer |
| 479 | chown system radio /sys/devices/13870000.hsi2c/i2c-0/0-0068/iio:device1/buffer/enable |
| 480 | chown system radio /sys/devices/13870000.hsi2c/i2c-0/0-0068/iio:device1/buffer/length |
| 481 | chown system radio /sys/devices/13870000.hsi2c/i2c-0/0-0068/iio:device1/dev |
| 482 | chown system radio /sys/devices/13870000.hsi2c/i2c-0/0-0068/iio:device1/dmp_event_int_on |
| 483 | chown system radio /sys/devices/13870000.hsi2c/i2c-0/0-0068/iio:device1/dmp_firmware |
| 484 | chown system radio /sys/devices/13870000.hsi2c/i2c-0/0-0068/iio:device1/dmp_int_on |
| 485 | chown system radio /sys/devices/13870000.hsi2c/i2c-0/0-0068/iio:device1/dmp_on |
| 486 | chown system radio /sys/devices/13870000.hsi2c/i2c-0/0-0068/iio:device1/event_accel_motion |
| 487 | chown system radio /sys/devices/13870000.hsi2c/i2c-0/0-0068/iio:device1/event_pedometer |
| 488 | chown system radio /sys/devices/13870000.hsi2c/i2c-0/0-0068/iio:device1/event_qshot_finish |
| 489 | chown system radio /sys/devices/13870000.hsi2c/i2c-0/0-0068/iio:device1/event_qshot_start |
| 490 | chown system radio /sys/devices/13870000.hsi2c/i2c-0/0-0068/iio:device1/event_shealth_int |
| 491 | chown system radio /sys/devices/13870000.hsi2c/i2c-0/0-0068/iio:device1/event_smd |
| 492 | chown system radio /sys/devices/13870000.hsi2c/i2c-0/0-0068/iio:device1/firmware_loaded |
| 493 | chown system radio /sys/devices/13870000.hsi2c/i2c-0/0-0068/iio:device1/flush_batch |
| 494 | chown system radio /sys/devices/13870000.hsi2c/i2c-0/0-0068/iio:device1/gyro_enable |
| 495 | chown system radio /sys/devices/13870000.hsi2c/i2c-0/0-0068/iio:device1/gyro_fifo_enable |
| 496 | chown system radio /sys/devices/13870000.hsi2c/i2c-0/0-0068/iio:device1/gyro_matrix |
| 497 | chown system radio /sys/devices/13870000.hsi2c/i2c-0/0-0068/iio:device1/gyro_rate |
| 498 | chown system radio /sys/devices/13870000.hsi2c/i2c-0/0-0068/iio:device1/in_accel_scale |
| 499 | chown system radio /sys/devices/13870000.hsi2c/i2c-0/0-0068/iio:device1/in_accel_self_test_scale |
| 500 | chown system radio /sys/devices/13870000.hsi2c/i2c-0/0-0068/iio:device1/in_accel_x_calibbias |
| 501 | chown system radio /sys/devices/13870000.hsi2c/i2c-0/0-0068/iio:device1/in_accel_x_dmp_bias |
| 502 | chown system radio /sys/devices/13870000.hsi2c/i2c-0/0-0068/iio:device1/in_accel_x_offset |
| 503 | chown system radio /sys/devices/13870000.hsi2c/i2c-0/0-0068/iio:device1/in_accel_y_calibbias |
| 504 | chown system radio /sys/devices/13870000.hsi2c/i2c-0/0-0068/iio:device1/in_accel_y_dmp_bias |
| 505 | chown system radio /sys/devices/13870000.hsi2c/i2c-0/0-0068/iio:device1/in_accel_y_offset |
| 506 | chown system radio /sys/devices/13870000.hsi2c/i2c-0/0-0068/iio:device1/in_accel_z_calibbias |
| 507 | chown system radio /sys/devices/13870000.hsi2c/i2c-0/0-0068/iio:device1/in_accel_z_dmp_bias |
| 508 | chown system radio /sys/devices/13870000.hsi2c/i2c-0/0-0068/iio:device1/in_accel_z_offset |
| 509 | chown system radio /sys/devices/13870000.hsi2c/i2c-0/0-0068/iio:device1/in_anglvel_scale |
| 510 | chown system radio /sys/devices/13870000.hsi2c/i2c-0/0-0068/iio:device1/in_anglvel_self_test_scale |
| 511 | chown system radio /sys/devices/13870000.hsi2c/i2c-0/0-0068/iio:device1/in_anglvel_x_calibbias |
| 512 | chown system radio /sys/devices/13870000.hsi2c/i2c-0/0-0068/iio:device1/in_anglvel_x_dmp_bias |
| 513 | chown system radio /sys/devices/13870000.hsi2c/i2c-0/0-0068/iio:device1/in_anglvel_x_offset |
| 514 | chown system radio /sys/devices/13870000.hsi2c/i2c-0/0-0068/iio:device1/in_anglvel_y_calibbias |
| 515 | chown system radio /sys/devices/13870000.hsi2c/i2c-0/0-0068/iio:device1/in_anglvel_y_dmp_bias |
| 516 | chown system radio /sys/devices/13870000.hsi2c/i2c-0/0-0068/iio:device1/in_anglvel_y_offset |
| 517 | chown system radio /sys/devices/13870000.hsi2c/i2c-0/0-0068/iio:device1/in_anglvel_z_calibbias |
| 518 | chown system radio /sys/devices/13870000.hsi2c/i2c-0/0-0068/iio:device1/in_anglvel_z_dmp_bias |
| 519 | chown system radio /sys/devices/13870000.hsi2c/i2c-0/0-0068/iio:device1/in_anglvel_z_offset |
| 520 | chown system radio /sys/devices/13870000.hsi2c/i2c-0/0-0068/iio:device1/master_enable |
| 521 | chown system radio /sys/devices/13870000.hsi2c/i2c-0/0-0068/iio:device1/motion_lpa_freq |
| 522 | chown system radio /sys/devices/13870000.hsi2c/i2c-0/0-0068/iio:device1/motion_lpa_on |
| 523 | chown system radio /sys/devices/13870000.hsi2c/i2c-0/0-0068/iio:device1/motion_lpa_threshold |
| 524 | chown system radio /sys/devices/13870000.hsi2c/i2c-0/0-0068/iio:device1/name |
| 525 | chown system radio /sys/devices/13870000.hsi2c/i2c-0/0-0068/iio:device1/ped_q_on |
| 526 | chown system radio /sys/devices/13870000.hsi2c/i2c-0/0-0068/iio:device1/ped_q_rate |
| 527 | chown system radio /sys/devices/13870000.hsi2c/i2c-0/0-0068/iio:device1/pedometer_counter |
| 528 | chown system radio /sys/devices/13870000.hsi2c/i2c-0/0-0068/iio:device1/pedometer_int_on |
| 529 | chown system radio /sys/devices/13870000.hsi2c/i2c-0/0-0068/iio:device1/pedometer_int_thresh |
| 530 | chown system radio /sys/devices/13870000.hsi2c/i2c-0/0-0068/iio:device1/pedometer_on |
| 531 | chown system radio /sys/devices/13870000.hsi2c/i2c-0/0-0068/iio:device1/pedometer_peak_thresh |
| 532 | chown system radio /sys/devices/13870000.hsi2c/i2c-0/0-0068/iio:device1/pedometer_step_thresh |
| 533 | chown system radio /sys/devices/13870000.hsi2c/i2c-0/0-0068/iio:device1/pedometer_step_thresh_time |
| 534 | chown system radio /sys/devices/13870000.hsi2c/i2c-0/0-0068/iio:device1/pedometer_steps |
| 535 | chown system radio /sys/devices/13870000.hsi2c/i2c-0/0-0068/iio:device1/pedometer_time |
| 536 | chown system radio /sys/devices/13870000.hsi2c/i2c-0/0-0068/iio:device1/power |
| 537 | chown system radio /sys/devices/13870000.hsi2c/i2c-0/0-0068/iio:device1/power/autosuspend_delay_ms |
| 538 | chown system radio /sys/devices/13870000.hsi2c/i2c-0/0-0068/iio:device1/power/control |
| 539 | chown system radio /sys/devices/13870000.hsi2c/i2c-0/0-0068/iio:device1/power/runtime_active_time |
| 540 | chown system radio /sys/devices/13870000.hsi2c/i2c-0/0-0068/iio:device1/power/runtime_status |
| 541 | chown system radio /sys/devices/13870000.hsi2c/i2c-0/0-0068/iio:device1/power/runtime_suspended_time |
| 542 | chown system radio /sys/devices/13870000.hsi2c/i2c-0/0-0068/iio:device1/power_state |
| 543 | chown system radio /sys/devices/13870000.hsi2c/i2c-0/0-0068/iio:device1/qshot_finish_angle |
| 544 | chown system radio /sys/devices/13870000.hsi2c/i2c-0/0-0068/iio:device1/qshot_finish_int_enable |
| 545 | chown system radio /sys/devices/13870000.hsi2c/i2c-0/0-0068/iio:device1/qshot_start_angle |
| 546 | chown system radio /sys/devices/13870000.hsi2c/i2c-0/0-0068/iio:device1/qshot_start_int_enable |
| 547 | chown system radio /sys/devices/13870000.hsi2c/i2c-0/0-0068/iio:device1/reg_dump |
| 548 | chown system radio /sys/devices/13870000.hsi2c/i2c-0/0-0068/iio:device1/sampling_frequency |
| 549 | chown system radio /sys/devices/13870000.hsi2c/i2c-0/0-0068/iio:device1/sampling_frequency_available |
| 550 | chown system radio /sys/devices/13870000.hsi2c/i2c-0/0-0068/iio:device1/scan_elements |
| 551 | chown system radio /sys/devices/13870000.hsi2c/i2c-0/0-0068/iio:device1/scan_elements/in_timestamp_en |
| 552 | chown system radio /sys/devices/13870000.hsi2c/i2c-0/0-0068/iio:device1/scan_elements/in_timestamp_index |
| 553 | chown system radio /sys/devices/13870000.hsi2c/i2c-0/0-0068/iio:device1/scan_elements/in_timestamp_type |
| 554 | chown system radio /sys/devices/13870000.hsi2c/i2c-0/0-0068/iio:device1/secondary_name |
| 555 | chown system radio /sys/devices/13870000.hsi2c/i2c-0/0-0068/iio:device1/self_test |
| 556 | chown system radio /sys/devices/13870000.hsi2c/i2c-0/0-0068/iio:device1/self_test_samples |
| 557 | chown system radio /sys/devices/13870000.hsi2c/i2c-0/0-0068/iio:device1/self_test_threshold |
| 558 | chown system radio /sys/devices/13870000.hsi2c/i2c-0/0-0068/iio:device1/shealth_cadence |
| 559 | chown system radio /sys/devices/13870000.hsi2c/i2c-0/0-0068/iio:device1/shealth_cadence_enable |
| 560 | chown system radio /sys/devices/13870000.hsi2c/i2c-0/0-0068/iio:device1/shealth_flush_cadence |
| 561 | chown system radio /sys/devices/13870000.hsi2c/i2c-0/0-0068/iio:device1/shealth_freq_threshold |
| 562 | chown system radio /sys/devices/13870000.hsi2c/i2c-0/0-0068/iio:device1/shealth_instant_cadence |
| 563 | chown system radio /sys/devices/13870000.hsi2c/i2c-0/0-0068/iio:device1/shealth_int_period |
| 564 | chown system radio /sys/devices/13870000.hsi2c/i2c-0/0-0068/iio:device1/shealth_timer |
| 565 | chown system radio /sys/devices/13870000.hsi2c/i2c-0/0-0068/iio:device1/six_axes_q_on |
| 566 | chown system radio /sys/devices/13870000.hsi2c/i2c-0/0-0068/iio:device1/six_axes_q_rate |
| 567 | chown system radio /sys/devices/13870000.hsi2c/i2c-0/0-0068/iio:device1/six_axes_q_value |
| 568 | chown system radio /sys/devices/13870000.hsi2c/i2c-0/0-0068/iio:device1/smd_delay_threshold |
| 569 | chown system radio /sys/devices/13870000.hsi2c/i2c-0/0-0068/iio:device1/smd_delay_threshold2 |
| 570 | chown system radio /sys/devices/13870000.hsi2c/i2c-0/0-0068/iio:device1/smd_enable |
| 571 | chown system radio /sys/devices/13870000.hsi2c/i2c-0/0-0068/iio:device1/smd_threshold |
| 572 | chown system radio /sys/devices/13870000.hsi2c/i2c-0/0-0068/iio:device1/step_detector_on |
| 573 | chown system radio /sys/devices/13870000.hsi2c/i2c-0/0-0068/iio:device1/step_indicator_on |
| 574 | chown system radio /sys/devices/13870000.hsi2c/i2c-0/0-0068/iio:device1/subsystem |
| 575 | chown system radio /sys/devices/13870000.hsi2c/i2c-0/0-0068/iio:device1/temperature |
| 576 | chown system radio /sys/devices/13870000.hsi2c/i2c-0/0-0068/iio:device1/timestamp |
| 577 | chown system radio /sys/devices/13870000.hsi2c/i2c-0/0-0068/iio:device1/three_axes_q_on |
| 578 | chown system radio /sys/devices/13870000.hsi2c/i2c-0/0-0068/iio:device1/three_axes_q_rate |
| 579 | chown system radio /sys/devices/13870000.hsi2c/i2c-0/0-0068/iio:device1/trigger |
| 580 | chown system radio /sys/devices/13870000.hsi2c/i2c-0/0-0068/iio:device1/trigger/current_trigger |
| 581 | chown system radio /sys/devices/13870000.hsi2c/i2c-0/0-0068/iio:device1/uevent |
| 582 | |
| 583 | chmod 660 /sys/devices/13870000.hsi2c/i2c-0/0-0068/iio:device1/accel_matrix |
| 584 | chmod 660 /sys/devices/13870000.hsi2c/i2c-0/0-0068/iio:device1/accel_rate |
| 585 | chmod 660 /sys/devices/13870000.hsi2c/i2c-0/0-0068/iio:device1/batchmode_timeout |
| 586 | chmod 660 /sys/devices/13870000.hsi2c/i2c-0/0-0068/iio:device1/batchmode_wake_fifo_full_on |
| 587 | chmod 700 /sys/devices/13870000.hsi2c/i2c-0/0-0068/iio:device1/buffer |
| 588 | chmod 700 /sys/devices/13870000.hsi2c/i2c-0/0-0068/iio:device1/buffer/enable |
| 589 | chmod 700 /sys/devices/13870000.hsi2c/i2c-0/0-0068/iio:device1/buffer/length |
| 590 | chmod 660 /sys/devices/13870000.hsi2c/i2c-0/0-0068/iio:device1/dev |
| 591 | chmod 660 /sys/devices/13870000.hsi2c/i2c-0/0-0068/iio:device1/dmp_event_int_on |
| 592 | chmod 660 /sys/devices/13870000.hsi2c/i2c-0/0-0068/iio:device1/dmp_firmware |
| 593 | chmod 660 /sys/devices/13870000.hsi2c/i2c-0/0-0068/iio:device1/dmp_int_on |
| 594 | chmod 660 /sys/devices/13870000.hsi2c/i2c-0/0-0068/iio:device1/dmp_on |
| 595 | chmod 660 /sys/devices/13870000.hsi2c/i2c-0/0-0068/iio:device1/event_accel_motion |
| 596 | chmod 660 /sys/devices/13870000.hsi2c/i2c-0/0-0068/iio:device1/event_pedometer |
| 597 | chmod 660 /sys/devices/13870000.hsi2c/i2c-0/0-0068/iio:device1/event_qshot_finish |
| 598 | chmod 660 /sys/devices/13870000.hsi2c/i2c-0/0-0068/iio:device1/event_qshot_start |
| 599 | chmod 660 /sys/devices/13870000.hsi2c/i2c-0/0-0068/iio:device1/event_shealth_int |
| 600 | chmod 660 /sys/devices/13870000.hsi2c/i2c-0/0-0068/iio:device1/event_smd |
| 601 | chmod 660 /sys/devices/13870000.hsi2c/i2c-0/0-0068/iio:device1/firmware_loaded |
| 602 | chmod 660 /sys/devices/13870000.hsi2c/i2c-0/0-0068/iio:device1/flush_batch |
| 603 | chmod 660 /sys/devices/13870000.hsi2c/i2c-0/0-0068/iio:device1/gyro_enable |
| 604 | chmod 660 /sys/devices/13870000.hsi2c/i2c-0/0-0068/iio:device1/gyro_fifo_enable |
| 605 | chmod 660 /sys/devices/13870000.hsi2c/i2c-0/0-0068/iio:device1/gyro_matrix |
| 606 | chmod 660 /sys/devices/13870000.hsi2c/i2c-0/0-0068/iio:device1/gyro_rate |
| 607 | chmod 660 /sys/devices/13870000.hsi2c/i2c-0/0-0068/iio:device1/in_accel_scale |
| 608 | chmod 660 /sys/devices/13870000.hsi2c/i2c-0/0-0068/iio:device1/in_accel_self_test_scale |
| 609 | chmod 660 /sys/devices/13870000.hsi2c/i2c-0/0-0068/iio:device1/in_accel_x_calibbias |
| 610 | chmod 660 /sys/devices/13870000.hsi2c/i2c-0/0-0068/iio:device1/in_accel_x_dmp_bias |
| 611 | chmod 660 /sys/devices/13870000.hsi2c/i2c-0/0-0068/iio:device1/in_accel_x_offset |
| 612 | chmod 660 /sys/devices/13870000.hsi2c/i2c-0/0-0068/iio:device1/in_accel_y_calibbias |
| 613 | chmod 660 /sys/devices/13870000.hsi2c/i2c-0/0-0068/iio:device1/in_accel_y_dmp_bias |
| 614 | chmod 660 /sys/devices/13870000.hsi2c/i2c-0/0-0068/iio:device1/in_accel_y_offset |
| 615 | chmod 660 /sys/devices/13870000.hsi2c/i2c-0/0-0068/iio:device1/in_accel_z_calibbias |
| 616 | chmod 660 /sys/devices/13870000.hsi2c/i2c-0/0-0068/iio:device1/in_accel_z_dmp_bias |
| 617 | chmod 660 /sys/devices/13870000.hsi2c/i2c-0/0-0068/iio:device1/in_accel_z_offset |
| 618 | chmod 660 /sys/devices/13870000.hsi2c/i2c-0/0-0068/iio:device1/in_anglvel_scale |
| 619 | chmod 660 /sys/devices/13870000.hsi2c/i2c-0/0-0068/iio:device1/in_anglvel_self_test_scale |
| 620 | chmod 660 /sys/devices/13870000.hsi2c/i2c-0/0-0068/iio:device1/in_anglvel_x_calibbias |
| 621 | chmod 660 /sys/devices/13870000.hsi2c/i2c-0/0-0068/iio:device1/in_anglvel_x_dmp_bias |
| 622 | chmod 660 /sys/devices/13870000.hsi2c/i2c-0/0-0068/iio:device1/in_anglvel_x_offset |
| 623 | chmod 660 /sys/devices/13870000.hsi2c/i2c-0/0-0068/iio:device1/in_anglvel_y_calibbias |
| 624 | chmod 660 /sys/devices/13870000.hsi2c/i2c-0/0-0068/iio:device1/in_anglvel_y_dmp_bias |
| 625 | chmod 660 /sys/devices/13870000.hsi2c/i2c-0/0-0068/iio:device1/in_anglvel_y_offset |
| 626 | chmod 660 /sys/devices/13870000.hsi2c/i2c-0/0-0068/iio:device1/in_anglvel_z_calibbias |
| 627 | chmod 660 /sys/devices/13870000.hsi2c/i2c-0/0-0068/iio:device1/in_anglvel_z_dmp_bias |
| 628 | chmod 660 /sys/devices/13870000.hsi2c/i2c-0/0-0068/iio:device1/in_anglvel_z_offset |
| 629 | chmod 660 /sys/devices/13870000.hsi2c/i2c-0/0-0068/iio:device1/master_enable |
| 630 | chmod 660 /sys/devices/13870000.hsi2c/i2c-0/0-0068/iio:device1/motion_lpa_freq |
| 631 | chmod 660 /sys/devices/13870000.hsi2c/i2c-0/0-0068/iio:device1/motion_lpa_on |
| 632 | chmod 660 /sys/devices/13870000.hsi2c/i2c-0/0-0068/iio:device1/motion_lpa_threshold |
| 633 | chmod 660 /sys/devices/13870000.hsi2c/i2c-0/0-0068/iio:device1/name |
| 634 | chmod 660 /sys/devices/13870000.hsi2c/i2c-0/0-0068/iio:device1/ped_q_on |
| 635 | chmod 660 /sys/devices/13870000.hsi2c/i2c-0/0-0068/iio:device1/ped_q_rate |
| 636 | chmod 660 /sys/devices/13870000.hsi2c/i2c-0/0-0068/iio:device1/pedometer_counter |
| 637 | chmod 660 /sys/devices/13870000.hsi2c/i2c-0/0-0068/iio:device1/pedometer_int_on |
| 638 | chmod 660 /sys/devices/13870000.hsi2c/i2c-0/0-0068/iio:device1/pedometer_int_thresh |
| 639 | chmod 660 /sys/devices/13870000.hsi2c/i2c-0/0-0068/iio:device1/pedometer_on |
| 640 | chmod 660 /sys/devices/13870000.hsi2c/i2c-0/0-0068/iio:device1/pedometer_peak_thresh |
| 641 | chmod 660 /sys/devices/13870000.hsi2c/i2c-0/0-0068/iio:device1/pedometer_step_thresh |
| 642 | chmod 660 /sys/devices/13870000.hsi2c/i2c-0/0-0068/iio:device1/pedometer_step_thresh_time |
| 643 | chmod 660 /sys/devices/13870000.hsi2c/i2c-0/0-0068/iio:device1/pedometer_steps |
| 644 | chmod 660 /sys/devices/13870000.hsi2c/i2c-0/0-0068/iio:device1/pedometer_time |
| 645 | chmod 700 /sys/devices/13870000.hsi2c/i2c-0/0-0068/iio:device1/power |
| 646 | chmod 700 /sys/devices/13870000.hsi2c/i2c-0/0-0068/iio:device1/power/autosuspend_delay_ms |
| 647 | chmod 700 /sys/devices/13870000.hsi2c/i2c-0/0-0068/iio:device1/power/control |
| 648 | chmod 700 /sys/devices/13870000.hsi2c/i2c-0/0-0068/iio:device1/power/runtime_active_time |
| 649 | chmod 700 /sys/devices/13870000.hsi2c/i2c-0/0-0068/iio:device1/power/runtime_status |
| 650 | chmod 700 /sys/devices/13870000.hsi2c/i2c-0/0-0068/iio:device1/power/runtime_suspended_time |
| 651 | chmod 660 /sys/devices/13870000.hsi2c/i2c-0/0-0068/iio:device1/power_state |
| 652 | chmod 660 /sys/devices/13870000.hsi2c/i2c-0/0-0068/iio:device1/qshot_finish_angle |
| 653 | chmod 660 /sys/devices/13870000.hsi2c/i2c-0/0-0068/iio:device1/qshot_finish_int_enable |
| 654 | chmod 660 /sys/devices/13870000.hsi2c/i2c-0/0-0068/iio:device1/qshot_start_angle |
| 655 | chmod 660 /sys/devices/13870000.hsi2c/i2c-0/0-0068/iio:device1/qshot_start_int_enable |
| 656 | chmod 660 /sys/devices/13870000.hsi2c/i2c-0/0-0068/iio:device1/reg_dump |
| 657 | chmod 660 /sys/devices/13870000.hsi2c/i2c-0/0-0068/iio:device1/sampling_frequency |
| 658 | chmod 660 /sys/devices/13870000.hsi2c/i2c-0/0-0068/iio:device1/sampling_frequency_available |
| 659 | chmod 700 /sys/devices/13870000.hsi2c/i2c-0/0-0068/iio:device1/scan_elements |
| 660 | chmod 700 /sys/devices/13870000.hsi2c/i2c-0/0-0068/iio:device1/scan_elements/in_timestamp_en |
| 661 | chmod 700 /sys/devices/13870000.hsi2c/i2c-0/0-0068/iio:device1/scan_elements/in_timestamp_index |
| 662 | chmod 700 /sys/devices/13870000.hsi2c/i2c-0/0-0068/iio:device1/scan_elements/in_timestamp_type |
| 663 | chmod 660 /sys/devices/13870000.hsi2c/i2c-0/0-0068/iio:device1/secondary_name |
| 664 | chmod 660 /sys/devices/13870000.hsi2c/i2c-0/0-0068/iio:device1/self_test |
| 665 | chmod 660 /sys/devices/13870000.hsi2c/i2c-0/0-0068/iio:device1/self_test_samples |
| 666 | chmod 660 /sys/devices/13870000.hsi2c/i2c-0/0-0068/iio:device1/self_test_threshold |
| 667 | chmod 660 /sys/devices/13870000.hsi2c/i2c-0/0-0068/iio:device1/shealth_cadence |
| 668 | chmod 660 /sys/devices/13870000.hsi2c/i2c-0/0-0068/iio:device1/shealth_cadence_enable |
| 669 | chmod 660 /sys/devices/13870000.hsi2c/i2c-0/0-0068/iio:device1/shealth_flush_cadence |
| 670 | chmod 660 /sys/devices/13870000.hsi2c/i2c-0/0-0068/iio:device1/shealth_freq_threshold |
| 671 | chmod 660 /sys/devices/13870000.hsi2c/i2c-0/0-0068/iio:device1/shealth_instant_cadence |
| 672 | chmod 660 /sys/devices/13870000.hsi2c/i2c-0/0-0068/iio:device1/shealth_int_period |
| 673 | chmod 660 /sys/devices/13870000.hsi2c/i2c-0/0-0068/iio:device1/shealth_timer |
| 674 | chmod 660 /sys/devices/13870000.hsi2c/i2c-0/0-0068/iio:device1/six_axes_q_on |
| 675 | chmod 660 /sys/devices/13870000.hsi2c/i2c-0/0-0068/iio:device1/six_axes_q_rate |
| 676 | chmod 660 /sys/devices/13870000.hsi2c/i2c-0/0-0068/iio:device1/six_axes_q_value |
| 677 | chmod 660 /sys/devices/13870000.hsi2c/i2c-0/0-0068/iio:device1/smd_delay_threshold |
| 678 | chmod 660 /sys/devices/13870000.hsi2c/i2c-0/0-0068/iio:device1/smd_delay_threshold2 |
| 679 | chmod 660 /sys/devices/13870000.hsi2c/i2c-0/0-0068/iio:device1/smd_enable |
| 680 | chmod 660 /sys/devices/13870000.hsi2c/i2c-0/0-0068/iio:device1/smd_threshold |
| 681 | chmod 660 /sys/devices/13870000.hsi2c/i2c-0/0-0068/iio:device1/step_detector_on |
| 682 | chmod 660 /sys/devices/13870000.hsi2c/i2c-0/0-0068/iio:device1/step_indicator_on |
| 683 | chmod 660 /sys/devices/13870000.hsi2c/i2c-0/0-0068/iio:device1/subsystem |
| 684 | chmod 660 /sys/devices/13870000.hsi2c/i2c-0/0-0068/iio:device1/temperature |
| 685 | chmod 660 /sys/devices/13870000.hsi2c/i2c-0/0-0068/iio:device1/timestamp |
| 686 | chmod 660 /sys/devices/13870000.hsi2c/i2c-0/0-0068/iio:device1/three_axes_q_on |
| 687 | chmod 660 /sys/devices/13870000.hsi2c/i2c-0/0-0068/iio:device1/three_axes_q_rate |
| 688 | chmod 700 /sys/devices/13870000.hsi2c/i2c-0/0-0068/iio:device1/trigger |
| 689 | chmod 700 /sys/devices/13870000.hsi2c/i2c-0/0-0068/iio:device1/trigger/current_trigger |
| 690 | chmod 660 /sys/devices/13870000.hsi2c/i2c-0/0-0068/iio:device1/uevent |
| 691 | |
| 692 | # sensor |
| 693 | chown system radio /sys/devices/13870000.hsi2c/i2c-0/0-002e/iio:device2/buffer |
| 694 | chown system radio /sys/devices/13870000.hsi2c/i2c-0/0-002e/iio:device2/buffer/enable |
| 695 | chown system radio /sys/devices/13870000.hsi2c/i2c-0/0-002e/iio:device2/buffer/length |
| 696 | chown system radio /sys/devices/13870000.hsi2c/i2c-0/0-002e/iio:device2/dev |
| 697 | chown system radio /sys/devices/13870000.hsi2c/i2c-0/0-002e/iio:device2/hard_offset |
| 698 | chown system radio /sys/devices/13870000.hsi2c/i2c-0/0-002e/iio:device2/in_magn_scale |
| 699 | chown system radio /sys/devices/13870000.hsi2c/i2c-0/0-002e/iio:device2/in_magn_x_raw |
| 700 | chown system radio /sys/devices/13870000.hsi2c/i2c-0/0-002e/iio:device2/in_magn_y_raw |
| 701 | chown system radio /sys/devices/13870000.hsi2c/i2c-0/0-002e/iio:device2/in_magn_z_raw |
| 702 | chown system radio /sys/devices/13870000.hsi2c/i2c-0/0-002e/iio:device2/mag_average_sample |
| 703 | chown system radio /sys/devices/13870000.hsi2c/i2c-0/0-002e/iio:device2/name |
| 704 | chown system radio /sys/devices/13870000.hsi2c/i2c-0/0-002e/iio:device2/ouflow_thresh |
| 705 | chown system radio /sys/devices/13870000.hsi2c/i2c-0/0-002e/iio:device2/position |
| 706 | chown system radio /sys/devices/13870000.hsi2c/i2c-0/0-002e/iio:device2/power |
| 707 | chown system radio /sys/devices/13870000.hsi2c/i2c-0/0-002e/iio:device2/power/autosuspend_delay_ms |
| 708 | chown system radio /sys/devices/13870000.hsi2c/i2c-0/0-002e/iio:device2/power/control |
| 709 | chown system radio /sys/devices/13870000.hsi2c/i2c-0/0-002e/iio:device2/power/runtime_active_time |
| 710 | chown system radio /sys/devices/13870000.hsi2c/i2c-0/0-002e/iio:device2/power/runtime_status |
| 711 | chown system radio /sys/devices/13870000.hsi2c/i2c-0/0-002e/iio:device2/power/runtime_suspended_time |
| 712 | chown system radio /sys/devices/13870000.hsi2c/i2c-0/0-002e/iio:device2/sampling_frequency |
| 713 | chown system radio /sys/devices/13870000.hsi2c/i2c-0/0-002e/iio:device2/scan_elements |
| 714 | chown system radio /sys/devices/13870000.hsi2c/i2c-0/0-002e/iio:device2/scan_elements/in_magn_x_en |
| 715 | chown system radio /sys/devices/13870000.hsi2c/i2c-0/0-002e/iio:device2/scan_elements/in_magn_x_index |
| 716 | chown system radio /sys/devices/13870000.hsi2c/i2c-0/0-002e/iio:device2/scan_elements/in_magn_x_type |
| 717 | chown system radio /sys/devices/13870000.hsi2c/i2c-0/0-002e/iio:device2/scan_elements/in_magn_y_en |
| 718 | chown system radio /sys/devices/13870000.hsi2c/i2c-0/0-002e/iio:device2/scan_elements/in_magn_y_index |
| 719 | chown system radio /sys/devices/13870000.hsi2c/i2c-0/0-002e/iio:device2/scan_elements/in_magn_y_type |
| 720 | chown system radio /sys/devices/13870000.hsi2c/i2c-0/0-002e/iio:device2/scan_elements/in_magn_z_en |
| 721 | chown system radio /sys/devices/13870000.hsi2c/i2c-0/0-002e/iio:device2/scan_elements/in_magn_z_index |
| 722 | chown system radio /sys/devices/13870000.hsi2c/i2c-0/0-002e/iio:device2/scan_elements/in_magn_z_type |
| 723 | chown system radio /sys/devices/13870000.hsi2c/i2c-0/0-002e/iio:device2/scan_elements/in_timestamp_en |
| 724 | chown system radio /sys/devices/13870000.hsi2c/i2c-0/0-002e/iio:device2/scan_elements/in_timestamp_index |
| 725 | chown system radio /sys/devices/13870000.hsi2c/i2c-0/0-002e/iio:device2/scan_elements/in_timestamp_type |
| 726 | chown system radio /sys/devices/13870000.hsi2c/i2c-0/0-002e/iio:device2/self_test |
| 727 | chown system radio /sys/devices/13870000.hsi2c/i2c-0/0-002e/iio:device2/self_test_noise |
| 728 | chown system radio /sys/devices/13870000.hsi2c/i2c-0/0-002e/iio:device2/static_matrix |
| 729 | chown system radio /sys/devices/13870000.hsi2c/i2c-0/0-002e/iio:device2/trigger |
| 730 | chown system radio /sys/devices/13870000.hsi2c/i2c-0/0-002e/iio:device2/trigger/current_trigger |
| 731 | chown system radio /sys/class/sensors/sensor_dev/flush |
| 732 | |
| 733 | chmod 760 /sys/devices/13870000.hsi2c/i2c-0/0-002e/iio:device2/buffer |
| 734 | chmod 760 /sys/devices/13870000.hsi2c/i2c-0/0-002e/iio:device2/buffer/enable |
| 735 | chmod 760 /sys/devices/13870000.hsi2c/i2c-0/0-002e/iio:device2/buffer/length |
| 736 | chmod 760 /sys/devices/13870000.hsi2c/i2c-0/0-002e/iio:device2/dev |
| 737 | chmod 760 /sys/devices/13870000.hsi2c/i2c-0/0-002e/iio:device2/hard_offset |
| 738 | chmod 760 /sys/devices/13870000.hsi2c/i2c-0/0-002e/iio:device2/in_magn_scale |
| 739 | chmod 760 /sys/devices/13870000.hsi2c/i2c-0/0-002e/iio:device2/in_magn_x_raw |
| 740 | chmod 760 /sys/devices/13870000.hsi2c/i2c-0/0-002e/iio:device2/in_magn_y_raw |
| 741 | chmod 760 /sys/devices/13870000.hsi2c/i2c-0/0-002e/iio:device2/in_magn_z_raw |
| 742 | chmod 760 /sys/devices/13870000.hsi2c/i2c-0/0-002e/iio:device2/mag_average_sample |
| 743 | chmod 760 /sys/devices/13870000.hsi2c/i2c-0/0-002e/iio:device2/name |
| 744 | chmod 760 /sys/devices/13870000.hsi2c/i2c-0/0-002e/iio:device2/ouflow_thresh |
| 745 | chmod 760 /sys/devices/13870000.hsi2c/i2c-0/0-002e/iio:device2/position |
| 746 | chmod 760 /sys/devices/13870000.hsi2c/i2c-0/0-002e/iio:device2/power/ |
| 747 | chmod 760 /sys/devices/13870000.hsi2c/i2c-0/0-002e/iio:device2/power/autosuspend_delay_ms |
| 748 | chmod 760 /sys/devices/13870000.hsi2c/i2c-0/0-002e/iio:device2/power/control |
| 749 | chmod 760 /sys/devices/13870000.hsi2c/i2c-0/0-002e/iio:device2/power/runtime_active_time |
| 750 | chmod 760 /sys/devices/13870000.hsi2c/i2c-0/0-002e/iio:device2/power/runtime_status |
| 751 | chmod 760 /sys/devices/13870000.hsi2c/i2c-0/0-002e/iio:device2/power/runtime_suspended_time |
| 752 | chmod 760 /sys/devices/13870000.hsi2c/i2c-0/0-002e/iio:device2/sampling_frequency |
| 753 | chmod 760 /sys/devices/13870000.hsi2c/i2c-0/0-002e/iio:device2/scan_elements |
| 754 | chmod 760 /sys/devices/13870000.hsi2c/i2c-0/0-002e/iio:device2/scan_elements/in_magn_x_en |
| 755 | chmod 760 /sys/devices/13870000.hsi2c/i2c-0/0-002e/iio:device2/scan_elements/in_magn_x_index |
| 756 | chmod 760 /sys/devices/13870000.hsi2c/i2c-0/0-002e/iio:device2/scan_elements/in_magn_x_type |
| 757 | chmod 760 /sys/devices/13870000.hsi2c/i2c-0/0-002e/iio:device2/scan_elements/in_magn_y_en |
| 758 | chmod 760 /sys/devices/13870000.hsi2c/i2c-0/0-002e/iio:device2/scan_elements/in_magn_y_index |
| 759 | chmod 760 /sys/devices/13870000.hsi2c/i2c-0/0-002e/iio:device2/scan_elements/in_magn_y_type |
| 760 | chmod 760 /sys/devices/13870000.hsi2c/i2c-0/0-002e/iio:device2/scan_elements/in_magn_z_en |
| 761 | chmod 760 /sys/devices/13870000.hsi2c/i2c-0/0-002e/iio:device2/scan_elements/in_magn_z_index |
| 762 | chmod 760 /sys/devices/13870000.hsi2c/i2c-0/0-002e/iio:device2/scan_elements/in_magn_z_type |
| 763 | chmod 760 /sys/devices/13870000.hsi2c/i2c-0/0-002e/iio:device2/scan_elements/in_timestamp_en |
| 764 | chmod 760 /sys/devices/13870000.hsi2c/i2c-0/0-002e/iio:device2/scan_elements/in_timestamp_index |
| 765 | chmod 760 /sys/devices/13870000.hsi2c/i2c-0/0-002e/iio:device2/scan_elements/in_timestamp_type |
| 766 | chmod 760 /sys/devices/13870000.hsi2c/i2c-0/0-002e/iio:device2/self_test |
| 767 | chmod 760 /sys/devices/13870000.hsi2c/i2c-0/0-002e/iio:device2/self_test_noise |
| 768 | chmod 760 /sys/devices/13870000.hsi2c/i2c-0/0-002e/iio:device2/static_matrix |
| 769 | chmod 760 /sys/devices/13870000.hsi2c/i2c-0/0-002e/iio:device2/trigger |
| 770 | chmod 760 /sys/devices/13870000.hsi2c/i2c-0/0-002e/iio:device2/trigger/current_trigger |
| 771 | chmod 760 /sys/class/sensors/sensor_dev/flush |
| 772 | |
| 773 | # IRLED_sensor |
| 774 | chown system radio /sys/class/sensors/irled_remote/name |
| 775 | chown system radio /sys/class/sensors/irled_remote/vendor |
| 776 | chown system radio /sys/class/sensors/irled_remote/irled_send |
| 777 | chown system radio /sys/class/sensors/irled_remote/irled_send_result |
| 778 | |
| 779 | # GPS |
| 780 | service gpsd /vendor/bin/gpsd -c /system/etc/gps.xml |
| 781 | class main |
| 782 | user gps |
| 783 | group system wakelock inet net_raw |
| 784 | ioprio be 0 |
| 785 | |
| 786 | # Set watchdog timer to 30 seconds and pet it every 10 seconds to get a 20 second margin |
| 787 | service watchdogd /sbin/watchdogd 10 20 |
| 788 | class core |
| 789 | disabled |
| 790 | |
| 791 | # on userdebug and eng builds, enable kgdb on the serial console |
| 792 | on property:ro.debuggable=1 |
| 793 | write /sys/module/kgdboc/parameters/kgdboc ttyFIQ1 |
| 794 | write /sys/module/fiq_debugger/parameters/kgdb_enable 1 |
| 795 | |
| 796 | # Kick watchdogd if debug_level is low |
| 797 | on property:ro.debug_level=0x4f4c |
| 798 | start watchdogd |
| 799 | |
| 800 | # LPM |
| 801 | service charger /system/bin/charger |
| 802 | class charger |
| 803 | critical |
| 804 | seclabel u:r:charger:s0 |
| 805 | |
| 806 | on charger |
| 807 | # Set cpu governor to powersave while in charging mode |
| 808 | write /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor powersave |
| 809 | write /sys/devices/system/cpu/cpu1/cpufreq/scaling_governor powersave |
| 810 | write /sys/devices/system/cpu/cpu2/cpufreq/scaling_governor powersave |
| 811 | write /sys/devices/system/cpu/cpu3/cpufreq/scaling_governor powersave |
| 812 | |
| 813 | service sswap /vendor/bin/sswap -s -f 1024 |
| 814 | class core |
| 815 | user root |
| 816 | group root |
| 817 | oneshot |