mirror of
https://github.com/Anything-at-25-00/android_device_tecno_LG8n.git
synced 2024-11-22 13:46:26 -08:00
X6833B: Kang init usb recovery from yunluo
Signed-off-by: dodyirawan85 <40514988+dodyirawan85@users.noreply.github.com>
This commit is contained in:
parent
e088d86d5d
commit
1f96867457
|
@ -71,7 +71,8 @@ PRODUCT_PACKAGES += \
|
|||
|
||||
# Init files
|
||||
PRODUCT_PACKAGES += \
|
||||
fstab.mt6789.vendor_ramdisk
|
||||
fstab.mt6789.vendor_ramdisk \
|
||||
init.recovery.usb.rc
|
||||
|
||||
# Include GSI keys
|
||||
$(call inherit-product, $(SRC_TARGET_DIR)/product/developer_gsi_keys.mk)
|
||||
|
|
|
@ -1,8 +0,0 @@
|
|||
on init
|
||||
setprop sys.usb.configfs 1
|
||||
setprop sys.usb.controller "musb-hdrc"
|
||||
setprop sys.usb.ffs.aio_compat 0
|
||||
|
||||
on fs
|
||||
wait /dev/block/platform/bootdevice/
|
||||
symlink /dev/block/platform/bootdevice /dev/block/bootdevice
|
|
@ -9,3 +9,10 @@ prebuilt_etc {
|
|||
src: "etc/fstab.mt6789",
|
||||
vendor_ramdisk_available: true
|
||||
}
|
||||
|
||||
prebuilt_etc {
|
||||
name: "init.recovery.usb.rc",
|
||||
src: "etc/init.recovery.usb.rc",
|
||||
recovery: true,
|
||||
sub_dir: "init"
|
||||
}
|
||||
|
|
6
rootdir/etc/init.recovery.usb.rc
Executable file
6
rootdir/etc/init.recovery.usb.rc
Executable file
|
@ -0,0 +1,6 @@
|
|||
on init
|
||||
setprop sys.usb.configfs 1
|
||||
setprop sys.usb.ffs.aio_compat 1
|
||||
setprop sys.usb.ffs.ready 1
|
||||
setprop sys.usb.controller "musb-hdrc"
|
||||
setprop vendor.usb.controller "musb-hdrc"
|
Loading…
Reference in a new issue