-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathinit.samsungjanice.rc
617 lines (503 loc) · 20.5 KB
/
init.samsungjanice.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
# NOTE: This file contains ST-Ericsson related additions/modifications/deletions to init.rc
# Commented out lines are kept for reference.
import /init.${ro.hardware}.usb.rc
on early-init
# Set init and its forked children's oom_adj.
write /proc/1/oom_score_adj -16
on init
# setup the global environment
export PATH /system/sbin:/system/bin:/system/xbin:/sbin:/bin:/vendor/bin
export LD_LIBRARY_PATH /system/lib:/lib:/usr/lib:/system/lib/ste_omxcomponents/:/vendor/lib
export OMX_STE_ENS_COMPONENTS_DIR /system/lib/ste_omxcomponents/
export OMX_BELLAGIO_LOADER_REGISTRY /system/omxloaders
mkdir /system 0775 system system
mkdir /modemfs 0771 system system
mkdir /efs 0775 radio system
mkdir /preload 0771 system system
# Shared memory file system
mkdir /dev/shm 0700 root system
mount tmpfs tmpfs /dev/shm mode=0755,gid=1000
write /proc/sys/kernel/sched_rt_period_us 10000000
write /proc/sys/kernel/sched_rt_runtime_us 9500000
# create /tmp directory needed by psccd and CSPSA
mkdir /tmp
# J4FS(lfs) mount points.
mkdir /mnt/.lfs 0755 root root
# mount debugfs in order for Audio ADM component to retrieve debug information
mkdir /debug
mount debugfs none /debug
on fs
mount_all /fstab.samsungjanice
setprop ro.crypto.fuse_sdcard false
# for LogMeIn
mount ext4 /dev/block/mmcblk0p3 /system rw wait noatime errors=panic remount
chown graphics /system/bin/RescueStarter
chmod 0755 /system/bin/RescueStarter
chown graphics /system/bin/RescueServer
chmod 0755 /system/bin/RescueServer
mount ext4 /dev/block/mmcblk0p3 /system ro wait noatime errors=panic remount
# Start CSPSA before synchronously running the factory reset utility that
# checks the factory reset triggers in sysfs and CSPSA and then formats
# the block device belonging to /data.
start cspsa
exec /system/bin/logwrapper /system/bin/factoryreset -f /sys/socinfo/reset_reason -r factory-reset -c CSPSA0 -p 0xfffffffc:31 /dev/block/mmcblk0p5
on post-fs
# once everything is setup, no need to modify /
chown system system /system
chmod 0775 /system
chown radio radio /modemfs
chmod 0771 /modemfs
chown radio radio /modemfs/CONF
chmod 0755 /modemfs/CONF
chown radio radio /modemfs/CONF/MCE
chmod 0755 /modemfs/CONF/MCE
chown radio radio /modemfs/CONF/MCE/MCE.CFG
chmod 0644 /modemfs/CONF/MCE/MCE.CFG
chown radio radio /modemfs/PERM
chmod 0755 /modemfs/PERM
chown radio radio /modemfs/PERM/PROT
chmod 0755 /modemfs/PERM/PROT
chown radio radio /modemfs/PERM/PROT/LABEP.CFG
chmod 0644 /modemfs/PERM/PROT/LABEP.CFG
chown radio radio /modemfs/PERM/PROT/PPVALUES.DAT
chmod 0644 /modemfs/PERM/PROT/PPVALUES.DAT
chown radio system /efs
chmod 0775 /efs
chown radio system /efs/FactoryApp
chmod 0775 /efs/FactoryApp
chown radio system /efs/imei
chmod 0770 /efs/imei
chown radio system /efs/bluetooth
chown system system /efs/wifi
# Set permissions for wake locks before services are launched that use them
chown system system /sys/power/state
chown system system /sys/power/wakeup_count
chown radio system /sys/power/wake_lock
chown radio system /sys/power/wake_unlock
chmod 0660 /sys/power/state
chmod 0660 /sys/power/wake_lock
chmod 0660 /sys/power/wake_unlock
# Samsung Device permissions
chown root system /dev/mmc328x
chown root system /dev/bma222
chown root system /dev/ecompass_ctrl
chmod 0666 /dev/mmc328x
chmod 0666 /dev/bma222
chmod 0666 /dev/ecompass_ctrl
# change the permission sensor chips
chown root system /dev/alps_io
chmod 0660 /dev/alps_io
chown root root /dev/rn5t592
chmod 777 /dev/rn5t592
# Change permission for touchscreen and touch key
chown system radio /sys/class/sec/tsp/cmd
chown system radio /sys/class/sec/tsp/cmd_status
chown system radio /sys/class/sec/tsp/cmd_result
chown system radio /sys/class/sec/sec_touchkey/touchkey_back
chown system radio /sys/class/sec/sec_touchkey/touchkey_menu
chown radio system /sys/class/sec/sec_touchkey/touch_sensitivity
chown system radio /sys/class/sec/sec_touchscreen/tsp_firm_version_panel
chown system radio /sys/class/sec/sec_touchscreen/tsp_firm_version_phone
# DVFS LOCK
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 radio system /debug/prcmu/ape_opp
chown radio system /debug/prcmu/ddr_opp
chmod 0660 /debug/prcmu/ape_opp
chmod 0660 /debug/prcmu/ddr_opp
# Samsung: ensure read/write access to sensor control device files
chmod 0666 /dev/gp2a_prox
chmod 0666 /dev/gp2a_light
chmod 0666 /dev/mpu60x0_gyro
chmod 0666 /dev/mpu60x0_accel
chmod 0666 /dev/mmc3280
# change the permission sensor chips
chown root system /dev/alps_io
chmod 0660 /dev/alps_io
chown system system /system/etc/sensors.dat
chown system system /system/etc/calib.dat
chown system system /system/etc/param.dat
chmod 0664 /system/etc/sensors.dat
chmod 0664 /system/etc/calib.dat
chmod 0664 /system/etc/param.dat
# Change permission for magnetic sensor rev02
chown system input /sys/class/input/input8/delay
chown system input /sys/class/input/input8/enable
chown system input /sys/class/input/input8/filter_enable
chown system input /sys/class/input/input8/filter_len
chown system input /sys/class/input/input8/filter_threshold
chown system input /sys/class/input/input8/filter_noise
chown system input /sys/class/input/input8/data
chown system input /sys/class/input/input8/status
chown system input /sys/class/input/input8/wake
chown system input /sys/class/input/input8/position
chown system input /sys/class/input/input9/threshold
chown system input /sys/class/input/input9/distortion
chown system input /sys/class/input/input9/shape
chown compass input /sys/class/input/input9/offsets
# orientation
chown system input /sys/class/input/input6/enable
chown system input /sys/class/input/input6/delay
chown system input /sys/class/input/input6/wake
chown system input /sys/class/input/input6/data
chown system input /sys/class/input/input6/status
write /sys/class/input9/filter_enable 0
# Change permission for accelerometer
chown system input /sys/class/sensors/accelerometer_sensor/raw_data
chown system system /sys/class/sensors/accelerometer_sensor/calibration
chown system system /sys/class/sensors/magnetic_sensor/selftest
chown system system /sys/class/sensors/magnetic_sensor/status
chown system system /sys/class/sensors/magnetic_sensor/dac
chown system system /sys/class/sensors/magnetic_sensor/adc
chown system system /sys/class/sensors/proximity_sensor/state
chown system system /sys/class/sensors/proximity_sensor/proximity_avg
# Change permission for gyro_sensor
chown system system /sys/class/sensors/gyro_sensor/temperature
# Install Kernel Module
insmod /lib/modules/j4fs.ko
# We need to decide j4fs's partition number(mmcblk0pX)
# loke4
#mount j4fs /dev/block/mmcblk0p19 /mnt/.lfs wait
# loke3
mount j4fs /dev/block/mmcblk0p1 /mnt/.lfs wait
insmod /lib/modules/param.ko
write /sys/class/power_supply/battery/batt_reinit_capacity 1
insmod /lib/modules/bthid.ko
# loading exFAT-fs drivers
insmod /lib/modules/exfat_core.ko
insmod /lib/modules/exfat_fs.ko
on post-fs-data
# create basic filesystem structure
mkdir /data/misc/psdata
mkdir /data/misc/bluetoothd 0770 bluetooth bluetooth
mkdir /data/misc/bluetooth 0770 system system
# give system access to ril_config
copy -u /system/etc/ril_config /data/misc/ril_config
chmod 0660 /data/misc/ril_config
chown root radio /data/misc/ril_config
# Create directory for STE OMX debug logs
mkdir /data/ste-debug 0775 system system
# give system access to sterc_script when enabling usb nap
copy -u /system/etc/psdata/sterc_conf /data/misc/psdata/sterc_conf
copy -u /system/etc/psdata/sterc_script_connect /data/misc/psdata/sterc_script_connect
copy -u /system/etc/psdata/sterc_script_disconnect /data/misc/psdata/sterc_script_disconnect
copy -u /system/etc/psdata/sterc_conf_alt /data/misc/psdata/sterc_conf_alt
copy -u /system/etc/psdata/sterc_script_connect_alt /data/misc/psdata/sterc_script_connect_alt
copy -u /system/etc/psdata/sterc_script_connect_dun /data/misc/psdata/sterc_script_connect_dun
copy -u /system/etc/psdata/sterc_script_disconnect_dun /data/misc/psdata/sterc_script_disconnect_dun
chmod 0660 /data/misc/psdata/sterc_conf
chmod 0500 /data/misc/psdata/sterc_script_connect
chmod 0500 /data/misc/psdata/sterc_script_disconnect
chmod 0660 /data/misc/psdata/sterc_conf_alt
chmod 0500 /data/misc/psdata/sterc_script_connect_alt
chmod 0500 /data/misc/psdata/sterc_script_connect_dun
chmod 0500 /data/misc/psdata/sterc_script_disconnect_dun
chown root radio /data/misc/psdata/sterc_conf
chown root radio /data/misc/psdata/sterc_conf_alt
# give system access to stepscc_conf
copy -u /system/etc/psdata/stepscc_conf /data/misc/psdata/stepscc_conf
chmod 0660 /data/misc/psdata/stepscc_conf
chown root radio /data/misc/psdata/stepscc_conf
# create var/run, var/lib for avahi
mkdir /var
mkdir /var/run
mkdir /var/lib
# Change permissions for modem_log_relay config file
chmod 666 /modemfs/trace_auto.conf
# Set permission rights for ping
chmod 4755 /system/bin/ping
# If there is no fs-post-data action in the init.<device>.rc file, you
# must uncomment this line, otherwise encrypted filesystems
# won't work.
# Set indication (checked by vold) that we have finished this action
setprop vold.post_fs_data_done 1
on early-boot
# Enable line below if you want console in charging mode
# start console
# Launch core services in case charging mode is entered
start watchdog-kicker
# Prepare modem
class_start modem-u8500
class_start modem-core
# Enable autonomous power management in CM
write /sys/module/cm/parameters/enable_auto_pm 1
on boot
# Set timeout value for rmnet stats.
write /sys/devices/virtual/net/rmnet0/timeout_suspend 5000000
chown system system /sys/class/backlight/pri_lcd_bl/brightness
chown system system /sys/class/backlight/pwm-backlight/brightness
chown system radio /sys/class/backlight/pwm-backlight/device/lcd_power
chown system system /sys/class/backlight/pwm-backlight/device/panel_id
chown system system /sys/class/backlight/pwm-backlight/device/acl_set
chown system system /sys/class/backlight/pwm-backlight/device/gamma_mode
chown system system /sys/class/backlight/pwm-backlight/device/gamma_table
chown system system /sys/class/leds/button-backlight/brightness
chown radio radio /sys/class/usb_switch/FSA_SWITCH/jig_smd
chown radio system /sys/class/usb_switch/FSA_SWITCH/smd_wakelock
chown system radio /sys/class/sec/switch/usb_state
chown system system /sys/devices/platform/nmk-i2c.2/i2c-2/2-005c/enable
chown system system /sys/devices/platform/nmk-i2c.2/i2c-2/2-0029/power_state
chown system system /sys/devices/platform/nmk-i2c.2/i2c-2/2-0068/range
chown system system /sys/devices/platform/nmk-i2c.2/i2c-2/2-0068/datarate
chown system system /sys/devices/platform/nmk-i2c.2/i2c-2/2-0068/powermode
chown system system /sys/devices/platform/nmk-i2c.2/i2c-2/2-001e/mode
chown system system /sys/devices/platform/nmk-i2c.2/i2c-2/2-001e/range
chown system system /sys/devices/platform/nmk-i2c.2/i2c-2/2-001e/rate
chown system system /sys/devices/platform/nmk-i2c.2/i2c-2/2-0018/range
chown system system /sys/devices/platform/nmk-i2c.2/i2c-2/2-0018/mode
chown system system /sys/devices/platform/nmk-i2c.2/i2c-2/2-0018/rate
chown system system /sys/devices/platform/nmk-i2c.2/i2c-2/2-0018/sleep_wake
chown system system /sys/devices/platform/nmk-i2c.2/i2c-2/2-0019/mode
chown system system /sys/devices/platform/nmk-i2c.2/i2c-2/2-0019/range
chown system system /sys/devices/platform/sim-detect.0/voltage
chown audio audio /sys/devices/system/cpu/usecase/voice-call
chown audio audio /sys/devices/system/cpu/usecase/low-power-audio
chown system radio /proc/dump_enable
# Permission for gpio_keys
chown radio system /sys/devices/platform/gpio-keys.0/wakeup_keys
write /sys/devices/platform/gpio-keys.0/wakeup_keys 172
# Peremissions for bluetooth
# UART device
chown bluetooth bluetooth /dev/ttyAMA0
chmod 0660 /dev/ttyAMA0
# power up/down interface
chmod 0660 /sys/class/rfkill/rfkill0/state
chown bluetooth bluetooth /sys/class/rfkill/rfkill0/state
chown bluetooth bluetooth /sts/class/rfkill/rfkill0/type
# bluetooth MAC address programming
setprop ro.bt.bdaddr_path "/efs/bluetooth/bt_addr"
chown bluetooth bluetooth ro.bt.bdaddr_path
chown bluetooth bluetooth /system/etc/bt_addr
# Permissions for LCD
chown system system /sys/class/backlight/panel/brightness
chown system system /sys/class/backlight/panel/auto_brightness
chown system radio /sys/class/lcd/panel/lcd_power
chown system radio /sys/class/lcd/panel/lcd_type
chown system media_rw /sys/class/lcd/panel/power_reduce
chown system system /sys/class/sec/sec_touchkey/brightness
# MTP device permission
chmod 0660 /dev/usb_mtp_gadget
chown system system /dev/usb_mtp_gadget
# camera factory
chown system system /sys/class/sec/sec_cam/camtype
chown system system /sys/class/sec/flash/enable
chown system system /sys/class/camera/rear/rear_flash
chown system system /sys/class/camera/front/front_camtype
chown system system /sys/class/camera/rear/rear_camtype
chown system system /sys/class/camera/flash/rear_flash
# camera debug
setprop persist.debug.extcamera.level 777
setprop persist.debug.mmiocamera.level 777
setprop debug.libcamera.trace 666
# Battery
chown system system /sys/class/power_supply/battery/batt_vol_adc_cal
chown system radio /sys/class/power_supply/battery/fg_reset_soc
# Modem
class_start modem
class_start default
service console /system/bin/sh
class core
console
disabled
# user shell
# group log
service netd /system/bin/netd
class main
socket netd stream 0660 root system dbus_access
socket dnsproxyd stream 0660 root inet
socket mdns stream 0660 root system
service media /system/bin/logwrapper /system/bin/mediaserver
class main
user media
group system audio camera inet net_bt net_bt_admin net_bw_acct drmrpc sdcard_rw sdcard_r
ioprio rt 4
service powersnd /system/bin/samsungpowersoundplay
class main
user media
group system
oneshot
service dbus /system/bin/logwrapper /system/bin/dbus-daemon --system --nofork
class main
socket dbus stream 660 bluetooth bluetooth
socket dbus_ste stream 660 bluetooth dbus_access
user bluetooth
group bluetooth net_bt_admin dbus_access
service bluetoothd /system/bin/bluetoothd -n
class main
socket bluetooth stream 660 bluetooth bluetooth
socket dbus_bluetooth stream 660 bluetooth bluetooth
group bluetooth net_bt_admin misc
disabled
# for bluetooth
service hciattach /system/bin/logwrapper /system/bin/brcm_patchram_plus --enable_hci --enable_lpm --no2bytes --tosleep 5000 \
--baudrate 3000000 -use_baudrate_for_download --patchram /system/bin/bcm4330.hcd /dev/ttyAMA0 -d
class main
user bluetooth
group bluetooth net_bt_admin
disabled
oneshot
# for bluetooth rf test
service bt_dut_cmd /system/bin/bcm_dut
group bluetooth net_bt_admin
disabled
oneshot
service flash_recovery /system/bin/logwrapper /system/etc/install-recovery.sh
class main
oneshot
# Crash Safe Parameter Storage Area, serving production parameter requests from clients.
# Configuration is read from file "/etc/cspsa.conf" and each found area spawns a CSPSA server
# process.
service cspsa /system/bin/logwrapper /system/bin/cspsa-server
class parameter_storage
user root
oneshot
# init shrm net device required for Phonet communication with Modem
#service shrm-netdev /system/bin/ifconfig svnet0 up
# class modem-u8500
# oneshot
# init Phonet net device required for Phonet communication with Modem
service phonet-netdev /system/bin/ifconfig upnlink0 up
class main
oneshot
# Copy RF trim data from CSPSA, and start the Modem Storage Agent (MSA) service
service modem /system/bin/sh /system/etc/ste_modem.sh
class modem-u8500
user root
# user radio
# group radio
# Modem-supervisor
#service modem-supervisor /system/bin/modem-supervisor -r -f /dev/dbx500_mloader_fw -i /sys/devices/platform/ab8505-i2c.0/chip_id,/sys/devices/platform/ab8500-i2c.0/chip_id -c monitor
service modem-supervisor /system/bin/modem-supervisor -f /dev/dbx500_mloader_fw -i /sys/devices/platform/ab8505-i2c.0/chip_id,/sys/devices/platform/ab8500-i2c.0/chip_id -c monitor
class modem-u8500
user root
# Creating Modem Security daemon
service copsd /system/bin/copsdaemon
class modem-core
user root
# Modem_log_relay
service modem_log_relay /system/bin/modem_log_relay --ctrl_port=2001 --data_port=2002 --inv_port=2003 --report_port=2005
class modem
user root
service admsrv /system/bin/logwrapper /system/bin/admsrv
class main
user audio
group system audio inet net_bt net_bt_admin net_raw shell log
ioprio rt 4
capability NET_ADMIN NET_RAW SYS_NICE
service stedump /system/bin/logwrapper /system/bin/stedump
class main
user root
#service hdmid /system/bin/hdmid
# class main
# socket hdmid stream 0660 root system graphics
# oneshot
service geomagneticd /system/bin/geomagneticd6x
user compass
group system input
service orientationd /system/bin/orientationd6x
user compass
group system input group system input
#service thermald /system/bin/thermald
# class main
# user root
# group root dbus_access
on property:init.svc.wpa_supplicant=stopped
stop dhcpcd
on property:init.svc.dhcpcd=stopped
stop dhcpcd
# C&N service daemon
#service cn_server /system/bin/cn_server
# class modem-core
# user root
# group radio misc
# PS connection control
#service init_stepscc /system/bin/sh /data/misc/psdata/stepscc_init.sh
# class main
# oneshot
#service psccd /system/bin/psccd -f -c /data/misc/psdata/stepscc_conf
# class modem
# user root
# group radio inet
# PS routing control
#service init_sterc /system/bin/sh /data/misc/psdata/sterc_init.sh
# class main
# oneshot
#service stercd /system/bin/stercd -d 9 -r /data/misc/psdata/sterc_script_connect -s /data/misc/psdata/sterc_script_disconnect -c /data/misc/psdata/sterc_conf
# class modem
# user root
# group radio
# oneshot
# SIM daemon
#service simd /system/bin/simd
# class modem-core
# user root
# group radio
# SIMPB daemon
#service simpbd /system/bin/simpbd
# class modem-core
# user root
# group radio
# SMS Server control
#service sms_server /system/bin/sms_server
# class modem
# user root
# group radio
# AT daemon
service atd /system/bin/at_core -mode normal -serial ttyAMA2
class modem
user root
group radio audio
# TA Loader
service ta_load /system/bin/ta_loader
user root
group radio
# AT Distributor for factory test
service at_distributor /system/bin/at_distributor
user root
group radio log
# Modem Access daemon
#service mad /system/bin/ste_mad
# class modem
# user radio
# group radio dbus_access misc
# Avahi Autoip daemon
#service avahi-autoipd /system/bin/avahi-autoipd usb0 -D
# class main
# user root
# Avahi daemon
#service avahi-daemon /system/bin/avahi-daemon
# class main
# user root
# Avahi-publish
#service avahi-publish /system/bin/avahi-publish -s READY _mobile._tcp 5353
# class main
# user root
service watchdog-kicker /system/xbin/watchdog-kicker -d /dev/watchdog -t 120
class main
oneshot
service battery_params /system/xbin/battery_params
class main
oneshot
service usbid_init /system/bin/usbid_init.sh
class main
oneshot
# RTC Calibration daemon
#service rtc_calibration /system/bin/rtc_calibration
# user root
service dhcpcd_bnep0 /system/bin/dhcpcd -ABKL
class main
disabled
oneshot
service iprenew_bnep0 /system/bin/dhcpcd -n
class main
disabled
oneshot
# for LogMeIn
service RescueStarter /system/bin/RescueStarter
class core
user graphics
group input graphics