X6833B: Kang init usb recovery from yunluo

Signed-off-by: dodyirawan85 <40514988+dodyirawan85@users.noreply.github.com>
This commit is contained in:
dodyirawan85 2023-10-15 21:06:43 +07:00
parent e088d86d5d
commit 1f96867457
4 changed files with 15 additions and 9 deletions

View file

@ -71,7 +71,8 @@ PRODUCT_PACKAGES += \
# Init files # Init files
PRODUCT_PACKAGES += \ PRODUCT_PACKAGES += \
fstab.mt6789.vendor_ramdisk fstab.mt6789.vendor_ramdisk \
init.recovery.usb.rc
# Include GSI keys # Include GSI keys
$(call inherit-product, $(SRC_TARGET_DIR)/product/developer_gsi_keys.mk) $(call inherit-product, $(SRC_TARGET_DIR)/product/developer_gsi_keys.mk)

View file

@ -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

View file

@ -9,3 +9,10 @@ prebuilt_etc {
src: "etc/fstab.mt6789", src: "etc/fstab.mt6789",
vendor_ramdisk_available: true vendor_ramdisk_available: true
} }
prebuilt_etc {
name: "init.recovery.usb.rc",
src: "etc/init.recovery.usb.rc",
recovery: true,
sub_dir: "init"
}

View 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"