blob: e39d212665114361f2fa4735658b7d7ccecf4a94 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
|
# fingerprintlog support tzlog qseelog hyplog rmlog, default 1100 means enable tzlog and qseelog
service vendor.fingerprintlog.status_set /vendor/bin/fingerprint_log set_status_prop 1100
class hal
user system
group system
oneshot
writepid /dev/cpuset/system-background/tasks /dev/cpuctl/tasks /dev/blkio/system-background/tasks
service fingerprint_log /vendor/bin/fingerprint_log tzlog_log 1100
user system
group system
disabled
writepid /dev/cpuset/system-background/tasks /dev/cpuctl/tasks /dev/blkio/system-background/tasks
service fingerprint_nolog /vendor/bin/fingerprint_log tzlog_nolog 1100
user system
group system
disabled
writepid /dev/cpuset/system-background/tasks /dev/cpuctl/tasks /dev/blkio/system-background/tasks
service fingerprint_monitor /vendor/bin/fingerprint_log sec_monitor_server 1100
user root
group root
socket fingerprint_log_only_m stream 0600 system system
oneshot
disabled
writepid /dev/cpuset/system-background/tasks /dev/cpuctl/tasks /dev/blkio/system-background/tasks
on boot
#add for fingerprint
chmod 0660 /dev/fingerprint
chown system system /dev/fingerprint
chmod 0660 /sys/devices/platform/fingerprint/irq
chown system system /sys/devices/platform/fingerprint/irq
chmod 0660 /sys/devices/platform/fingerprint/result
chown system system /sys/devices/platform/fingerprint/result
chown system system /sys/devices/platform/fingerprint/fingerprint_chip_info
chown system system /sys/devices/platform/fingerprint/ud_fingerprint_chip_info
chmod 0660 /sys/devices/platform/fingerprint/read_image_flag
chown system system /sys/devices/platform/fingerprint/read_image_flag
chmod 0660 /sys/devices/platform/fingerprint/nav
chown system system /sys/devices/platform/fingerprint/nav
chmod 0660 /sys/devices/platform/fingerprint/module_id
chown system system /sys/devices/platform/fingerprint/module_id
chown system system /sys/devices/platform/fingerprint/module_id_ud
chown system system /sys/set_app_info/set_app_info_node
chown system system /sys/class/android_usb/android0/switch_request
chmod 0664 /sys/class/android_usb/android0/switch_request
chown system system /sys/devices/platform/fingerprint/btb_det_gpio
chmod 0660 /sys/devices/platform/fingerprint/ultra_ipc_irq
chown system system /sys/devices/platform/fingerprint/ultra_ipc_irq
chmod 0660 /sys/devices/platform/fingerprint/fp_auxiliary_data
chown system system /sys/devices/platform/fingerprint/fp_auxiliary_data
chmod 0664 /sys/devices/platform/fingerprint/fp_lock_ant
chown system system /sys/devices/platform/fingerprint/fp_lock_ant
# change the limition below for sensor-hub
chown system system /sys/devices/soc0/honor_product
chmod 0664 /sys/devices/soc0/honor_product
chown system system /sys/devices/platform/honor_tp_color/tp_color_info
chmod 0664 /sys/devices/platform/honor_tp_color/tp_color_info
chown system system /sys/devices/platform/honor_ts_kit_color/ts_kit_color_info
chown system system /sys/touchscreen/glove_func/signal_disparity
chown system system /sys/touchscreen/holster_touch_window
chown system system /sys/touchscreen/touch_chip_info
chown system system /sys/touchscreen/calibrate
chown system system /sys/touchscreen/calibrate_wakeup_gesture
chown system system /sys/touchscreen/touch_glove
chown system system /sys/touchscreen/touch_sensitivity
chown system system /sys/touchscreen/hand_detect
chown system system /sys/touchscreen/supported_func_indicater
chown system system /sys/touchscreen/touch_window
chown system system /sys/touchscreen/easy_wakeup_gesture
chown system system /sys/touchscreen/wakeup_gesture_enable
chown system system /sys/touchscreen/touch_dsm_debug
chown system system /sys/touchscreen/easy_wakeup_control
chown system system /sys/touchscreen/easy_wakeup_position
chown system system /sys/touchscreen/touch_register_operation
chown system system /sys/touchscreen/tp_capacitance_test_type
chown system system /sys/touchscreen/touch_rawdata_debug
chown system system /sys/touchscreen/touch_wideth
chown system system /sys/touchscreen/roi_enable
chown system system /sys/touchscreen/roi_data
chown system system /sys/touchscreen/roi_data_debug
chown system system /sys/touchscreen/touch_tui_enable
chown system system /sys/touchscreen/touch_oem_info
chown system system /sys/touchscreen/calibration_info
chown system system /sys/touchscreen/tp_capacitance_test_config
chown system system /proc/touchscreen/tp_capacitance_data
chown system system /sys/touchscreen/fingerprint_switch_ctrl
chown system system /sys/touchscreen/power_switch_ctrl
chown system system /sys/touchscreen/touch_switch
chown system system /sys/touchscreen/udfp_enable
chown system system /sys/touchscreen/stylus_wakeup_ctrl
chown system system /sys/touchscreen/aod_touch_switch_ctrl
chown system system /sys/touchscreen/aod_event_report_ctrl
chown system system /sys/touchscreen/tp_ud_lowpower_ctrl
chown system system /sys/touchscreen/aod_notify_tp_power_ctrl
chown system system /sys/touchscreen/aod_notify_tp_talk_mode
chown system system /sys/touchscreen/set_standby_enable
chown system system /sys/touchscreen/aod_notify_tp_fullaod_doze_status
chown system system /sys/touchscreen/fullaod_support_gesture_status
chown system system /sys/touchscreen/charger_state
chown system system /sys/touchscreen/driver_override
chown system system /sys/touchscreen/factory_extra_cmd
chown system system /sys/touchscreen/hostprocessing
chown system system /sys/touchscreen/loglevel
chown system system /sys/touchscreen/modalias
chown system system /sys/touchscreen/power
chown system system /sys/touchscreen/ring_setting_config_ctrl
chown system system /sys/touchscreen/ring_switch_ctrl
chown system system /sys/touchscreen/roi_data_internal
chown system system /sys/touchscreen/screen_status_switch
chown system system /sys/touchscreen/set_phone_call_aft_event
chown system system /sys/touchscreen/subsystem
chown system system /sys/touchscreen/thp_status
chown system system /sys/touchscreen/tp_dfx_info
chown system system /sys/touchscreen/trusted_touch_enable
chown system system /sys/touchscreen/trusted_touch_type
chown system system /sys/touchscreen/tui_wake_up_enable
chown system system /sys/touchscreen/uevent
# for touchscreen0
chown system system /sys/touchscreen0/touch_chip_info
chown system system /sys/touchscreen0/roi_data
chown system system /sys/touchscreen0/roi_enable
chown system system /sys/touchscreen0/touch_sensitivity
chown system system /sys/touchscreen0/touch_glove
chown system system /sys/touchscreen0/touch_window
chown system system /sys/touchscreen0/touch_switch
chown system system /sys/touchscreen0/udfp_enable
chown system system /sys/touchscreen0/stylus_wakeup_ctrl
chown system system /sys/touchscreen0/supported_func_indicater
chown system system /sys/touchscreen0/easy_wakeup_gesture
chown system system /sys/touchscreen0/wakeup_gesture_enable
chown system system /sys/touchscreen0/easy_wakeup_control
chown system system /sys/touchscreen0/easy_wakeup_position
chown system system /sys/touchscreen0/touch_oem_info
chown system system /sys/touchscreen0/fingerprint_switch_ctrl
chown system system /sys/touchscreen0/power_switch_ctrl
chown system system /sys/touchscreen0/aod_touch_switch_ctrl
chown system system /sys/touchscreen0/aod_event_report_ctrl
chown system system /sys/touchscreen0/tp_ud_lowpower_ctrl
chown system system /sys/touchscreen0/aod_notify_tp_power_ctrl
chown system system /sys/touchscreen0/screen_status_switch
chown system system /sys/touchscreen0/aod_notify_tp_talk_mode
chown system system /sys/touchscreen0/aod_notify_tp_fullaod_doze_status
chown system system /sys/touchscreen0/tp_touchpad_window_enable
chown system system /sys/touchscreen0/set_standby_enable
chown system system /sys/touchscreen0/trusted_touch_enable
chown system system /sys/touchscreen0/trusted_touch_type
chown system system /sys/touchscreen0/fullaod_support_gesture_status
chown system system /sys/touchscreen0/charger_state
chown system system /sys/touchscreen0/driver_override
chown system system /sys/touchscreen0/factory_extra_cmd
chown system system /sys/touchscreen0/hostprocessing
chown system system /sys/touchscreen0/loglevel
chown system system /sys/touchscreen0/modalias
chown system system /sys/touchscreen0/power
chown system system /sys/touchscreen0/ring_setting_config_ctrl
chown system system /sys/touchscreen0/ring_switch_ctrl
chown system system /sys/touchscreen0/roi_data_internal
chown system system /sys/touchscreen0/subsystem
chown system system /sys/touchscreen0/thp_status
chown system system /sys/touchscreen0/tp_dfx_info
chown system system /sys/touchscreen0/tui_wake_up_enable
chown system system /sys/touchscreen0/uevent
# for touchscreen1
chown system system /sys/touchscreen1/touch_chip_info
chown system system /sys/touchscreen1/calibrate
chown system system /sys/touchscreen1/calibrate_wakeup_gesture
chown system system /sys/touchscreen1/touch_glove
chown system system /sys/touchscreen1/touch_sensitivity
chown system system /sys/touchscreen1/hand_detect
chown system system /sys/touchscreen1/supported_func_indicater
chown system system /sys/touchscreen1/touch_window
chown system system /sys/touchscreen1/easy_wakeup_gesture
chown system system /sys/touchscreen1/aod_touch_switch_ctrl
chown system system /sys/touchscreen1/wakeup_gesture_enable
chown system system /sys/touchscreen1/touch_dsm_debug
chown system system /sys/touchscreen1/easy_wakeup_control
chown system system /sys/touchscreen1/easy_wakeup_position
chown system system /sys/touchscreen1/touch_register_operation
chown system system /sys/touchscreen1/tp_capacitance_test_type
chown system system /sys/touchscreen1/touch_rawdata_debug
chown system system /sys/touchscreen1/touch_wideth
chown system system /sys/touchscreen1/roi_enable
chown system system /sys/touchscreen1/roi_data
chown system system /sys/touchscreen1/roi_data_debug
chown system system /sys/touchscreen1/touch_tui_enable
chown system system /sys/touchscreen1/touch_oem_info
chown system system /sys/touchscreen1/calibration_info
chown system system /sys/touchscreen1/tp_capacitance_test_config
chown system system /sys/touchscreen1/touch_switch
chown system system /sys/touchscreen1/udfp_enable
chown system system /sys/touchscreen1/stylus_wakeup_ctrl
chown system system /sys/touchscreen1/tp_ud_lowpower_ctrl
chown system system /sys/touchscreen1/trusted_touch_enable
chown system system /sys/touchscreen1/trusted_touch_type
chown system system /proc/touchscreen1/tp_capacitance_data
chown system system /sys/touchscreen1/fingerprint_switch_ctrl
chown system system /sys/touchscreen1/power_switch_ctrl
chown system system /sys/touchscreen1/aod_event_report_ctrl
chown system system /sys/touchscreen1/aod_notify_tp_power_ctrl
chown system system /sys/touchscreen1/aod_notify_tp_talk_mode
chown system system /sys/touchscreen1/set_standby_enable
chown system system /sys/touchscreen1/fullaod_support_gesture_status
chown system system /sys/touchscreen1/charger_state
chown system system /sys/touchscreen1/driver_override
chown system system /sys/touchscreen1/factory_extra_cmd
chown system system /sys/touchscreen1/hostprocessing
chown system system /sys/touchscreen1/loglevel
chown system system /sys/touchscreen1/modalias
chown system system /sys/touchscreen1/power
chown system system /sys/touchscreen1/ring_setting_config_ctrl
chown system system /sys/touchscreen1/ring_switch_ctrl
chown system system /sys/touchscreen1/roi_data_internal
chown system system /sys/touchscreen1/screen_status_switch
chown system system /sys/touchscreen1/set_phone_call_aft_event
chown system system /sys/touchscreen1/subsystem
chown system system /sys/touchscreen1/thp_status
chown system system /sys/touchscreen1/tp_dfx_info
chown system system /sys/touchscreen1/tui_wake_up_enable
chown system system /sys/touchscreen1/uevent
chown system system /sys/firmware/devicetree/base/soc/spi@890000/honor_thp@0
chmod 0750 /sys/firmware/devicetree/base/soc/spi@890000/honor_thp@0
chown system system /sys/firmware/devicetree/base/soc/spi@990000/honor_thp@0
chmod 0750 /sys/firmware/devicetree/base/soc/spi@990000/honor_thp@0
chown system system /sys/firmware/devicetree/base/soc/spi@990000/ts_kit
chmod 0750 /sys/firmware/devicetree/base/soc/spi@990000/ts_kit
chown system system /sys/firmware/devicetree/base/soc/qcom,qupv3_1_geni_se@ac0000/spi@a90000
chmod 0750 /sys/firmware/devicetree/base/soc/qcom,qupv3_1_geni_se@ac0000/spi@a90000
chown system system /sys/devices/12c.hw-dev-detect/dev_flag
chown audioserver audio /dev/deviceboxID
chmod 0660 /dev/deviceboxID
chmod 0660 /dev/ts_aft_set_info1
chown root system /dev/ts_aft_set_info1
chmod 0660 /dev/ts_aft_get_info1
chown root system /dev/ts_aft_get_info1
chmod 0660 /dev/input_mt_wrapper
chown root system /dev/input_mt_wrapper
chmod 0660 /dev/input_mt_wrapper0
chown root system /dev/input_mt_wrapper0
chmod 0660 /dev/input_mt_wrapper1
chown root system /dev/input_mt_wrapper1
on post-fs-data
#Create dir for fingerprint
mkdir /data/vendor/log 0755 system system
mkdir /data/vendor/log/sec_log 0755 system system
mkdir /data/vendor/log/fingerprint 0755 system system
#Create dir for thplog
mkdir /data/vendor/log/thplog 0774 root system
mkdir /data/vendor/log/hertz_log 0755 root system
#Create dir for beidou config
mkdir /data/vendor/gnss 0755 root system
mkdir /data/vendor/gnss/rsmc 0755 root system
mkdir /data/vendor/gnss/rsmc/system_config/ 0755 root system
mkdir /data/vendor/gnss/rsmc/system_config/using/ 0755 root system
on post-fs-data
chown system system /sys/devices/platform/honor_touch/roi_data
chown system system /sys/devices/platform/honor_touch/roi_enable
chown system system /sys/devices/platform/honor_touch/roi_data_debug
chown system system /sys/devices/platform/honor_touch/touch_chip_info
chown system system /data/misc/sensors
restorecon /data/misc/sensors
#For vibrator calibration
chown system system /sys/class/leds/vibrator0/hn_vibrator_cali_val
chown system system /sys/class/leds/vibrator0/hn_vibrator_calib
chown system system /sys/class/leds/vibrator0/hn_vibrator_set_f0
chown system system /sys/class/leds/vibrator1/hn_vibrator_cali_val
chown system system /sys/class/leds/vibrator1/hn_vibrator_calib
chown system system /sys/class/leds/vibrator1/hn_vibrator_set_f0
# add haptics
chown system system /dev/hnHaptics
#Create dir for htee log
mkdir /data/vendor/log/tee 0755 root root
mkdir /data/vendor/log/audio_log 0777 system system
service knuckle /system/bin/sensors_qcom
class late_start
user system
group system
on boot
chown system camera /sys/class/leds/torch-light0/brightness
chown system camera /sys/class/leds/torch-light1/brightness
chown system system /sys/devices/platform/soc/soc:qcom,camera-flash@0/flash_thermal_protect
chown system system /sys/class/leds/torch-light0/device/flash_thermal_protect
chown system system /sys/devices/platform/soc/soc:qcom,camera-flash0/flash_thermal_protect
chown system system /sys/bus/platform/drivers/camcfgdev/guard_thermal
chown system camera /dev/hicam_actuator
chown system camera /dev/hicam_ois
chown system camera /dev/hiaon_airmouse
chown system camera /dev/cam_hiaon1
chmod 0664 /sys/class/leds/torch-light0/brightness
chmod 0664 /sys/class/leds/torch-light1/brightness
chmod 0664 /sys/devices/platform/soc/soc:qcom,camera-flash@0/flash_thermal_protect
chmod 0664 /sys/class/leds/torch-light0/device/flash_thermal_protect
chmod 0664 /sys/devices/platform/soc/soc:qcom,camera-flash0/flash_thermal_protect
chmod 0664 /sys/bus/platform/drivers/camcfgdev/guard_thermal
chmod 0664 /dev/hicam_actuator
chmod 0664 /dev/hicam_ois
chmod 0664 /dev/cam_hiaon1
chmod 0664 /dev/hiaon_airmouse
swapon_all fstab.qcom
# add for fingersense
on boot
chown system system /sys/devices/platform/honor_sensor/set_fingersense_enable
chown system system /sys/devices/platform/honor_sensor/fingersense_req_data
chown system system /sys/devices/platform/honor_sensor/fingersense_latch_data
chown system system /sys/devices/platform/honor_sensor/fingersense_latch_data2
chown system system /sys/devices/platform/honor_sensor/fingersense_data_ready
chown system system /sys/devices/platform/honor_sensor/acc_info
chown system system /sys/devices/platform/honor_sensor/fingersense_expand
# add for sensor dmd
on boot
chown system system /sys/devices/platform/honor_sensor_dmd/dmd_module_name
chmod 664 /sys/devices/platform/honor_sensor_dmd/dmd_module_name
#add for color sensor
on boot
chown system camera /sys/class/ap_sensor/color_sensor/name
chmod 644 /sys/class/ap_sensor/color_sensor/name
chown system camera /sys/class/ap_sensor/color_sensor/color_enable
chmod 664 /sys/class/ap_sensor/color_sensor/color_enable
chown system camera /sys/class/ap_sensor/color_sensor/report_data
chmod 644 /sys/class/ap_sensor/color_sensor/report_data
chown system camera /sys/class/ap_sensor/color_sensor/color_cali
chmod 644 /sys/class/ap_sensor/color_sensor/color_cali
chown system camera /sys/class/ap_sensor/color_sensor/gain
chmod 644 /sys/class/ap_sensor/color_sensor/gain
chown system camera /sys/class/ap_sensor/color_sensor/atime
chmod 644 /sys/class/ap_sensor/color_sensor/atime
chown system camera /sys/class/ap_sensor/color_sensor/itime
chmod 644 /sys/class/ap_sensor/color_sensor/itime
chown system camera /sys/class/ap_sensor/color_sensor/color_cali_state
chmod 664 /sys/class/ap_sensor/color_sensor/color_cali_state
chown system camera /sys/class/ap_sensor/color_sensor/minDelay
chmod 664 /sys/class/ap_sensor/color_sensor/minDelay
chown system camera /sys/class/ap_sensor/color_sensor/color_debug
chmod 664 /sys/class/ap_sensor/color_sensor/color_debug
#add for flicker sensor
on boot
chown system camera /sys/class/ap_flicker/flicker_sensor/name
chmod 644 /sys/class/ap_flicker/flicker_sensor/name
chown system camera /sys/class/ap_flicker/flicker_sensor/flicker_enable
chmod 664 /sys/class/ap_flicker/flicker_sensor/flicker_enable
chown system camera /sys/class/ap_flicker/flicker_sensor/flicker_data
chmod 644 /sys/class/ap_flicker/flicker_sensor/flicker_data
chown system camera /sys/class/ap_flicker/flicker_sensor/flicker_gain
chmod 664 /sys/class/ap_flicker/flicker_sensor/flicker_gain
chown system camera /sys/class/ap_flicker/flicker_sensor/flicker_itime
chmod 664 /sys/class/ap_flicker/flicker_sensor/flicker_itime
chown system camera /sys/class/ap_flicker/flicker_sensor/ring_full
chmod 664 /sys/class/ap_flicker/flicker_sensor/ring_full
chown system camera /sys/class/ap_flicker/flicker_sensor/color_debug
chmod 664 /sys/class/ap_flicker/flicker_sensor/color_debug
#add for consumerir
on boot
chmod 0644 /dev/honor_ir
chown system system /dev/honor_ir
#add for sensor event
chown system system /dev/sensorevent
chmod 660 /dev/sensorevent
|