blob: cef3a15909664108a5a9821ce42b403a7c55b407 (
plain)
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
|
# Originally device/intel/brightonpier/vm300/config/init.recovery.vm300.rc
# SALTBAY specific rules for recovery OS
on early-init
insmod /lib/modules/tngdisp.ko
start thermald
on init
# Android creates by-name disk links with the disk controller
# in the generated path, so that the names pulled out of the GPT
# can be associated with the correct disk. Create a shortcut to
# /dev/block/by-name so that we can use the same fstabs everywhere.
symlink /dev/block/pci/pci0000:00/0000:00:01.0/by-name /dev/block/by-name
write /proc/sys/kernel/panic_on_oops 1
mkdir /factory 0775 system system
mount ext4 /dev/block/by-name/factory /factory nosuid nodev noatime barrier=1,data=ordered
setprop thermal.lite.crash 0
on boot
setprop sys.usb.config adb
trigger firmware_mounts_complete
on firmware_mounts_complete
rm /dev/.booting
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 0a5d
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 intel_prop /sbin/intel_prop
seclabel u:r:intel_prop:s0
oneshot
# copied from common/init.watchdogd.rc
service watchdogd /sbin/watchdogd 60 20
oneshot
service thermald /sbin/thermald ROS
seclabel u:r:thermald:s0
class core
user root
# Reset the watchdog counter once boot is completed
on property:init.svc.recovery=running
write /sys/devices/virtual/misc/watchdog/counter "0"
|