mirror of
https://github.com/Evolution-X-Devices/device_xiaomi_rosemary
synced 2026-01-27 07:49:58 +00:00
rosemary: Sleep 2 seconds before attempting to turn on backlight
Signed-off-by: bengris32 <bengris32@protonmail.ch> Change-Id: I2c3d63754e4cf6f555a2af56b463a24aef17acae
This commit is contained in:
committed by
Matsvei Niaverau
parent
76979ec2c5
commit
ca7c10c3e5
@@ -148,7 +148,8 @@ PRODUCT_PACKAGES += \
|
|||||||
ueventd.mtk.rc
|
ueventd.mtk.rc
|
||||||
|
|
||||||
PRODUCT_PACKAGES += \
|
PRODUCT_PACKAGES += \
|
||||||
init.recovery.mt6785.rc
|
init.recovery.mt6785.rc \
|
||||||
|
init.recovery.mt6785.sh
|
||||||
|
|
||||||
PRODUCT_COPY_FILES += \
|
PRODUCT_COPY_FILES += \
|
||||||
$(LOCAL_PATH)/rootdir/etc/fstab.mt6785:$(TARGET_COPY_OUT_RECOVERY)/root/first_stage_ramdisk/fstab.mt6785
|
$(LOCAL_PATH)/rootdir/etc/fstab.mt6785:$(TARGET_COPY_OUT_RECOVERY)/root/first_stage_ramdisk/fstab.mt6785
|
||||||
|
|||||||
@@ -7,3 +7,11 @@ LOCAL_MODULE_CLASS := ETC
|
|||||||
LOCAL_SRC_FILES := root/init.recovery.mt6785.rc
|
LOCAL_SRC_FILES := root/init.recovery.mt6785.rc
|
||||||
LOCAL_MODULE_PATH := $(TARGET_ROOT_OUT)
|
LOCAL_MODULE_PATH := $(TARGET_ROOT_OUT)
|
||||||
include $(BUILD_PREBUILT)
|
include $(BUILD_PREBUILT)
|
||||||
|
|
||||||
|
include $(CLEAR_VARS)
|
||||||
|
LOCAL_MODULE := init.recovery.mt6785.sh
|
||||||
|
LOCAL_MODULE_TAGS := optional
|
||||||
|
LOCAL_MODULE_CLASS := ETC
|
||||||
|
LOCAL_SRC_FILES := root/init.recovery.mt6785.sh
|
||||||
|
LOCAL_MODULE_PATH := $(TARGET_ROOT_OUT)
|
||||||
|
include $(BUILD_PREBUILT)
|
||||||
|
|||||||
@@ -22,3 +22,8 @@ on post-fs
|
|||||||
symlink /dev/block/mapper/pl_b /dev/block/platform/bootdevice/by-name/preloader_raw_b
|
symlink /dev/block/mapper/pl_b /dev/block/platform/bootdevice/by-name/preloader_raw_b
|
||||||
|
|
||||||
exec u:r:update_engine:s0 root root -- /system/bin/mtk_plpath_utils
|
exec u:r:update_engine:s0 root root -- /system/bin/mtk_plpath_utils
|
||||||
|
|
||||||
|
service init-recovery-mt6785-sh /init.recovery.mt6785.sh
|
||||||
|
user root
|
||||||
|
group root
|
||||||
|
seclabel u:r:recovery:s0
|
||||||
|
|||||||
4
recovery/root/init.recovery.mt6785.sh
Normal file
4
recovery/root/init.recovery.mt6785.sh
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
#!/system/bin/sh
|
||||||
|
|
||||||
|
sleep 2
|
||||||
|
echo "1000" > /sys/class/leds/lcd-backlight/brightness
|
||||||
Reference in New Issue
Block a user