forked from galaxyishere/android_device_samsung_galaxysl
-
Notifications
You must be signed in to change notification settings - Fork 3
/
init.latona.rc
executable file
·510 lines (425 loc) · 20.3 KB
/
init.latona.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
on init
export DSP_PATH /system/lib/dsp
export DEFAULT_BASEIMAGE /system/lib/dsp/baseimage.dof
export QOSDYN_FILE /system/lib/dsp/qosdyn_3430.dll64P
mkdir /mnt/emmc 0000 system system
symlink /mnt/emmc /emmc
mkdir /efs 0771 system system
# load kernel modules
insmod /lib/modules/fsr.ko
insmod /lib/modules/fsr_stl.ko
insmod /lib/modules/rfs_glue.ko
insmod /lib/modules/rfs_fat.ko
# mount param partition
insmod /lib/modules/j4fs.ko
mkdir /mnt/.lfs 0755 root root
mount j4fs /dev/block/stl6 /mnt/.lfs
chmod 0755 /mnt/.lfs
insmod /lib/modules/param.ko
write /proc/sys/kernel/panic_on_oops 1
write /proc/sys/kernel/hung_task_timeout_secs 0
write /proc/cpu/alignment 4
write /proc/sys/kernel/sched_latency_ns 10000000
write /proc/sys/kernel/sched_wakeup_granularity_ns 2000000
write /proc/sys/kernel/sched_compat_yield 1
write /proc/sys/kernel/sched_child_runs_first 0
# permission for dvfslock ctrl
chown radio system /sys/power/dvfslock_ctrl
chmod 0660 /sys/power/dvfslock_ctrl
# permission for battery
chown radio system /sys/class/power_supply/battery/batt_fuelgauge_reset
chmod 0664 /sys/class/power_supply/battery/batt_fuelgauge_reset
# change permission of ftm_sleep
chown system system /sys/power/ftm_sleep
chmod 0664 /sys/power/ftm_sleep
# change permission of pm_debug
chmod 0664 /sys/kernel/debug/pm_debug/voltage/vdd_mpu/vp_errorgain
chmod 0664 /sys/kernel/debug/pm_debug/voltage/vdd_mpu/vp_smpswaittimemin
chmod 0664 /sys/kernel/debug/pm_debug/voltage/vdd_mpu/vp_stepmin
chmod 0664 /sys/kernel/debug/pm_debug/voltage/vdd_mpu/vp_smpswaittimemax
chmod 0664 /sys/kernel/debug/pm_debug/voltage/vdd_mpu/vp_stepmax
chmod 0664 /sys/kernel/debug/pm_debug/voltage/vdd_mpu/vp_vddmax
chmod 0664 /sys/kernel/debug/pm_debug/voltage/vdd_mpu/vp_vddmin
chmod 0664 /sys/kernel/debug/pm_debug/voltage/vdd_mpu/vp_timeout
chmod 0664 /sys/kernel/debug/pm_debug/voltage/vdd_mpu/fbb_enable
chmod 0664 /sys/kernel/debug/pm_debug/voltage/vdd_core/vp_errorgain
chmod 0664 /sys/kernel/debug/pm_debug/voltage/vdd_core/vp_smpswaittimemin
chmod 0664 /sys/kernel/debug/pm_debug/voltage/vdd_core/vp_stepmin
chmod 0664 /sys/kernel/debug/pm_debug/voltage/vdd_core/vp_smpswaittimemax
chmod 0664 /sys/kernel/debug/pm_debug/voltage/vdd_core/vp_stepmax
chmod 0664 /sys/kernel/debug/pm_debug/voltage/vdd_core/vp_vddmax
chmod 0664 /sys/kernel/debug/pm_debug/voltage/vdd_core/vp_vddmin
chmod 0664 /sys/kernel/debug/pm_debug/voltage/vdd_core/vp_timeout
chmod 0664 /sys/kernel/debug/pm_debug/smartreflex/sr_mpu/autocomp
chmod 0664 /sys/kernel/debug/pm_debug/smartreflex/sr_mpu/errweight
chmod 0664 /sys/kernel/debug/pm_debug/smartreflex/sr_mpu/errmaxlimit
chmod 0664 /sys/kernel/debug/pm_debug/smartreflex/sr_mpu/errminlimit
chmod 0664 /sys/kernel/debug/pm_debug/smartreflex/sr_core/autocomp
chmod 0664 /sys/kernel/debug/pm_debug/smartreflex/sr_core/errweight
chmod 0664 /sys/kernel/debug/pm_debug/smartreflex/sr_core/errmaxlimit
chmod 0664 /sys/kernel/debug/pm_debug/smartreflex/sr_core/errminlimit
chmod 0664 /sys/kernel/debug/pm_debug/voltage_off_while_idle
chmod 0664 /sys/kernel/debug/pm_debug/enable_off_mode
chmod 0664 /sys/kernel/debug/pm_debug/sleep_while_idle
chmod 0664 /sys/kernel/debug/pm_debug/wakeup_timer_seconds
chmod 0664 /sys/kernel/debug/pm_debug/wakeup_timer_milliseconds
chmod 0664 /sys/kernel/debug/pm_debug/enable_sr_vp_debug
chown system system /sys/class/backlight/omap_bl/brightness
# change permissions for Camera
chown system camera /dev/video5
chown system camera /dev/video0
chmod 0660 /dev/video5
chmod 0660 /dev/video0
# change permissions for Overlay
chown system system /dev/video1
chmod 0660 /dev/video1
# change permissions for overlay managers and display devices
chmod 0777 /sys/devices/platform/omapdss/manager0/name
chmod 0777 /sys/devices/platform/omapdss/manager1/name
chmod 0777 /sys/devices/platform/omapdss/display0/name
chmod 0777 /sys/devices/platform/omapdss/display1/name
chmod 0777 /sys/devices/platform/omapdss/display0/enabled
chmod 0777 /sys/devices/platform/omapdss/display1/enabled
chmod 0777 /sys/devices/platform/omapdss/display1/timings
chmod 0777 /sys/devices/platform/omapdss/display0/timings
chmod 0777 /sys/devices/platform/omapdss/overlay0/manager
chmod 0777 /sys/devices/platform/omapdss/overlay1/manager
chmod 0777 /sys/devices/platform/omapdss/overlay2/manager
chmod 0777 /sys/devices/platform/omapdss/overlay0/enabled
chmod 0777 /sys/devices/platform/omapdss/overlay1/enabled
chmod 0777 /sys/devices/platform/omapdss/overlay2/enabled
# change permissions for Previewer and Resizer
chown system system /dev/omap-previewer
chown system system /dev/omap-resizer
chmod 0660 /dev/omap-previewer
chmod 0660 /dev/omap-resizer
chown system system /dev/video6
chown system system /dev/video10
chmod 0660 /dev/video6
chmod 0660 /dev/video10
on fs
mount ext4 /dev/block/stl9 /system
#mount ext4 /dev/block/stl9 /system ro remount
mount ext4 /dev/block/stl11 /cache
mount ext4 /dev/block/mmcblk0p3 /data
mkdir /dbdata 0771 system system
mount ext4 /dev/block/stl10 /dbdata
chown system system /dbdata
chmod 0771 /dbdata
mkdir /dbdata/dalvik-cache 0771 system system
chown system system /dbdata/dalvik-cache
chmod 0771 /dbdata/dalvik-cache
symlink /dbdata/dalvik-cache /cache/dalvik-cache
mkdir /efs 0775 radio radio
mount rfs /dev/block/stl3 /efs nosuid nodev check=no,iocharset=cp437
chown radio system /efs
chmod 0771 /efs
chmod 0771 /efs/bluetooth
chmod 0771 /efs/imei
# Vibetonz
export TMPDIR /data/local/tmp
symlink /data/local/tmp /tmp
# additional kernel modules
insmod /system/lib/modules/samsung_battery.ko
insmod /system/lib/modules/Si4709_driver.ko
insmod /system/lib/modules/yas_mag_kernel_driver.ko
insmod /system/lib/modules/yas_acc_kernel_driver.ko
insmod /system/lib/modules/yas_ori_kernel_driver.ko
insmod /system/lib/modules/gp2a.ko
insmod /system/lib/modules/gps.ko
insmod /system/lib/modules/storage.ko
insmod /system/lib/modules/vibetonz.ko
insmod /system/lib/modules/switch_sio.ko
on boot
# to enable wifi - for TIWLAN
setprop wifi.interface "tiwlan0"
# permissions for MTP device node_temporary permission_will be changed 0660
chmod 0660 /dev/usb_mtp_gadget
chown system system /dev/usb_mtp_gadget
# Permission for USB and UART path
chown system radio /sys/devices/platform/switch-sio/uart_sel
chown system radio /sys/devices/platform/switch-sio/usb_sel
# USB Device permission
chown system system /sys/devices/platform/android_usb/UsbMenuSel
chown system system /sys/devices/platform/android_usb/tethering
chown system system /sys/devices/platform/i2c_omap.1/i2c-1/1-0048/twl4030_usb/vbus
mount debugfs /sys/kernel/debug /sys/kernel/debug
# fake some battery state
setprop status.battery.state Slow
setprop status.battery.level 5
setprop status.battery.level_raw 50
setprop status.battery.level_scale 9
# wi-fi
mkdir /data/misc/wifi/sockets 0770 wifi wifi
mkdir /data/misc/dhcp 0770 dhcp dhcp
# change permission for uart_switch
chown radio radio /sys/class/sec/uart_switch/UART_SEL/value
chmod 660 /sys/class/sec/uart_switch/UART_SEL/value
# create data/gps for GPS demon
mkdir /data/gps 771 gps system
chown gps system /data/gps
chown gps root /sys/class/sec/gps/GPS_PWR_EN/value
chmod 660 /sys/class/sec/gps/GPS_PWR_EN/value
# Enabling sleep in idle path
write /debug/pm_debug/sleep_while_idle 1
# Enabling Voltage OFF in idle path
write /debug/pm_debug/voltage_off_while_idle 1
# Enabling OFF mode
write /debug/pm_debug/enable_off_mode 1
# Enabling Smartreflex
write /debug/pm_debug/smartreflex/sr_mpu/autocomp 1
write /debug/pm_debug/smartreflex/sr_core/autocomp 1
# Setting scaling governor
write /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor conservative
# change permissions for Sensors
chown system system /sys/bus/i2c/drivers/cma3000_accl/4-001c
chown system system /sys/bus/i2c/drivers/cma3000_accl/4-001c/enable
chown system system /sys/bus/i2c/drivers/cma3000_accl/4-001c/delay
chown system system /sys/devices/platform/sfh7741.1
chown system system /sys/devices/platform/sfh7741.1/state
chown system system /sys/bus/i2c/drivers/bmp085/4-0077
chown system system /sys/bus/i2c/drivers/bmp085/4-0077/enable
chown system system /sys/bus/i2c/drivers/hmc5843/4-001e
chown system system /sys/bus/i2c/drivers/hmc5843/4-001e/enable
chown system system /sys/bus/i2c/drivers/hmc5843/4-001e/rate
# change permissions for overlay managers and display devices
chown system system /sys/devices/platform/omapdss/manager0/name
chown system system /sys/devices/platform/omapdss/manager1/name
chown system system /sys/devices/platform/omapdss/display0/name
chown system system /sys/devices/platform/omapdss/display1/name
chown system system /sys/devices/platform/omapdss/display0/enabled
chown system system /sys/devices/platform/omapdss/display1/enabled
chown system system /sys/devices/platform/omapdss/display1/timings
chown system system /sys/devices/platform/omapdss/display0/timings
chown system system /sys/devices/platform/omapdss/overlay0/manager
chown system system /sys/devices/platform/omapdss/overlay1/manager
chown system system /sys/devices/platform/omapdss/overlay2/manager
chown system system /sys/devices/platform/omapdss/overlay0/enabled
chown system system /sys/devices/platform/omapdss/overlay1/enabled
chown system system /sys/devices/platform/omapdss/overlay2/enabled
chown system system /sys/devices/platform/omapdss/overlay0/zorder
chown system system /sys/devices/platform/omapdss/overlay1/zorder
chown system system /sys/devices/platform/omapdss/overlay2/zorder
chown system system /sys/devices/platform/omapdss/overlay3/zorder
# change permissions for manager tranparency parameters
chown system system /sys/devices/platform/omapdss/manager0/name
chown system system /sys/devices/platform/omapdss/manager0/display
chown system system /sys/devices/platform/omapdss/manager0/trans_key_value
chown system system /sys/devices/platform/omapdss/manager0/trans_key_type
chown system system /sys/devices/platform/omapdss/manager0/trans_key_enabled
chown system system /sys/devices/platform/omapdss/manager1/name
chown system system /sys/devices/platform/omapdss/manager1/display
chown system system /sys/devices/platform/omapdss/manager1/trans_key_value
chown system system /sys/devices/platform/omapdss/manager1/trans_key_type
chown system system /sys/devices/platform/omapdss/manager1/trans_key_enabled
chown system system /sys/devices/platform/omapdss/manager2/name
chown system system /sys/devices/platform/omapdss/manager2/display
chown system system /sys/devices/platform/omapdss/manager2/trans_key_value
chown system system /sys/devices/platform/omapdss/manager2/trans_key_type
chown system system /sys/devices/platform/omapdss/manager2/trans_key_enabled
chown system system /sys/devices/platform/omapdss/overlay0/enabled
chown system system /sys/devices/platform/omapdss/overlay1/enabled
chown system system /sys/devices/platform/omapdss/overlay2/enabled
chown system system /sys/devices/platform/omapdss/overlay3/enabled
# change permissions for display timings to get the resolutions
chown system system /sys/devices/platform/omapdss/display0/timings
chown system system /sys/devices/platform/omapdss/display1/timings
chown system system /sys/devices/platform/omapdss/display2/timings
chown system system /sys/devices/platform/omapdss/display3/timings
chmod 0666 /sys/devices/platform/omapdss/display0/timings
chmod 0666 /sys/devices/platform/omapdss/display1/timings
chmod 0666 /sys/devices/platform/omapdss/display2/timings
chmod 0666 /sys/devices/platform/omapdss/display3/timings
# enable alpha blending on overlay managers to make gui controls visible
chown system system /sys/devices/platform/omapdss/manager0/alpha_blending_enabled
chown system system /sys/devices/platform/omapdss/manager1/alpha_blending_enabled
chmod 0666 /sys/devices/platform/omapdss/manager0/alpha_blending_enabled
chmod 0666 /sys/devices/platform/omapdss/manager1/alpha_blending_enabled
write /sys/devices/platform/omapdss/manager0/alpha_blending_enabled 1
write /sys/devices/platform/omapdss/manager1/alpha_blending_enabled 1
# change permissions for lcd_power
chown radio system /sys/class/backlight/omap_bl/device/lcd_power
chown radio system /sys/power/dvfslock_ctrl
chmod 0660 /sys/power/dvfslock_ctrl
# geomagnetic for rev 0.1
chown system input /sys/class/input/input3/enable
chown system input /sys/class/input/input3/poll_delay
chown system input /sys/class/input/input3/filter_enable
chown system input /sys/class/input/input3/filter_len
chown system input /sys/class/input/input3/data
chown system input /sys/class/input/input3/status
chown system input /sys/class/input/input3/wake
chown system input /sys/class/input/input3/position
# geomagnetic for rev 0.8
chown system input /sys/class/input/input4/enable
chown system input /sys/class/input/input4/poll_delay
chown system input /sys/class/input/input4/filter_enable
chown system input /sys/class/input/input4/filter_len
chown system input /sys/class/input/input4/data
chown system input /sys/class/input/input4/status
chown system input /sys/class/input/input4/wake
chown system input /sys/class/input/input4/position
# geomagnetic raw for rev 0.1
chown system input /sys/class/input/input4/threshold
chown system input /sys/class/input/input4/distortion
chown system input /sys/class/input/input4/shape
chown system input /sys/class/input/input4/offsets
write /sys/class/input/input4/threshold 1
write /sys/class/input/input4/distortion "20 20 15"
# geomagnetic raw for rev 0.8
chown system input /sys/class/input/input5/threshold
chown system input /sys/class/input/input5/distortion
chown system input /sys/class/input/input5/shape
chown system input /sys/class/input/input5/offsets
write /sys/class/input/input5/threshold 1
write /sys/class/input/input5/distortion "20 20 15"
write /sys/class/input/input5/filter_enable 1
# accelerometer for rev 0.1
chown system input /sys/class/input/input5/enable
chown system input /sys/class/input/input5/poll_delay
chown system input /sys/class/input/input5/position
chown system input /sys/class/input/input5/threshold
chown system input /sys/class/input/input5/wake
chown system input /sys/class/sensors/accelerometer_sensor/raw_data
chown system input /sys/class/sensors/accelerometer_sensor/calibration
# accelerometer for rev 0.8
chown system input /sys/class/input/input6/enable
chown system input /sys/class/input/input6/poll_delay
chown system input /sys/class/input/input6/position
chown system input /sys/class/input/input6/threshold
chown system input /sys/class/input/input6/wake
chown system input /sys/class/input/input6/data
chown system input /sys/class/input/input6/calibration
# orientation
chown system input /sys/class/input/input6/enable
chown system input /sys/class/input/input6/poll_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
# proximity
chown system input /sys/class/input/input7/enable
chown system input /sys/class/input/input7/poll_delay
chown system input /sys/class/input/input7/wake
chown system input /sys/class/sensors/proximity_sensor/state
chown system input /sys/class/sensors/proximity_sensor/adc
# light sensor
chown system input /sys/class/input/input8/enable
chown system input /sys/class/input/input8/poll_delay
chown system input /sys/class/input/input8/wake
chown system input /sys/class/sensors/light_sensor/lux
chown system input /sys/class/sensors/light_sensor/adc
# for rev 0.8
chown system input /sys/class/input/input9/enable
chown system input /sys/class/input/input9/poll_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/testmode
# Permissions for bluetooth.
chown bluetooth bluetooth ro.bt.bdaddr_path
chmod 0660 /dev/ttyS1
chown bluetooth bluetooth /dev/ttyS1
chmod 0660 /sys/class/rfkill/rfkill0/state
chown bluetooth bluetooth /sys/class/rfkill/rfkill0/state
chown bluetooth bluetooth /sys/class/rfkill/rfkill0/type
write sys/class/rfkill/rfkill0/state 0
# enable touch boost
write /sys/touchscreen/touch_boost 1
# CM7 touchscreen fix (waleedq)
write /sys/touchscreen/set_touchscreen 7032
write /sys/touchscreen/set_noise 4027
write /sys/touchscreen/set_acquisition 4000
exec /system/bin/cat /sys/touchscreen/set_write
# permission for touchscreen
chown system system /sys/touchscreen/bootcomplete
chown system system /sys/touchscreen/set_qt_firm_update
# for datarouter
chown system system /dev/ttyGS0
chown system system /dev/dun
# Increase readahead buffers on MMC devices
write /sys/block/mmcblk0/bdi/read_ahead_kb 1024
# 3D init
service pvrsrvinit /system/bin/pvrsrvinit
user root
group root
oneshot
# load DSP firmware
service baseimage /system/bin/cexec.out /system/lib/dsp/baseimage.dof
user root
group system audio camera graphics inet net_bt net_bt_admin net_raw media
oneshot
service hciattach /system/bin/logwrapper /system/bin/hciattach -n /dev/ttyS1 texas 3000000
# let hciattach drop uid to bluetooth with the right linux capabilities
group bluetooth net_bt_admin
disabled
oneshot
service wpa_supplicant /system/bin/wpa_supplicant -Dtiwlan0 -itiwlan0 -c/data/misc/wifi/wpa_supplicant.conf -dd
class main
socket wpa_tiwlan0 dgram 0660 wifi wifi
disabled
oneshot
service wlan_loader /system/bin/tiwlan_loader -i /system/etc/wifi/tiwlan.ini -f /system/etc/wifi/firmware.bin -e /data/misc/wifi/nvs_map.bin
disabled
oneshot
service wlan_plt_loader /system/bin/tiwlan_loader -i /system/etc/wifi/tiwlan_plt.ini -f /system/etc/wifi/firmware.bin -e /data/misc/wifi/nvs_map.bin
disabled
oneshot
service ifcfg_tiwlan_up /system/bin/ifconfig tiwlan0 up
disabled
oneshot
service tiwlan_plts /system/bin/tiwlan_plts
disabled
oneshot
service tiwlan_nvs /system/bin/tiwlan_plts -n
disabled
oneshot
service wlan_ap_loader /system/bin/tiap_loader -i /system/etc/wifi/softap/tiwlan_ap.ini -f /system/etc/wifi/softap/ap_firmware.bin -e /data/misc/wifi/nvs_map.bin
disabled
oneshot
service hostapd /system/bin/hostapd -B -P /data/misc/softap/hostapd_pid.pid /data/misc/softap/hostapd_create.conf
disabled
oneshot
service dhcpserver /system/bin/udhcpd_softap /system/etc/wifi/softap/udhcpd.conf
disabled
oneshot
service ifcfg_tiap /system/bin/ifconfig tiap0 192.168.43.1 netmask 255.255.255.0
disabled
oneshot
# DHCPCD
# wi-fi
service dhcpcd_tiwlan0 /system/bin/dhcpcd -ABKL tiwlan0
disabled
oneshot
# IP Renew
# wi-fi
service iprenew_tiwlan0 /system/bin/dhcpcd -n
disabled
oneshot
service hciattach /system/bin/brcm_patchram_plus --enable_hci --enable_lpm \
--baudrate 3000000 --patchram /vendor/firmware/bcm4329.hcd /dev/s3c2410_serial0
user bluetooth
group bluetooth net_bt_admin
disabled
oneshot
service immvibed /system/bin/immvibed
user shell
group system
oneshot
# bugreport is triggered by holding down volume down, volume up and power
service bugreport /system/bin/dumpstate -d -v -o /sdcard/bugreports/bugreport
disabled
oneshot
keycodes 114 115 116
service orientationd /system/bin/orientationd
user compass
group input
service geomagneticd /system/bin/geomagneticd
user compass
group system input
service gpsd /system/vendor/bin/gpsd -c /system/vendor/etc/gps.xml
socket gps seqpacket 0660 gps system
user gps
group system inet
service tvout /system/bin/tvoutserver
user system
group graphics