/
old-init-config.txt
48 lines (40 loc) · 1.76 KB
/
old-init-config.txt
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
# ----------------------------------------------------------------------------------------------------
# These config snippets are taken from the old P1 bml init*.rc files.
# I am not sure if they are needed. Please take a look.
#
# Thanks, eaut
# ----------------------------------------------------------------------------------------------------
# Samsung USB Mode : system properties are linked with sysfs
on property:persist.service.usb.setting=0
write /sys/devices/platform/android_usb/UsbMenuSel 0
on property:persist.service.usb.setting=1
write /sys/devices/platform/android_usb/UsbMenuSel 1
on property:persist.service.usb.setting=2
write /sys/devices/platform/android_usb/UsbMenuSel 2
on property:persist.service.usb.setting=3
write /sys/devices/platform/android_usb/UsbMenuSel 3
on property:persist.service.usb.setting=4
write /sys/devices/platform/android_usb/UsbMenuSel 4
# ----------------------------------------------------------------------------------------------------
# usb tethering
service dnsmasq /system/bin/logwrapper /system/bin/dnsmasq -d
class main
disabled
# ----------------------------------------------------------------------------------------------------
service orientationd /system/vendor/bin/orientationd
class main
user compass
group system input
disabled
service geomagneticd /system/vendor/bin/geomagneticd
class main
user compass
group system input
disabled
# ----------------------------------------------------------------------------------------------------
# bugreport is triggered by holding down volume down, volume up and power
service bugreport /system/bin/dumpstate -d -v -o /sdcard/bugreports/bugreport
class main
socket dumpstate stream 0660 shell log
disabled
oneshot