sm6250-common: add recovery scripts

* wait for bootdevice
 * setup ADB
 * symlink logical partitions

Change-Id: I78bdab01eb24464ef9416f35ea8e3c50cfef7864
This commit is contained in:
Demon000 2020-07-15 22:46:31 +03:00
parent 54112478b6
commit a1b7eaf9df
2 changed files with 13 additions and 0 deletions

View File

@ -60,6 +60,11 @@ PRODUCT_PACKAGES += \
rcs_service_api \
rcs_service_api.xml
# Recovery
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/rootdir/etc/init.recovery.qcom.rc:recovery/root/init.recovery.qcom.rc \
$(LOCAL_PATH)/rootdir/bin/init.recovery.qcom.sh:recovery/root/init.recovery.qcom.sh
# Soong namespaces
PRODUCT_SOONG_NAMESPACES += \
$(LOCAL_PATH)

View File

@ -0,0 +1,8 @@
on init
write /sys/class/backlight/panel0-backlight/brightness 200
setprop sys.usb.configfs 1
on fs
wait /dev/block/platform/soc/${ro.boot.bootdevice}
symlink /dev/block/platform/soc/${ro.boot.bootdevice} /dev/block/bootdevice