sm6250-common: add recovery scripts
* wait for bootdevice * setup ADB * symlink logical partitions Change-Id: I78bdab01eb24464ef9416f35ea8e3c50cfef7864
This commit is contained in:
parent
54112478b6
commit
a1b7eaf9df
@ -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)
|
||||
|
8
rootdir/etc/init.recovery.qcom.rc
Normal file
8
rootdir/etc/init.recovery.qcom.rc
Normal 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
|
Loading…
Reference in New Issue
Block a user