sm8350-common: update recovery configuration

This commit is contained in:
Cosmin Tanislav 2021-09-03 20:23:13 +03:00
parent f6036b35e1
commit c28a95caee
4 changed files with 9 additions and 23 deletions

View File

@ -183,7 +183,8 @@ BOARD_USES_QCOM_HARDWARE := true
TARGET_FWK_SUPPORTS_FULL_VALUEADDS := true
# Recovery
BOARD_INCLUDE_RECOVERY_DTBO := true
BOARD_INCLUDE_DTB_IN_BOOTIMG := true
BOARD_USES_RECOVERY_AS_BOOT := true
TARGET_RECOVERY_FSTAB := $(COMMON_PATH)/rootdir/etc/fstab.qcom
TARGET_RECOVERY_PIXEL_FORMAT := "RGBX_8888"
TARGET_USERIMAGES_USE_EXT4 := true

View File

@ -288,8 +288,7 @@ PRODUCT_PACKAGES += \
# 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
$(LOCAL_PATH)/rootdir/etc/init.recovery.qcom.rc:$(TARGET_COPY_OUT_RECOVERY)/root/init.recovery.qcom.rc
# RenderScript HAL
PRODUCT_PACKAGES += \

View File

@ -1,9 +0,0 @@
#!/system/bin/sh
while [ ! -d /dev/block/mapper ]; do
sleep 1
done
ln -s /dev/block/mapper/* /dev/block/bootdevice/by-name/
exit 0

View File

@ -1,15 +1,10 @@
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
start init-recovery-qcom-sh
service init-recovery-qcom-sh /init.recovery.qcom.sh
user root
group root
seclabel u:r:recovery:s0
oneshot
on init
setprop sys.usb.configfs 1
on property:ro.boot.usbcontroller=*
setprop sys.usb.controller ${ro.boot.usbcontroller}
write /sys/class/udc/${ro.boot.usbcontroller}/device/../mode peripheral