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