MeowOS for HiBy R3 Pro II — 公共发布版本(历史已重置)

• 全新单提交:清除含敏感信息的旧历史(sudo 口令、内网 IP、SSH 密钥路径、热点 SSID、设备 MAC)
• 本地开发文档/测试记录/构建脚本全部移入 gitignored 的 devdocs/ 与 scripts/build/(不入库)
• 保留:MeowOS 源码(launcher/watchdog/bootmenu/meow_svcd/SDK)、项目规范文档、mips-repo
增补组件:SDK 统一日志+通知 API、meow_svcd 服务管理器、mips-repo 软件仓库
This commit is contained in:
MeowOS Dev committed 2026-08-30 01:12:34 +08:00
commit 245bee2946
136 files changed
+32730

No files matched your search

+19
View File
@@ -0,0 +1,19 @@
#!/bin/bash
# gdb_cave.sh — 重启设备 gdbserver 并在本机 gdb 里执行给定命令文件
# 用法: ./gdb_cave.sh <gdb_script> [额外gdb参数...]
IP="${GDB_IP:-<alt_device_ip>}"
KEY="$HOME/Project/R3ProII/ssh_keys/<device_key>"
SCRIPT="${1:?usage: gdb_cave.sh <script>}"
shift
# 重启 gdbserver
ssh -i "$KEY" -o StrictHostKeyChecking=no root@$IP "
for pid in \$(ps | grep gdbserver | grep -v grep | awk '{print \$1}'); do kill \$pid 2>/dev/null; done
sleep 1
HP=\$(ps | grep hiby_player | grep -v grep | grep -v sh | awk '{print \$1}' | head -1)
nohup gdbserver --attach :2345 \$HP > /data/gdbserver.log 2>&1 &
sleep 2
cat /data/gdbserver.log | head -2
" 2>&1 | grep -vE "WARNING|vulnerable|upgraded|openssh.com" | grep -E "Attached|Listening"
gdb-multiarch -batch -x "$SCRIPT" "$@" 2>&1 | grep -vE "^The target|set to|^\[|warning:"