-
Notifications
You must be signed in to change notification settings - Fork 1
/
init.recovery.anzhen4_mrd7.rc
42 lines (34 loc) · 1.31 KB
/
init.recovery.anzhen4_mrd7.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
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/platform/80860F14:00/by-name /dev/block/by-name
start thermald
mkdir /factory 0775 system system
mount ext4 /dev/block/by-name/factory /factory nosuid nodev noatime barrier=1,data=ordered
on firmware_mounts_complete
rm /dev/.booting
on boot
setprop sys.usb.config adb
trigger firmware_mounts_complete
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 watchdogd /sbin/watchdogd
user root
oneshot
service wdogcounter /sbin/sh /init.watchdog.sh
user root
oneshot
disabled
service thermald /sbin/thermald ROS
class core
user root
# Reset the watchdog counter once boot is completed
on property:init.svc.recovery=running
start wdogcounter