Repository navigation
Releases
Releases · tiamo1990/shancha-kernel-workshop
v8.1 · 大修版(状态/收尾/7879 判据)
大修(依据 docs/APK_AUDIT.md 的 39 条体检结果)
P0
- 真实状态回填:冷启动/回前台按
/proc/modules+pidof own127显示(已接管 → 进度 6/6、启动键置灰) running全路径复位(内外 try/catch + 线程 finally + 崩溃守卫)- 开机门闩按 bootId:仅本次开机真成功过才拦
- 前台服务
foregroundServiceType=specialUse(Android 14+ 不再崩) - 7879 的 sha256 门禁独立执行、跑在
setsid之前,不进启动链
收尾统一 endRun
- 关流 → 停看门狗 → 失败才清理 → 复位 running → 命名会话 → 保存日志
- 7879:成功/驻留不杀(持页,杀即 UAF);真失败按 PID
kill -TERM→ 1.5s 复核 →kill -9
7879 成功判据对齐 v2.9
[gate127] SUCCESS,或兜底grep -ic kernelsu /proc/modules非 0;兜底命中时不再清理进程
其它
- 日志每轮独立文件、1s 刷新、结束改名(成功/失败-codeN/驻留/重启),杜绝全 0 文件
- 点过启动即锁按钮(按 bootId 落盘),防重复跑
- 清理改 PID 精确 kill(
pkill -f own127会自匹配到自己) - 移除多余 WRITE_EXTERNAL_STORAGE
已知风险
- 3666 的
fix_rc_uid写路径仍为概率性内核 panic(未解决) - 7879 失败场景的清理链路尚未真机验证
资产
shancha-v8.1.apk 1,727,944 B sha256 489E6659A615BC3D4AC996DE773EE56C2190845D916F4511E4AFC7276FAE296B
v7.6 · Shancha Kernel Workshop
Logs (reworked)
- One file per run:
进行中-<time>-<ver>.txt, refreshed every 1 s, then renamed on finish to..._成功/_失败-codeN/_驻留/_重启.txt - Stored under
Download/山茶内核工坊/日志/via MediaStore (visible in any file manager) - After a panic reboot the next launch archives the pending run automatically
- Long-press the Save button exports a diagnostics bundle (kernel string, key symbol addresses, kmem state, tail of both logs)
7879 (v2.9 chain) strictly aligned
- cwd
/data/local/tmp(the 2.9 payload uses a relativechanpath) — this was the main breakage - force re-push payload each run (equals
cp -f) - pre-create
cve-2026-98260.log+chmod 666+chmod 777 /data/local/tmp - remove both
.lock2andown127.lock;setsid … > own127.log 2>&1 < /dev/null &; read bywc -c+tail -c +N
Payload own138
- cred miss now retries 3 rounds before failing (previously stopped at the first miss, which treated a dropped frame as a verdict)
- after success: stop all kernel writes, park with
pause()(measured 0% CPU)
Guards
- sha256 gate (case-insensitive), kernel mismatch is warning-only, preflight is advisory only
- abort refused after takeover; reboot needs a second tap within 4 s; >150 s uptime needs confirmation; 45 s stall auto-cleans when not succeeded
v6.9 · Shancha Kernel Workshop
Highlights
- Required version choice: 3666 (new kernel) / 7879 (old kernel). UI note: 7879 tested on 7946 / 6638 as well; 3666 unknown, test yourself.
- Choice is bound to payload via
assets/payloads.json; sha256 gate before execution (case-insensitive compare). - Kernel mismatch is warning-only and still runs.
- 7879 keeps the original v2.9 log output (no reformatting).
- On success the chain stops all kernel writes and parks with
pause()(measured 0% CPU). - Mis-touch guards: abort refused after success; reboot requires a second tap within 4 s.
- Failed attempt can be retried in the same boot; after success a double tap is required.
- Long-press Copy exports the log to /sdcard/Download.
Asset
shancha-v6.9.apk (1,723,397 B) sha256 A8E24A642717EB35268F221AEFC8B672B37D7B10E78C1FE8597521385D745289
v6.4 · Shancha Kernel Workshop
- Dedicated log folder:
Download/山茶内核工坊/日志/run-<time>-<ver>.txt(auto-saved each run, plus a Save button in the log card) - 7879 slot now reproduces the v2.9 launcher: removes
.lock2andown127.lock, runssetsid ... > own127.log 2>&1 < /dev/null &, then tails the log - Zombie-parking detection: refuses abort / restart-less rerun and tells the user to reboot
- sha256 gate is case-insensitive; kernel mismatch is warning-only
- Mis-touch guards: abort refused after takeover, reboot needs a second tap within 4 s, >150 s uptime needs confirmation
- Stall watchdog kills the chain process only when it has not succeeded
v5.5 · Shancha Kernel Workshop
Payload own137 — after full success the chain stops all kernel writes and parks with pause() (measured 0% CPU), removing the post-success page-recycle path that caused kernel panics.
Changes
S6|...|E6120/S4|...|E6122: both processes park with zero CPU after success- UI finishes immediately on success (stage 6/6, badge taken over)
- Post-success retry noise folded into one line
panic_on_warndisabled through Shizuku(shell) + su, with value read-back- Watchdog disabled after success so it cannot kill the parked process
Asset
shancha-ownctl-v5.5-63.apk (1,714,778 B) sha256 53415BBA8563EFAF15D8316D0DAF4066B0CBEA2F9D0A3E73AC4BF20E5F29CC54