-
Notifications
You must be signed in to change notification settings - Fork 91
/
init.capri_ss_baffin.rc
executable file
·618 lines (520 loc) · 21.2 KB
/
init.capri_ss_baffin.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
import init.bcm281x5.usb.rc
import init.log.rc
on early-init
loglevel 9
write /proc/bcm2835_mdec 0
mkdir /efs 0771 radio system
on init
# Vibetonz
export VIBE_PIPE_PATH /dev/pipes
mkdir /dev/pipes 0771 shell shell
# Videocore
chmod 0660 /proc/vc-dnfo
write /proc/vc-dnfo "width 480"
write /proc/vc-dnfo "height 800"
write /proc/vc-dnfo "scale 0"
write /proc/vc-dnfo "swidth 480"
write /proc/vc-dnfo "sheight 800"
write /proc/vc-dnfo "bpp 32"
write /proc/vc-dnfo "layer 1"
write /proc/vc-dnfo "xdpi 184.727"
write /proc/vc-dnfo "ydpi 184.727"
chmod 0660 /proc/vc-omx
write /proc/vc-omx "color 2"
chmod 0660 /proc/vc-hnfo
write /proc/vc-hnfo "resolution 0"
setprop brcm.graphics.async_errors true
mkdir /tmp
mount tmpfs tmpfs /tmp
chmod 1775 /tmp
# See storage config details at http://source.android.com/tech/storage/
mkdir /mnt/shell/emulated 0700 shell shell
mkdir /storage/emulated 0555 root root
export EXTERNAL_STORAGE /storage/emulated/legacy
export EMULATED_STORAGE_SOURCE /mnt/shell/emulated
export EMULATED_STORAGE_TARGET /storage/emulated
# Support legacy paths
symlink /storage/emulated/legacy /sdcard
symlink /storage/emulated/legacy /mnt/sdcard
symlink /storage/emulated/legacy /storage/sdcard0
symlink /mnt/shell/emulated/0 /storage/emulated/legacy
export SECONDARY_STORAGE /storage/sdcard1
mkdir /mnt/media_rw/sdcard1 0700 media_rw media_rw
mkdir /storage/sdcard1 0700 root root
symlink /efs /factory
symlink /dev/block/mmcblk0p11 /dev/block/param
# We will create our own ril-daemon service with different perm and sockets
stop ril-daemon
on post-fs-data
# we will remap this as /storage/sdcard with the sdcard fuse tool
mkdir /data/media 0770 media_rw media_rw
chown media_rw media_rw /data/media
# Set indication (checked by vold) that we have finished this action
setprop vold.post_fs_data_done 1
#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
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
# for TRP/TIS
write /data/.psm.info 1
chown system root /data/.psm.info
chmod 0660 /data/.psm.info
# 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
mkdir /data/brcm/utils
chmod 0775 /data/brcm/utils
chmod 0660 /proc/vc
chmod 0660 /proc/vc/display
chmod 0660 /proc/vc/display/vchiq_control
write /proc/vc/display/vchiq_control "earlysuspctrl "
write /proc/vc/display/vchiq_control "autosuspend "
chown system system /sys/class/backlight/panel/brightness
chmod 0660 /sys/class/backlight/panel/brightness
chown system system /sys/class/backlight/touchkey-led/brightness
chmod 0660 /sys/class/backlight/touchkey-led/brightness
on boot
# SISO-ANDR_PERF :: START Changing scheduler to noop during boot
write /sys/block/mmcblk0/queue/scheduler noop
# SISO-ANDR_PERF :: END
# 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/ttyS2
chmod 0600 /dev/ttyS2
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
# <Sensors>
# Input Events
chown system radio /sys/class/input/input2/enable
chown system radio /sys/class/input/input2/poll_delay
chown system radio /sys/class/input/input3/enable
chown system radio /sys/class/input/input3/poll_delay
chown system radio /sys/class/input/input4/enable
chown system radio /sys/class/input/input4/poll_delay
chown system radio /sys/class/input/input5/enable
chown system radio /sys/class/input/input5/poll_delay
chown system radio /sys/class/input/input6/enable
chown system radio /sys/class/input/input6/poll_delay
chown system radio /sys/class/input/input7/enable
chown system radio /sys/class/input/input7/poll_delay
chown system radio /sys/class/input/input8/enable
chown system radio /sys/class/input/input8/poll_delay
chown system radio /sys/class/input/input9/enable
chown system radio /sys/class/input/input9/poll_delay
# Accelerometer_sensor
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
# 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_cal2
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_offset_pass
chown system radio /sys/class/sensors/proximity_sensor/prox_thresh
# Light_sensor
chown system radio /sys/class/sensors/light_sensor/lux
chown system radio /sys/class/sensors/light_sensor/raw_data
chown system radio /sys/class/sensors/light_sensor/vendor
chown system radio /sys/class/sensors/light_sensor/name
# Gyro_sensor
chown system radio /sys/class/sensors/gyro_sensor/power_on
chown system radio /sys/class/sensors/gyro_sensor/power_off
chown system radio /sys/class/sensors/gyro_sensor/temperature
chown system radio /sys/class/sensors/gyro_sensor/selftest
chown system radio /sys/class/sensors/gyro_sensor/selftest_dps
chown system radio /sys/class/sensors/gyro_sensor/vendor
chown system radio /sys/class/sensors/gyro_sensor/name
# accelerometer
chown system input /sys/class/input/input8/acc_enable
chown system input /sys/class/input/input8/acc_delay
chown system input /sys/class/input/input8/gyro_enable
chown system input /sys/class/input/input8/gyro_delay
chown system input /sys/class/input/input8/self_test
chown system input /sys/class/input/input8/accel_cal_open
# geomagnetic
chown system input /sys/class/input/input9/enable
chown system input /sys/class/input/input9/filter_enable
chown system input /sys/class/input/input9/filter_len
chown system input /sys/class/input/input9/filter_threshold
chown system input /sys/class/input/input9/filter_noise
chown system input /sys/class/input/input9/delay
chown system input /sys/class/input/input9/wake
chown system input /sys/class/input/input9/data
chown system input /sys/class/input/input9/status
chown system input /sys/class/input/input9/position
chmod 0660 /sys/class/input/input9/enable
chmod 0660 /sys/class/input/input9/filter_enable
chmod 0660 /sys/class/input/input9/filter_len
chmod 0660 /sys/class/input/input9/filter_threshold
chmod 0660 /sys/class/input/input9/filter_noise
chmod 0660 /sys/class/input/input9/delay
chmod 0660 /sys/class/input/input9/wake
chmod 0660 /sys/class/input/input9/data
chmod 0660 /sys/class/input/input9/status
chmod 0660 /sys/class/input/input9/position
# geomagnetic_raw
chown system input /sys/class/input/input10/threshold
chown system input /sys/class/input/input10/distortion
chown system input /sys/class/input/input10/shape
chown compass input /sys/class/input/input10/offsets
chown compass input /sys/class/input/input10/static_matrix
chown compass input /sys/class/input/input10/dynamic_matrix
chown compass input /sys/class/input/input10/ellipsoid_mode
write /sys/class/input/input10/distortion "100 15 13"
chmod 0660 /sys/class/input/input10/threshold
chmod 0660 /sys/class/input/input10/distortion
chmod 0660 /sys/class/input/input10/shape
chmod 0660 /sys/class/input/input10/offsets
chmod 0660 /sys/class/input/input10/static_matrix
chmod 0660 /sys/class/input/input10/dynamic_matrix
chmod 0660 /sys/class/input/input10/ellipsoid_mode
# orientation
chown system input /sys/class/input/input11/enable
chown system input /sys/class/input/input11/delay
chown system input /sys/class/input/input11/wake
chown system input /sys/class/input/input11/status
chown system input /sys/class/input/input11/data
chmod 0660 /sys/class/input/input11/enable
chmod 0660 /sys/class/input/input11/delay
chmod 0660 /sys/class/input/input11/wake
chmod 0660 /sys/class/input/input11/status
chmod 0660 /sys/class/input/input11/data
# Vibetonz
chmod 0660 /dev/tspdrv
chown root shell /dev/tspdrv
# boost ARM clock to 1200MHz
# write /sys/devices/platform/bcmpmu_core/rgltr "1300,1,1,csr_uc"
# write /sys/kernel/debug/clock/proc_ccu/arm_clk/rate 1200000000
# write /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor ondemand
mount debugfs /sys/kernel/debug /sys/kernel/debug
# 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/ttyS0
chmod 0666 /dev/ttyS0
chown system system /proc/bcm_fuse_net_config
chown system system /dev/block/mmcblk0
chmod 0660 /dev/block/mmcblk0
# 1280x720 TV for now
setprop brcm.hwc.external-res 1280x720
# security driver
chmod 0660 /dev/bcm_security
chown radio root /dev/bcm_security
mkdir /data/sec 0770
chown radio root /data/sec
# Video Telephony
chmod 0666 /dev/bcm_vsp
# 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
# boost ARM clock to 1100MHz
# echo 1300,1,1,csr_uc > /sys/devices/platform/bcmpmu_core/rgltr
# write /sys/devices/platform/bcmpmu_core/rgltr "1300,1,1,csr_uc"
# write /sys/devices/platform/reg-virt-consumer.1/min_microvolts 1320000
# write /sys/kernel/debug/clock/proc_ccu/arm_clk/rate 1100000000
# create data/gps for GPS demon
mkdir /data/gps 0770 gps system
chown gps system /data/gps
chmod 0770 /data/gps
#for GPS files
write /sys/class/gpio/export 99
chown gps system /sys/class/gpio/gpio99/value
chown gps system /sys/class/gpio/gpio99/direction
write /sys/class/gpio/gpio99/direction out
write /sys/class/gpio/gpio99/value 0
chmod 0660 /dev/bcm_gps
chown radio radio /dev/bcm_gps
chown gps system /dev/ttyS3
chmod 0770 /dev/ttyS3
class_start default
# allow user space (atx) access to kernel pm debug
chown system system /sys/module/capri_pm_dbg/parameters/debug
chown system system /dev/i2c-6
chmod 0660 /dev/i2c-6
chown root system /dev/proximity
chmod 0660 /dev/proximity
chown system system /sys/class/input/input2/enable
chown system system /sys/class/input/input2/poll_delay
chmod 0660 /sys/class/input/input2/enable
chmod 0660 /sys/class/input/input2/poll_delay
chown system system /sys/class/input/input3/enable
chown system system /sys/class/input/input3/poll_delay
chmod 0660 /sys/class/input/input3/enable
chmod 0660 /sys/class/input/input3/poll_delay
# 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
# Permissions for touch
chown system radio /sys/class/sec/tsp/cmd
# Permissions for Touchkey
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/touchkey_threshold
# 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
# Switch Device
chown system radio /sys/class/sec/switch/adc
# Voice Solution
copy /system/etc/DiamondVoice_NB.txt /data/DiamondVoice_NB.txt
chmod 0777 /data/DiamondVoice_NB.txt
copy /system/etc/DiamondVoice_WB.txt /data/DiamondVoice_WB.txt
chmod 0777 /data/DiamondVoice_WB.txt
copy /system/etc/DiamondVoice_Filter_NB.txt /data/DiamondVoice_Filter_NB.txt
chmod 0777 /data/DiamondVoice_Filter_NB.txt
copy /system/etc/DiamondVoice_Filter_WB.txt /data/DiamondVoice_Filter_WB.txt
chmod 0777 /data/DiamondVoice_Filter_WB.txt
copy /system/etc/DiamondVoice_SF_Filter_NB.txt /data/DiamondVoice_SF_Filter_NB.txt
chmod 0777 /data/DiamondVoice_SF_Filter_NB.txt
copy /system/etc/DiamondVoice_SF_Filter_WB.txt /data/DiamondVoice_SF_Filter_WB.txt
chmod 0777 /data/DiamondVoice_SF_Filter_WB.txt
insmod /system/lib/modules/VoiceSolution.ko
# permission for HDMI audio path
chown media audio /sys/class/hdmi_audio/hdmi_audio/hdmi_audio_set_ext
# HDCP 2.x
mkdir /data/system/hdcp2 0775 system system
# h2k permission
chown radio system /efs/redata.bin
chmod 0644 /efs/h2k.dat
mkdir /data/misc/radio/hatp 0775 radio system
on charger
# set cpu governor to powersave while in charging mode
write /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor powersave
# EHCI runtime enable for LPA
write /sys/devices/platform/s5p-ehci/power/control auto
chmod 0660 /proc/vc
chmod 0660 /proc/vc/display
chmod 0660 /proc/vc/display/vchiq_control
write /proc/vc/display/vchiq_control "earlysuspctrl "
write /proc/vc/display/vchiq_control "autosuspend "
on fs
mount_all /fstab.capri_ss_baffin
setprop ro.crypto.fuse_sdcard true
# For NV Read/Write
chown radio system /dev/block/mmcblk0p1
chmod 0770 /dev/block/mmcblk0p1
# Permissions for DVFS
chown radio system /sys/power/cpufreq_table
chown radio system /sys/power/cpufreq_max_limit
chown radio system /sys/power/cpufreq_min_limit
chmod 0660 /sys/power/cpufreq_table
chmod 0660 /sys/power/cpufreq_max_limit
chmod 0660 /sys/power/cpufreq_min_limit
chown system system /sys/class/backlight/panel/auto_brightness
chmod 0644 /sys/class/backlight/panel/auto_brightness
## Permissions for mDNIe
chown system media_rw /sys/class/mdnie/mdnie/mode
chown system media_rw /sys/class/mdnie/mdnie/outdoor
chown system media_rw /sys/class/mdnie/mdnie/scenario
chown system system /sys/class/mdnie/mdnie/negative
chown system system /sys/class/mdnie/mdnie/cabc
chown system system /sys/class/mdnie/mdnie/rgb
# Switch Device
chown system radio /sys/class/sec/switch/adc
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/mmcblk0p17 \
/dev/block/mmcblk0p11
class core
user root
group root
oneshot
# geomagneticd
service geomagneticd /system/bin/geomagneticd
class main
user compass
group system input
service capri-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 charger /sbin/healthd -c
class charger
critical
seclabel u:r:healthd:s0
# create virtual SD card at /storage/sdcard, based on the /data/media directory
# daemon will drop to user/group system/media_rw after initializing
# underlying files in /data/media will be created with user and group media_rw (1023)
service sdcard /system/bin/sdcard -u 1023 -g 1023 -l /data/media /mnt/shell/emulated
class late_start
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
# TODO: btld is only used for FM
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
class late_start
user gps
group system sdcard_rw inet root radio wifi
# tvserver
service tvserver /system/bin/tvserver
class main
user system
group system root audio graphics
#
# to disable the tv-server from running, add the line below. in
# order to achieve lowest power usage associated with the hdmi
# detection regulator, the tv-server needs to be explicitely disabled
# as there is no other run time decision made otherwise by Android.
#
# disabled
# Run bkmgrd automatically on startup
service bkmgrd /system/bin/bkmgrd
class main
oneshot
user root
group radio system log
# Add VCLMK (Videocore Low Memory Killer) service
service vclmk /system/bin/vclmk -s
class main
user system
group system root audio graphics
# Indicate boot complete to PM to complete PM initialization
on property:dev.bootcomplete=1
write /sys/module/capri_pwr_mgr/parameters/pm_late_init 1
write /sys/block/mmcblk0/queue/scheduler cfq
# Vibetonz
service immvibed /system/bin/immvibed
class core
user shell
group shell
oneshot
# fusewrapped external sdcard daemon running as media_rw (1023)
service fuse_sdcard1 /system/bin/sdcard -u 1023 -g 1023 -d /mnt/media_rw/sdcard1 /storage/sdcard1
class late_start
disabled
# CyanogenMod Performance Profiles (note: changing one governor will change for all CPUs)
# Powersave
on property:sys.perf.profile=0
write /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor "powersave"
# Balanced
on property:sys.perf.profile=1
write /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor "ondemand"
# Performance
on property:sys.perf.profile=2
write /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor "performance"