• 全新单提交:清除含敏感信息的旧历史(sudo 口令、内网 IP、SSH 密钥路径、热点 SSID、设备 MAC) • 本地开发文档/测试记录/构建脚本全部移入 gitignored 的 devdocs/ 与 scripts/build/(不入库) • 保留:MeowOS 源码(launcher/watchdog/bootmenu/meow_svcd/SDK)、项目规范文档、mips-repo 增补组件:SDK 统一日志+通知 API、meow_svcd 服务管理器、mips-repo 软件仓库
41 lines
1.9 KiB
Bash
41 lines
1.9 KiB
Bash
#!/bin/sh
|
|
# run_final.sh — clean single verification of v6.6 under the bug condition,
|
|
# waiting long enough for the menu-relative sim-exit so the menu-close restore
|
|
# path is observed, then a device health check.
|
|
HPID=976
|
|
st(){ awk '{print $3}' "/proc/$HPID/stat" 2>/dev/null; }
|
|
yoff(){ /data/fbprobe 2>/dev/null | grep -oE "yoffset = [0-9]+"; }
|
|
|
|
echo "=== seed bug-cond: unblank + pan to buffer1 (yoffset=720) ==="
|
|
/data/fbtool blank 0 >/dev/null 2>&1
|
|
/data/fbtool pan 720 >/dev/null 2>&1
|
|
echo "seed: yoffset=$(yoff) player_stat=$(st)"
|
|
|
|
echo "=== run v6.6 (sim-hotkey 1200, sim-exit 9000) ==="
|
|
rm -f /usr/data/meow_launcherd.pid
|
|
/data/meow_launcherd.v66 --sim-hotkey 1200 --sim-exit 9000 >/tmp/m_fin.log 2>&1 &
|
|
LPID=$!
|
|
# menu opens ~2s after start; sim-exit fires at menu-open+9s ~= start+11s.
|
|
sleep 4
|
|
echo "=== DURING MENU (t=4s) ==="
|
|
echo " player_stat=$(st) yoffset=$(yoff)"
|
|
dd if=/dev/fb0 of=/tmp/fin_menu_b0.raw bs=960 count=720 status=none 2>/dev/null
|
|
echo " menu_b0=$(md5sum /tmp/fin_menu_b0.raw 2>/dev/null | awk '{print $1}')"
|
|
sleep 9 # now ~13s: sim-exit (menu-rel 9s) has fired
|
|
echo "=== AFTER sim-exit (t=13s) ==="
|
|
echo " player_stat=$(st) yoffset=$(yoff)"
|
|
echo " log2: $(grep -E 'menu close|fb restore|restore:|SIGCONT|=== meow_launcherd exit' /tmp/m_fin.log | tr '\n' ' | ')"
|
|
kill "$LPID" 2>/dev/null; sleep 1; killall meow_launcherd 2>/dev/null
|
|
|
|
echo "=== HEALTH CHECK ==="
|
|
echo " launcher procs: $(pgrep -c meow_launcherd 2>/dev/null || echo 0)"
|
|
echo " hiby procs: $(pgrep -c hiby_player 2>/dev/null || echo 0)"
|
|
echo " player stat=$(st)"
|
|
echo " recovery_all: $(ls /data/recovery_all 2>/dev/null || echo absent)"
|
|
echo " brightness=$(cat /sys/class/backlight/backlight_pwm0/brightness) bl_power=$(cat /sys/class/backlight/backlight_pwm0/bl_power 2>/dev/null)"
|
|
echo " yoffset=$(yoff)"
|
|
echo " loadavg=$(cat /proc/loadavg)"
|
|
echo "=== last 12 log lines ==="
|
|
tail -12 /tmp/m_fin.log
|
|
echo DONE
|