mirror of
https://github.com/YuleBest/LuminPro.git
synced 2026-12-04 00:54:42 +08:00
- internal/api:状态聚合(status)、操作锁读写与自愈、daemon 运行状态、 日志读取解析、module.prop 解析与通道判定 - status 一次调用取代原先 5~6 条 shell 命令;--no-display 跳过 dumpsys/settings - oplock 文件改为 JSON 并带 kind(ramp/boost/restart/manual), WebUI 可显示具体操作文案;兼容旧版裸 PID 格式 - daemon 维护 pid/state.json(模式、最近事件/操作、缓存的比率与亮度) - 新子命令:status / oplock / brightness set / config read|patch(stdin) / log tail|clear|export;config patch 走 stdin 并严格校验类型 - pid/inotifyd.pid → pid/daemon.pid;清理 action.sh 死标记、统一文案
18 lines
364 B
Bash
18 lines
364 B
Bash
#!/system/bin/sh
|
|
#shellcheck shell=ash
|
|
# 快速启停切换(管理器「操作」按钮 / WebUI 调用)
|
|
|
|
MODDIR="/data/adb/modules/LuminPro"
|
|
PID_DIR="$MODDIR/pid"
|
|
STOP_FLAG="$PID_DIR/stop.flag"
|
|
|
|
if [ -f "$STOP_FLAG" ]; then
|
|
rm -f "$STOP_FLAG"
|
|
echo "LuminPro: 服务已启用"
|
|
else
|
|
touch "$STOP_FLAG"
|
|
echo "LuminPro: 服务已暂停"
|
|
fi
|
|
|
|
exit 0
|