From d9fcf45380e948f06d51856a657441cade076f1b Mon Sep 17 00:00:00 2001 From: yibo Date: Wed, 8 Jul 2026 00:38:53 +0800 Subject: [PATCH] docs: 平板登录修复交接给 Hermes 的指引接入 code/LESSONS --- wechat_pad_login/LESSONS.md | 8 ++++++++ xhs_lsposed_a16_fix/backups/WeChatHook_20260708_pad-login-device-spoof.java | 3 +++ xhs_lsposed_a16_fix/wechathook_src/WeChatHook.java | 3 +++ 3 files changed, 14 insertions(+), 0 deletions(-) diff --git a/wechat_pad_login/LESSONS.md b/wechat_pad_login/LESSONS.md index 8765d57..e4cf41f 100644 --- a/wechat_pad_login/LESSONS.md +++ b/wechat_pad_login/LESSONS.md @@ -33,6 +33,14 @@ 回退单设备登录:`DEVICE_SPOOF=false` + 注释上面 4 个调用。伪装型号常开对已登录账号无害 (旧记录担心的「伪装重触发体验资格 gate 踢登录」也随本结论作废)。 +### Hermes 修复交接 +平板登录以后坏了,让 Pixel 上的 Hermes 先响应:skill **`wechat-pad-login-repair`** +(本目录 `HERMES_REPAIR_SKILL.md`,已装到设备 `~/.hermes/skills/`)。它做**诊断**(grep +LSPosed log 看 `Injected/hookDeviceSpoof/N VISIBLE`、`dumpsys` 看是否在 LoginPasswordUI) ++ **no-rebuild 修复**(模块没注入→重启+`pm install-existing com.tencent.mm`;不在登录页→ +导航到 LoginPasswordUI)。**Case B**(微信更新后混淆名变 / 需改源码重编译)Hermes 修不了, +它会收集证据(微信版本+日志+截图)升级给人/Claude,配方就是本文件这套 4-hook + Tinker CL。 + --- ## 一、微信内部架构(逆向所得) diff --git a/xhs_lsposed_a16_fix/backups/WeChatHook_20260708_pad-login-device-spoof.java b/xhs_lsposed_a16_fix/backups/WeChatHook_20260708_pad-login-device-spoof.java index 20ac41a..56da67b 100644 --- a/xhs_lsposed_a16_fix/backups/WeChatHook_20260708_pad-login-device-spoof.java +++ b/xhs_lsposed_a16_fix/backups/WeChatHook_20260708_pad-login-device-spoof.java @@ -97,6 +97,9 @@ public class WeChatHook implements IXposedHookLoadPackage { // 3) hookLoginHistoryUIInitView/hookLoginUIInitView → force the "以平板登录" // button (field N) VISIBLE on LoginPasswordUI/LoginHistoryUI.onCreate + m4 click. // To revert to plain single-device login: DEVICE_SPOOF=false + comment these 4. + // When pad login breaks later, Hermes first-responds via the on-device skill + // wechat-pad-login-repair (diagnose logs/screen → no-rebuild fixes → escalate + // Case B). Recipe: wechat_pad_login/LESSONS.md + HERMES_REPAIR_SKILL.md. hookDeviceSpoof(cl, lpparam.processName); hookInTabletEnv(cl); hookLoginHistoryUIInitView(cl); diff --git a/xhs_lsposed_a16_fix/wechathook_src/WeChatHook.java b/xhs_lsposed_a16_fix/wechathook_src/WeChatHook.java index 20ac41a..56da67b 100644 --- a/xhs_lsposed_a16_fix/wechathook_src/WeChatHook.java +++ b/xhs_lsposed_a16_fix/wechathook_src/WeChatHook.java @@ -97,6 +97,9 @@ public class WeChatHook implements IXposedHookLoadPackage { // 3) hookLoginHistoryUIInitView/hookLoginUIInitView → force the "以平板登录" // button (field N) VISIBLE on LoginPasswordUI/LoginHistoryUI.onCreate + m4 click. // To revert to plain single-device login: DEVICE_SPOOF=false + comment these 4. + // When pad login breaks later, Hermes first-responds via the on-device skill + // wechat-pad-login-repair (diagnose logs/screen → no-rebuild fixes → escalate + // Case B). Recipe: wechat_pad_login/LESSONS.md + HERMES_REPAIR_SKILL.md. hookDeviceSpoof(cl, lpparam.processName); hookInTabletEnv(cl); hookLoginHistoryUIInitView(cl); -- libgit2 0.21.4