-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinit.hawaii_ss_kyleprods.rc
670 lines (564 loc) · 25.2 KB
/
init.hawaii_ss_kyleprods.rc
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
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
import init.bcm2166x.usb.rc
import init.log.rc
on early-init
mkdir /efs 0771 radio system
on init
symlink /sdcard /mnt/sdcard
symlink /sdcard /storage/sdcard0
# By default, primary storage is physical
#setprop ro.vold.primary_physical 1
# To store widevine keybox
symlink /data/app /factory
symlink /efs /factory
symlink /dev/block/mmcblk0p11 /dev/block/param
on post-fs-data
# SA, System SW, SAMSUNG create log directory
mkdir /data/log 0775 system log
chown system log /data/log
setprop vold.post_fs_data_done 1
restorecon_recursive /sys/devices/system/cpu/cpufreq/ondemand
chmod 0777 /data/log
chmod 0777 /data/anr
# For WIFI
mkdir /efs/wifi 0775 radio system
mkdir /efs/bluetooth 0775 radio system
mkdir /efs/imei 0775 radio system
mkdir /data/misc/wifi 0775 wifi system
mkdir /data/misc/wifi/sockets 0770 wifi wifi
mkdir /data/misc/dhcp 0775 dhcp dhcp
mkdir /system/etc/wifi 0775 wifi wifi
chown system system /efs/wifi/.mac.info
chmod 0664 /efs/wifi/.mac.info
chown system system /efs/imei/.nvmac.info
chmod 0664 /efs/imei/.nvmac.info
# Permissions for bluetooth.
setprop ro.bt.bdaddr_path "/efs/bluetooth/bt_addr"
chown bluetooth net_bt_stack ro.bt.bdaddr_path
chown bluetooth net_bt_stack /dev/ttyS0
chmod 0600 /dev/ttyS0
chmod 0660 /sys/class/rfkill/rfkill0/state
chown bluetooth net_bt_stack /sys/class/rfkill/rfkill0/state
chown bluetooth net_bt_stack /sys/class/rfkill/rfkill0/type
# for TRP/TIS
write /data/.psm.info 1
chown system root /data/.psm.info
chmod 0660 /data/.psm.info
chown system system /sys/class/backlight/panel/brightness
chmod 0660 /sys/class/backlight/panel/brightness
chown system system /sys/class/backlight/keypad-led/brightness
chmod 0660 /sys/class/backlight/keypad-led/brightness
chown system system /sys/class/backlight/touchkey-led/brightness
chmod 0660 /sys/class/backlight/touchkey-led/brightness
# Permissions for sensors (accelerometer & magnetic & proximity)
chown system system /sys/class/input/input0/enable
chown system system /sys/class/input/input0/poll_delay
chmod 0660 /sys/class/input/input0/enable
chmod 0660 /sys/class/input/input0/poll_delay
chown system system /sys/class/input/input1/raw_data
chown system system /sys/class/input/input1/value
chown system system /sys/class/input/input1/fast_calibration_x
chown system system /sys/class/input/input1/fast_calibration_y
chown system system /sys/class/input/input1/fast_calibration_z
chown system system /sys/class/input/input1/eeprom_writing
chown system system /sys/class/input/input1/mode
chown system system /sys/class/input/input1/enable
chown system system /sys/class/input/input1/offset_filt_x
chown system system /sys/class/input/input1/offset_filt_y
chown system system /sys/class/input/input1/offset_filt_z
chown system system /sys/class/input/input1/selftest
chown system system /sys/class/input/input1/delay
chown system system /sys/class/input/input1/update
chown system system /sys/class/input/input1/range
chown system system /sys/class/input/input1/bandwidth
chmod 0660 /sys/class/input/input1/raw_data
chmod 0660 /sys/class/input/input1/value
chmod 0660 /sys/class/input/input1/fast_calibration_x
chmod 0660 /sys/class/input/input1/fast_calibration_y
chmod 0660 /sys/class/input/input1/fast_calibration_z
chmod 0660 /sys/class/input/input1/eeprom_writing
chmod 0660 /sys/class/input/input1/mode
chmod 0660 /sys/class/input/input1/enable
chmod 0660 /sys/class/input/input1/offset_filt_x
chmod 0660 /sys/class/input/input1/offset_filt_y
chmod 0660 /sys/class/input/input1/offset_filt_z
chmod 0660 /sys/class/input/input1/selftest
chmod 0660 /sys/class/input/input1/delay
chmod 0660 /sys/class/input/input1/update
chmod 0660 /sys/class/input/input1/range
chmod 0660 /sys/class/input/input1/bandwidth
chown system system /sys/class/input/input2/chip_id
chown system system /sys/class/input/input2/raw_data
chown system system /sys/class/input/input2/op_mode
chown system system /sys/class/input/input2/selftest
chown system system /sys/class/input/input2/value
chown system system /sys/class/input/input2/enable
chown system system /sys/class/input/input2/delay
chown system system /sys/class/input/input2/rept_xy
chown system system /sys/class/input/input2/rept_z
chown system system /sys/class/input/input2/odr
chmod 0660 /sys/class/input/input2/chip_id
chmod 0660 /sys/class/input/input2/raw_data
chmod 0660 /sys/class/input/input2/op_mode
chmod 0660 /sys/class/input/input2/selftest
chmod 0660 /sys/class/input/input2/value
chmod 0660 /sys/class/input/input2/enable
chmod 0660 /sys/class/input/input2/delay
chmod 0660 /sys/class/input/input2/rept_xy
chmod 0660 /sys/class/input/input2/rept_z
chmod 0660 /sys/class/input/input2/odr
# For adb
chmod 0775 /system/etc/usbdev.sh
chmod 0775 /system/etc/startadb.sh
on boot
# SISO-ANDR_PERF :: START Changing scheduler to noop during boot
write /sys/block/mmcblk0/queue/scheduler noop
# SISO-ANDR_PERF :: END
write /sys/fs/selinux/enforce 0
setprop ro.build.product hawaii
setprop ro.product.device hawaii
chown system system /sys/devices/platform/panel/backlight/panel/brightness
mount debugfs /sys/kernel/debug /sys/kernel/debug
# WIFI
setprop wifi.interface wlan0
symlink /dev/block/mmcblk0p11 /dev/block/param
# <Sensors & NFC>
# Accelerometer_sensor
chown system radio /dev/accelerometer
chown system radio /sys/class/sensors/accelerometer_sensor
chown system radio /sys/class/sensors/accelerometer_sensor/raw_data
chown system radio /sys/class/sensors/accelerometer_sensor/calibration
chown system radio /sys/class/sensors/accelerometer_sensor/reactive_alert
chown system radio /sys/class/sensors/accelerometer_sensor/vendor
chown system radio /sys/class/sensors/accelerometer_sensor/name
chown system radio /sys/class/sensors/accelerometer_sensor/selftest
# Proximity_sensor
chown system radio /sys/class/sensors/proximity_sensor/state
chown system radio /sys/class/sensors/proximity_sensor/prox_avg
chown system radio /sys/class/sensors/proximity_sensor/prox_cal
chown system radio /sys/class/sensors/proximity_sensor/prox_cal_open
chown system radio /sys/class/sensors/proximity_sensor/vendor
chown system radio /sys/class/sensors/proximity_sensor/name
chown system radio /sys/class/sensors/proximity_sensor/prox_thresh
# Magnetic_sensor
chown system radio /dev/akm8975
chown system radio /sys/class/sensors/magnetic_sensor/raw_data
chown system radio /sys/class/sensors/magnetic_sensor/adc
chown system radio /sys/class/sensors/magnetic_sensor/dac
chown system radio /sys/class/sensors/magnetic_sensor/selftest
chown system radio /sys/class/sensors/magnetic_sensor/power_on
chown system radio /sys/class/sensors/magnetic_sensor/status
chown system radio /sys/class/sensors/magnetic_sensor/op_mode
chown system radio /sys/class/sensors/magnetic_sensor/chip_id
chmod 0660 /sys/class/sensors/magnetic_sensor/selftest
chmod 0660 /sys/class/sensors/magnetic_sensor/op_mode
# Required so RIL can open kernel RPC drivers
chmod 0660 /dev/bcm_rpc
chmod 0660 /dev/bcm_irpc
chown radio radio /dev/bcm_rpc
chown radio radio /dev/bcm_irpc
chmod 0660 /dev/bcm_atc
chown shell system /dev/bcm_atc
mkdir /data/atx
chown system system /data/atx
chmod 0771 /data/atx
chown system system /dev/bcm_log
chmod 0660 /dev/bcm_log
chown system system /dev/bcm_audio_log
chmod 0660 /dev/bcm_audio_log
chown system system /dev/ttyGS0
chown system system /dev/ttyGS2
chown system system /dev/ttyS2
chmod 0770 /dev/ttyS2
chmod 0644 /proc/cmdline
# GPS UART
chown gps system /dev/ttyS1
chmod 0770 /dev/ttyS1
chown system system /proc/bcm_fuse_net_config
# Video Telephony
chmod 0666 /dev/bcm_vsp
# Allow user space (atx) access to kernel pm debug
chown system system /sys/module/pm_dbg/parameters/debug
chmod 0660 /sys/module/pm_dbg/parameters/debug
chown system system /sys/module/bcmpmu59xxx_ponkey/parameters/simulate_ponkey
chmod 0660 /sys/module/bcmpmu59xxx_ponkey/parameters/simulate_ponkey
# BEGIN BCM QUICK BOOT FEATURE
chown root system /sys/ponkey/ponkey_mode
chmod 0664 /sys/ponkey/ponkey_mode
# END BCM QUICK BOOT FEATURE
# Security driver
chmod 0660 /dev/bcm_security
chown radio root /dev/bcm_security
mkdir /data/sec 0770
chown radio root /data/sec
# BCMPMU drivers
chown -R system system /sys/devices/platform/bcmpmu*/*
# Fake some battery state
setprop status.battery.state Slow
setprop status.battery.level 10
setprop status.battery.level_raw 100
setprop status.battery.level_scale 10
# Set permission for Widevine DRM temporarily
chmod 0777 /dev/s5p-smem
rm /data/app/tlcd_sock
# Phone
setprop ro.telephony.call_ring.multiple 0
# Enable dithering algorithm
setprop fb.force.dithering 1
# Permissions for gps.
mkdir /data/gps 0770 gps system
chown gps system /data/gps
chmod 0770 /data/gps
chown gps system /system/etc/gps/glconfig.xml
chmod 0660 /system/etc/gps/glconfig.xml
chown gps system /system/etc/gps
chmod 0770 /system/etc/gps
chown gps system /system/bin/glgps
chmod 0770 /system/bin/glgps
chown gps system /system/bin/gpslogd
chmod 0777 /system/bin/gpslogd
write /sys/class/gpio/export 23
chown gps system /sys/class/gpio/gpio23/value
chown gps system /sys/class/gpio/gpio23/direction
write /sys/class/gpio/gpio23/direction out
write /sys/class/gpio/gpio23/value 0
chmod 0660 /dev/bcm_gps
chown radio radio /dev/bcm_gps
# SEC_PRODUCT_FEATURE_COMMON_USE_MULTISIM
setprop ro.multisim.simslotcount 2
# For multi csc
chown radio radio /proc/LinuStoreIII/efs_info
chmod 0664 /proc/LinuStoreIII/efs_info
# For protecting key string
chown radio radio /proc/LinuStoreIII/keystr
chmod 0664 /proc/LinuStoreIII/keystr
# For ril_prop
chown radio radio /proc/LinuStoreIII/ril_prop
chmod 0664 /proc/LinuStoreIII/ril_prop
# For fsbuild_check
chown radio radio /proc/LinuStoreIII/fsbuild_check
chmod 0664 /proc/LinuStoreIII/fsbuild_check
# For recovery_opts
chown system radio /proc/LinuStoreIII/recovery_opts
chmod 0664 /proc/LinuStoreIII/recovery_opts
# Audio (Earjack)
chown system radio /sys/class/audio/earjack/select_jack
chown system radio /sys/class/audio/earjack/key_state
chown system radio /sys/class/audio/earjack/state
chown media system /sys/class/audio/earjack/reselect_jack
# Battery node
chown system radio /sys/class/power_supply/battery/batt_charging_source
chown system radio /sys/class/power_supply/battery/batt_error_test
chown system radio /sys/class/power_supply/battery/batt_lp_charging
chown system radio /sys/class/power_supply/battery/batt_read_adj_soc
chown system radio /sys/class/power_supply/battery/batt_read_raw_soc
chown system radio /sys/class/power_supply/battery/batt_reset_soc
chown system radio /sys/class/power_supply/battery/batt_slate_mode
chown system radio /sys/class/power_supply/battery/batt_temp_adc
chown system radio /sys/class/power_supply/battery/batt_temp_adc_aver
chown system radio /sys/class/power_supply/battery/batt_temp_adc_cal
chown system radio /sys/class/power_supply/battery/batt_temp_aver
chown system radio /sys/class/power_supply/battery/batt_type
chown system radio /sys/class/power_supply/battery/batt_vf_adc
chown system radio /sys/class/power_supply/battery/batt_vfocv
chown system radio /sys/class/power_supply/battery/batt_vol_adc
chown system radio /sys/class/power_supply/battery/batt_vol_adc_aver
chown system radio /sys/class/power_supply/battery/batt_vol_adc_cal
chown system radio /sys/class/power_supply/battery/batt_vol_aver
chown system radio /sys/class/power_supply/battery/factory_mode
chown system radio /sys/class/power_supply/battery/siop_activated
chown system radio /sys/class/power_supply/battery/siop_level
chown system radio /sys/class/power_supply/battery/update
chown system radio /sys/class/power_supply/battery/wc_status
chown system radio /sys/class/power_supply/battery/wpc_pin_state
chown system radio /sys/class/power_supply/fuelgauge/fg_curr_ua
# CTIA event
chown sdcard_rw sdcard_rw /sys/class/power_supply/battery/call
chown sdcard_rw sdcard_rw /sys/class/power_supply/battery/video
chown sdcard_rw sdcard_rw /sys/class/power_supply/battery/music
chown sdcard_rw sdcard_rw /sys/class/power_supply/battery/browser
chown sdcard_rw sdcard_rw /sys/class/power_supply/battery/hotspot
chown sdcard_rw sdcard_rw /sys/class/power_supply/battery/camera
chown system radio /sys/class/power_supply/battery/talk_wcdma
chown system radio /sys/class/power_supply/battery/talk_gsm
chown system radio /sys/class/power_supply/battery/call
chown system radio /sys/class/power_supply/battery/data_call
chown gps radio /sys/class/power_supply/battery/gps
chown system radio /sys/class/power_supply/battery/wifi
chown system radio /sys/class/power_supply/battery/lte
# Thermistor node
chown radio system /sys/devices/platform/sec-thermistor/temp_adc
chown radio system /sys/devices/platform/sec-thermistor/temperature
# Permissions for touch
chown system radio /sys/class/sec/tsp/cmd
# Permissions for Touchkey
chown system radio /sys/class/sec/sec_touchkey/enable_disable
chown system radio /sys/class/sec/sec_touchkey/touchkey_brightness
chown system radio /sys/class/sec/sec_touchkey/touchkey_menu
chown system radio /sys/class/sec/sec_touchkey/touchkey_back
chown system radio /sys/class/sec/sec_touchkey/touch_update
chown system radio /sys/class/sec/sec_touchkey/touch_version
chown system radio /sys/class/sec/sec_touchkey/touchkey_firm_version_panel
chown system radio /sys/class/sec/sec_touchkey/touchkey_firm_version_phone
chown system radio /sys/class/sec/sec_touchkey/touchkey_firm_update_status
chown system radio /sys/class/sec/sec_touchkey/touchkey_firm_update
chown system radio /sys/class/sec/sec_touchkey/touch_sensitivity
chown system radio /sys/class/sec/sec_touchkey/touchkey_threshold
chown system system /sys/devices/virtual/sec/sec_touchkey/brightness
# Permissions for gpio_keys
chown radio system /sys/class/sec/sec_key/wakeup_keys
write /sys/class/sec/sec_key/wakeup_keys 116,172,544
# Accy
chown radio system /sys/devices/platform/bcmpmu_accy/jiglock
# Permissions for Camera
chown system radio /sys/class/camera/rear/rear_camfw
chown system radio /sys/class/camera/rear/rear_camtype
chown system radio /sys/class/camera/rear/rear_flash
chown system radio /sys/class/camera/rear/isp_core
chown system radio /sys/class/camera/front/front_camfw
chown system radio /sys/class/camera/front/front_camtype
chown system radio /sys/class/flash/flash/flash_power
chown radio system /sys/devices/platform/samsung-pd.5/s3c-fimc.2/range_mode
chmod 0660 /sys/devices/platform/samsung-pd.5/s3c-fimc.2/range_mode
chmod 220 /sys/class/camera/rear/rear_camfw
chmod 220 /sys/class/camera/rear/rear_camtype
# Switch Device
chown system system /sys/class/sec/switch/uart_sel
chown system system /sys/class/sec/switch/usb_sel
chown system system /sys/class/sec/switch/otg_test
chown system radio /sys/class/sec/switch/adc
# Permissions for SVC LED
chown system system /sys/class/sec/led/led_pattern
chown system system /sys/class/sec/led/led_blink
chown system system /sys/class/sec/led/led_br_lev
chown system system /sys/class/sec/led/led_lowpower
# Init Compcache taejin5.park
chmod 0664 /sys/class/lmk/lowmemorykiller/lmk_state
chown system system /sys/class/lmk/lowmemorykiller/lmk_state
chmod 0664 /sys/block/zram0/disksize
chown system system /sys/block/zram0/disksize
write /sys/block/zram0/disksize 67108864
chmod 0664 /sys/block/zram0/initstate
chown system system /sys/block/zram0/initstate
write /sys/block/zram0/initstate 1
# serial_no permission change
chmod 0770 /efs/FactoryApp/serial_no
chown system system /efs/FactoryApp/serial_no
# Disable swap page clustering -- recommended in https://source.android.com/devices/low-ram.html
write /proc/sys/vm/page-cluster 0
on charger
# Set cpu governor to powersave while in charging mode
write /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor powersave
write /sys/devices/system/cpu/cpu1/cpufreq/scaling_governor powersave
on fs
mount_all /fstab.hawaii_ss_kyleprods
swapon_all fstab.hawaii_ss_kyleprods
# Don't require sim
setprop keyguard.no_require_sim 1
# For NV Read/Write
chown radio system /dev/block/mmcblk0p1
chmod 0770 /dev/block/mmcblk0p1
chmod 6755 /system/xbin/su
# For ASE application
mkdir /data/brcm
mkdir /data/brcm/ase
mkdir /data/brcm/ase/extras
mkdir /data/brcm/ase/scripts
chmod 0775 /data/brcm
chmod 0775 /data/brcm/ase
chmod 0775 /data/brcm/ase/extras
chmod 0775 /data/brcm/ase/scripts
copy /system/etc/adb.sh /data/brcm/ase/scripts/adb.sh
copy /system/etc/rndis.sh /data/brcm/ase/scripts/rndis.sh
copy /system/etc/logcfg.sh /data/brcm/ase/scripts/logcfg.sh
copy /system/etc/modem.sh /data/brcm/ase/scripts/modem.sh
copy /system/etc/atmode.sh /data/brcm/ase/scripts/atmode.sh
copy /system/etc/atmode.sh /data/brcm/ase/scripts/usbconfig.sh
chmod 0775 /data/brcm/ase/scripts/adb.sh
chmod 0775 /data/brcm/ase/scripts/rndis.sh
chmod 0775 /data/brcm/ase/scripts/logcfg.sh
chmod 0775 /data/brcm/ase/scripts/modem.sh
chmod 0775 /data/brcm/ase/scripts/atmode.sh
chmod 0775 /data/brcm/ase/scripts/usbconfig.sh
# runSysCmd
mkdir /data/brcm/utils
chmod 0775 /data/brcm/utils
# Logging required to save file in /data/brcm for configuration
mkdir /data/brcm
chmod 0775 /data/brcm
# Permissions for System Server and daemons.
chown system system /sys/devices/platform/panel/backlight/panel/brightness
# For touch FW
chown system system /sys/class/sec/tsp/cmd
chmod 0660 /sys/class/sec/tsp/cmd
chown system system /sys/class/sec/tsp/cmd_status
chmod 0660 /sys/class/sec/tsp/cmd_status
chown system system /sys/class/sec/tsp/cmd_result
chmod 0660 /sys/class/sec/tsp/cmd_result
chown system system /sys/class/sec/sec_touchscreen/tsp_firm_version_phone
chmod 0660 /sys/class/sec/sec_touchscreen/tsp_firm_version_phone
chown system system /sys/class/sec/sec_touchscreen/tsp_firm_version_panel
chmod 0660 /sys/class/sec/sec_touchscreen/tsp_firm_version_panel
chown system system /sys/class/sec/sec_touchscreen/tsp_firm_update
chmod 0660 /sys/class/sec/sec_touchscreen/tsp_firm_update
chown system system /sys/class/sec/sec_touchscreen/tsp_firm_update_status
chmod 0660 /sys/class/sec/sec_touchscreen/tsp_firm_update_status
chown system system /sys/class/sec/sec_touchscreen/tsp_threshold
chmod 0660 /sys/class/sec/sec_touchscreen/tsp_threshold
chown system system /sys/class/sec/sec_touchscreen/touchkey_menu
chmod 0660 /sys/class/sec/sec_touchscreen/touchkey_menu
chown system system /sys/class/sec/sec_touchscreen/touchkey_home
chmod 0660 /sys/class/sec/sec_touchscreen/touchkey_home
chown system system /sys/class/sec/sec_touchscreen/touchkey_back
chmod 0660 /sys/class/sec/sec_touchscreen/touchkey_back
# cpu freq
chown media root /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
chmod 0664 /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
# make directory for storing sales code
mkdir /efs/imei 0775 radio system
on post-fs
restorecon_recursive /efs
chown radio system /efs
chmod 0771 /efs
# Create filesystem if necessary
service setup_fs /system/bin/setup_fs \
/dev/block/mmcblk0p15 \
/dev/block/mmcblk0p11
class core
user root
group root
oneshot
# bosch sensor deamon
service sensord /system/bin/sensord
class main
user system
group system
# RILD
service ril-daemon /system/bin/rild
class main
socket rild stream 660 root radio
socket rild1 stream 660 root radio
socket rild-debug stream 660 radio system
user root
group radio cache inet misc audio system sdcard_rw log sdcard_r
service wpa_supplicant /system/bin/wpa_supplicant \
-iwlan0 -Dnl80211 -c/data/misc/wifi/wpa_supplicant.conf \
-I/system/etc/wifi/wpa_supplicant_overlay.conf \
-e/data/misc/wifi/entropy.bin \
-O/data/misc/wifi/sockets -g@android:wpa_wlan0
# we will start as root and wpa_supplicant will switch to user wifi
# after setting up the capabilities required for WEXT
# user wifi
# group wifi inet keystore
class main
socket wpa_wlan0 dgram 660 wifi wifi
disabled
oneshot
service p2p_supplicant /system/bin/wpa_supplicant \
-iwlan0 -Dnl80211 -c/data/misc/wifi/wpa_supplicant.conf \
-I/system/etc/wifi/wpa_supplicant_overlay.conf -N \
-ip2p0 -Dnl80211 -c/data/misc/wifi/p2p_supplicant.conf \
-I/system/etc/wifi/p2p_supplicant_overlay.conf \
-e/data/misc/wifi/entropy.bin -puse_p2p_group_interface=1 \
-O/data/misc/wifi/sockets -g@android:wpa_wlan0
# We will start as root and wpa_supplicant will switch to user wifi
# after setting up the capabilities required for WEXT
# user wifi
# group wifi inet keystore
class main
socket wpa_wlan0 dgram 660 wifi wifi
disabled
oneshot
service dhcpcd_wlan0 /system/bin/dhcpcd -ABKL
class main
disabled
oneshot
service dhcpcd_p2p /system/bin/dhcpcd -aABKL
class main
disabled
oneshot
service iprenew_wlan0 /system/bin/dhcpcd -n
class main
disabled
oneshot
service iprenew_p2p /system/bin/dhcpcd -n
class main
disabled
oneshot
# Bluetooth PAN
service dhcpcd_bt-pan /system/bin/dhcpcd -ABKL
class main
disabled
oneshot
service iprenew_bt-pan /system/bin/dhcpcd -n
class main
disabled
oneshot
# For WiFi MFG(TestMode)
service mfgloader /system/bin/mfgloader
class main
disabled
oneshot
service wlandutservice /system/bin/wlandutservice
class main
user system
group wifi net_raw net_admin system inet
disabled
oneshot
service macloader /system/bin/macloader
class main
oneshot
on property:init.svc.macloader=stopped
chown system root /data/.cid.info
chmod 0664 /data/.cid.info
chown system root /data/.rev
chmod 0660 /data/.rev
# End of wifi
service gpsd /system/bin/glgps -c /system/etc/gps/glconfig.xml
setenv LD_PRELOAD /system/lib/libglgps-compat.so
class late_start
user gps
group system root inet radio wifi sdcard_rw
# Kexec enable
service kexec /system/kexec/kexec.sh
oneshot
# Run bkmgrd automatically on startup
service bkmgrd /system/bin/bkmgrd
class main
oneshot
user root
#group radio system log
group radio system log root
# Run usb_portd to automatically launch atx when USB configuration changes.
service usb_portd /system/bin/usb_portd
class main
user system
group input vpn net_admin net_raw radio system sdcard_rw log mount
# Indicate boot complete to PM to complete PM initialization
on property:dev.bootcomplete=1
write /sys/module/pwr_mgr/parameters/pm_late_init 1
write /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor interactive
chown system system /sys/devices/system/cpu/cpufreq/interactive/hispeed_freq
chown system system /sys/devices/system/cpu/cpufreq/interactive/go_hispeed_load
chown system system /sys/devices/system/cpu/cpufreq/interactive/above_hispeed_delay
chown system system /sys/devices/system/cpu/cpufreq/interactive/min_sample_time
chown system system /sys/devices/system/cpu/cpufreq/interactive/timer_rate
chown system system /sys/devices/system/cpu/cpufreq/interactive/boostpulse
chmod 660 /sys/devices/system/cpu/cpufreq/interactive/hispeed_freq
chmod 660 /sys/devices/system/cpu/cpufreq/interactive/go_hispeed_load
chmod 660 /sys/devices/system/cpu/cpufreq/interactive/above_hispeed_delay
chmod 660 /sys/devices/system/cpu/cpufreq/interactive/min_sample_time
chmod 660 /sys/devices/system/cpu/cpufreq/interactive/timer_rate
chmod 660 /sys/devices/system/cpu/cpufreq/interactive/boostpulse
write /sys/devices/system/cpu/cpufreq/interactive/hispeed_freq 666666
write /sys/devices/system/cpu/cpufreq/interactive/go_hispeed_load 70
write /sys/devices/system/cpu/cpufreq/interactive/above_hispeed_delay 6000
write /sys/devices/system/cpu/cpufreq/interactive/min_sample_time 15000
write /sys/devices/system/cpu/cpufreq/interactive/timer_rate 2000
# adb
service startadb /system/etc/startadb.sh
oneshot
service battery_charger /charger
class charger
critical
on property:ro.dumpstate.dmesg=1
write /proc/sys/kernel/dmesg_restrict 0