blob: baedea7692661afeeb03d4676d2947df2f2abe93 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
on fs
# set charging free due to it waits for USB activation
write /sys/class/android_usb/android0/enable 1
start adbd
# distinguish USB shoulde connect or not, i.e. CDP vs SDP
write /sys/devices/platform/mt_usb/cmode 2
on property:ro.debuggable=1
# restore cmode to normal for making USB enumeration
write /sys/devices/platform/mt_usb/cmode 1
on post-fs-data
# Support A/B feature for boot region
symlink /dev/block/mmcblk0boot0 /dev/block/platform/mtk-msdc.0/11230000.msdc0/by-name/preloader_a
symlink /dev/block/mmcblk0boot1 /dev/block/platform/mtk-msdc.0/11230000.msdc0/by-name/preloader_b
|