upload scripts

This commit is contained in:
pluv authored and GitHub committed 2026-07-20 07:31:05 +08:00
commit 380e50e268
8 files changed
+90

No files matched your search

+13
View File
@@ -0,0 +1,13 @@
#!/system/bin/sh
# This script checks the current brightness ensures a minimum brightness of 2.
# This prevents the black screen if the brightness is 1(screen_brightness).
BRIGHTNESS_FILE=/sys/devices/platform/mtk-leds/leds/lcd-backlight/brightness
BRIGHTNESS="$(cat "$BRIGHTNESS_FILE")"
if [ "$BRIGHTNESS" -lt 15 ]; then
settings put system screen_brightness 2
fi
exit 0