feat(cellular, power): enable SDM660 IPA v2.6L 4G LTE, power-key status screen, and DVFS standby
Offline project checks / check (push) Canceled after 0s
Offline project checks / check (push) Canceled after 0s
This commit is contained in:
@@ -1,8 +1,27 @@
|
||||
#!/bin/sh
|
||||
# Always start dark. Display the installed release briefly in the background.
|
||||
# Always start dark. Display charger UI in charger boot mode, or release logo briefly.
|
||||
for path in /sys/class/backlight/*/brightness; do
|
||||
[ -w "$path" ] && printf '0\n' > "$path"
|
||||
done
|
||||
CMDLINE=$(cat /proc/cmdline 2>/dev/null || true)
|
||||
CHARGER_MODE=0
|
||||
case " $CMDLINE " in
|
||||
*" androidboot.mode=charger "*|*" androidboot.bootreason=usb_chg "*)
|
||||
CHARGER_MODE=1
|
||||
;;
|
||||
esac
|
||||
if [ "$CHARGER_MODE" = 1 ]; then
|
||||
if [ -x /usr/local/sbin/platina-status-screen ]; then
|
||||
umask 027
|
||||
(
|
||||
timeout -s TERM -k 3 10 /usr/local/sbin/platina-status-screen --once --mode charger --seconds 5 || true
|
||||
if [ -x /usr/local/sbin/platina-display ]; then
|
||||
/usr/local/sbin/platina-display off || true
|
||||
fi
|
||||
) >> /var/log/platina-splash.log 2>&1 &
|
||||
fi
|
||||
exit 0
|
||||
fi
|
||||
if [ -x /usr/local/sbin/platina-splash ] && [ -r /usr/local/share/platina/current/release.json ]; then
|
||||
umask 027
|
||||
(
|
||||
|
||||
Reference in New Issue
Block a user