sm8350-common: update recovery configuration
This commit is contained in:
parent
f6036b35e1
commit
c28a95caee
@ -183,7 +183,8 @@ BOARD_USES_QCOM_HARDWARE := true
|
|||||||
TARGET_FWK_SUPPORTS_FULL_VALUEADDS := true
|
TARGET_FWK_SUPPORTS_FULL_VALUEADDS := true
|
||||||
|
|
||||||
# Recovery
|
# 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_FSTAB := $(COMMON_PATH)/rootdir/etc/fstab.qcom
|
||||||
TARGET_RECOVERY_PIXEL_FORMAT := "RGBX_8888"
|
TARGET_RECOVERY_PIXEL_FORMAT := "RGBX_8888"
|
||||||
TARGET_USERIMAGES_USE_EXT4 := true
|
TARGET_USERIMAGES_USE_EXT4 := true
|
||||||
|
@ -288,8 +288,7 @@ PRODUCT_PACKAGES += \
|
|||||||
|
|
||||||
# Recovery
|
# Recovery
|
||||||
PRODUCT_COPY_FILES += \
|
PRODUCT_COPY_FILES += \
|
||||||
$(LOCAL_PATH)/rootdir/etc/init.recovery.qcom.rc:recovery/root/init.recovery.qcom.rc \
|
$(LOCAL_PATH)/rootdir/etc/init.recovery.qcom.rc:$(TARGET_COPY_OUT_RECOVERY)/root/init.recovery.qcom.rc
|
||||||
$(LOCAL_PATH)/rootdir/bin/init.recovery.qcom.sh:recovery/root/init.recovery.qcom.sh
|
|
||||||
|
|
||||||
# RenderScript HAL
|
# RenderScript HAL
|
||||||
PRODUCT_PACKAGES += \
|
PRODUCT_PACKAGES += \
|
||||||
|
@ -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
|
|
@ -1,15 +1,10 @@
|
|||||||
on init
|
|
||||||
write /sys/class/backlight/panel0-backlight/brightness 200
|
|
||||||
|
|
||||||
setprop sys.usb.configfs 1
|
|
||||||
|
|
||||||
on fs
|
on fs
|
||||||
wait /dev/block/platform/soc/${ro.boot.bootdevice}
|
wait /dev/block/platform/soc/${ro.boot.bootdevice}
|
||||||
symlink /dev/block/platform/soc/${ro.boot.bootdevice} /dev/block/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
|
on init
|
||||||
user root
|
setprop sys.usb.configfs 1
|
||||||
group root
|
|
||||||
seclabel u:r:recovery:s0
|
on property:ro.boot.usbcontroller=*
|
||||||
oneshot
|
setprop sys.usb.controller ${ro.boot.usbcontroller}
|
||||||
|
write /sys/class/udc/${ro.boot.usbcontroller}/device/../mode peripheral
|
||||||
|
Loading…
Reference in New Issue
Block a user