diff --git a/device.mk b/device.mk index a52b824..1a50094 100644 --- a/device.mk +++ b/device.mk @@ -288,6 +288,9 @@ PRODUCT_PACKAGES += \ PRODUCT_PACKAGES += \ librecovery_updater_xiaomi +PRODUCT_PACKAGES += \ + init.recovery.qcom.rc + # RenderScript PRODUCT_PACKAGES += \ android.hardware.renderscript@1.0-impl diff --git a/rootdir/Android.mk b/rootdir/Android.mk new file mode 100644 index 0000000..a389429 --- /dev/null +++ b/rootdir/Android.mk @@ -0,0 +1,9 @@ +LOCAL_PATH:= $(call my-dir) + +include $(CLEAR_VARS) +LOCAL_MODULE := init.recovery.qcom.rc +LOCAL_MODULE_TAGS := optional +LOCAL_MODULE_CLASS := ETC +LOCAL_SRC_FILES := etc/init.recovery.qcom.rc +LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT) +include $(BUILD_PREBUILT) diff --git a/rootdir/etc/init.recovery.qcom.rc b/rootdir/etc/init.recovery.qcom.rc new file mode 100644 index 0000000..e278317 --- /dev/null +++ b/rootdir/etc/init.recovery.qcom.rc @@ -0,0 +1,7 @@ +on fs + wait /dev/block/platform/soc/${ro.boot.bootdevice} + symlink /dev/block/platform/soc/${ro.boot.bootdevice} /dev/block/bootdevice + +on init + setprop sys.usb.configfs 1 + setprop sys.usb.controller ${ro.boot.usbcontroller}