-
Notifications
You must be signed in to change notification settings - Fork 5
/
ramdump.init.rc
77 lines (59 loc) · 1.92 KB
/
ramdump.init.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
import /droidboot.init.${ro.hardware}.rc
import /init.droidboot.debug.rc
import /init.watchdog.rc
import /init.firmware.rc
on early-init
start ueventd
on init
export PATH /sbin:/system/sbin:/system/bin:/system/xbin
export ANDROID_ROOT /system
export ANDROID_DATA /data
symlink /system/etc /etc
mount /tmp /tmp tmpfs
mount /data /data tmpfs
write /proc/sys/kernel/panic_on_oops 1
# set usb serial number
write /sys/class/android_usb/android0/iSerial ${ro.serialno}
# Trigger remaining init steps:
on late-init
trigger fs
trigger boot
on fs
mkdir /dev/usb-ffs 0770 shell shell
mkdir /dev/usb-ffs/adb 0770 shell shell
mount functionfs adb /dev/usb-ffs/adb uid=2000,gid=2000
write /sys/class/android_usb/android0/f_ffs/aliases adb
on boot
ifup lo
hostname localhost
domainname localdomain
# USB settings to allow charging, but not to be declare as Fastboot Device
setprop sys.usb.config charging
class_start default
class_start core
setprop sys.usb.config adb
start adbd
on property:sys.usb.config=adb
write /sys/class/android_usb/android0/enable 0
write /sys/class/android_usb/android0/idVendor 8087
write /sys/class/android_usb/android0/idProduct 0fff
write /sys/class/android_usb/android0/iProduct "Android-Phone"
write /sys/class/android_usb/android0/functions ${sys.usb.config}
write /sys/class/android_usb/android0/enable 1
service ueventd /sbin/ueventd
critical
service console /system/bin/sh
console
on property:sys.powerctl=*
powerctl ${sys.powerctl}
service thermald /sbin/thermald POS
user root
on property:sys.forcecoldboot=yes
write /sys/module/intel_mid/parameters/force_cold_boot 1
service adbd /sbin/adbd
class core
disabled
on property:service.adb.root=1
write /sys/class/android_usb/android0/enable 0
restart adbd
write /sys/class/android_usb/android0/enable 1