sdm845-common: Add recovery support
Change-Id: Id44d9793e0ea5fd1359f661ec6a9a1784514dbd2
This commit is contained in:
parent
feb2b339bc
commit
adf9bfbe4e
3 changed files with 37 additions and 0 deletions
|
@ -32,6 +32,10 @@ DEVICE_PACKAGE_OVERLAYS += \
|
|||
PRODUCT_PACKAGES += \
|
||||
audio.a2dp.default
|
||||
|
||||
# Common init scripts
|
||||
PRODUCT_PACKAGES += \
|
||||
init.recovery.qcom.rc
|
||||
|
||||
# Display
|
||||
PRODUCT_PACKAGES += \
|
||||
libvulkan
|
||||
|
|
9
rootdir/Android.mk
Normal file
9
rootdir/Android.mk
Normal file
|
@ -0,0 +1,9 @@
|
|||
LOCAL_PATH := $(call my-dir)
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
LOCAL_MODULE := init.recovery.qcom.rc
|
||||
LOCAL_MODULE_TAGS := optional eng
|
||||
LOCAL_MODULE_CLASS := ETC
|
||||
LOCAL_SRC_FILES := etc/init.recovery.qcom.rc
|
||||
LOCAL_MODULE_PATH := $(TARGET_ROOT_OUT)
|
||||
include $(BUILD_PREBUILT)
|
24
rootdir/etc/init.recovery.qcom.rc
Normal file
24
rootdir/etc/init.recovery.qcom.rc
Normal file
|
@ -0,0 +1,24 @@
|
|||
on fs
|
||||
wait /dev/block/platform/soc/${ro.boot.bootdevice}
|
||||
symlink /dev/block/platform/soc/${ro.boot.bootdevice} /dev/block/bootdevice
|
||||
|
||||
on init
|
||||
mount configfs none /config
|
||||
mkdir /config/usb_gadget/g1 0770 shell shell
|
||||
write /config/usb_gadget/g1/idVendor 0x18d1
|
||||
write /config/usb_gadget/g1/idProduct 0xd001
|
||||
mkdir /config/usb_gadget/g1/strings/0x409 0770
|
||||
write /config/usb_gadget/g1/strings/0x409/serialnumber ${ro.serialno}
|
||||
write /config/usb_gadget/g1/strings/0x409/manufacturer ${ro.product.manufacturer}
|
||||
write /config/usb_gadget/g1/strings/0x409/product ${ro.product.model}
|
||||
mkdir /config/usb_gadget/g1/functions/ffs.adb
|
||||
write /config/usb_gadget/g1/os_desc/use 1
|
||||
setprop sys.usb.configfs 1
|
||||
|
||||
on property:sys.usb.ffs.ready=1
|
||||
mkdir /config/usb_gadget/g1/configs/b.1 0777 shell shell
|
||||
symlink /config/usb_gadget/g1/configs/b.1 /config/usb_gadget/g1/os_desc/b.1
|
||||
mkdir /config/usb_gadget/g1/configs/b.1/strings/0x409 0770 shell shell
|
||||
write /config/usb_gadget/g1/configs/b.1/strings/0x409/configuration "adb"
|
||||
symlink /config/usb_gadget/g1/functions/ffs.adb /config/usb_gadget/g1/configs/b.1/f1
|
||||
write /config/usb_gadget/g1/UDC ${ro.boot.usbcontroller}
|
Loading…
Reference in a new issue