Commit d9fcf45380e948f06d51856a657441cade076f1b

Authored by yibo
1 parent a51bad48

docs: 平板登录修复交接给 Hermes 的指引接入 code/LESSONS

WeChatHook.java pad-login 注释 + LESSONS.md 加「Hermes 修复交接」段,指向
wechat-pad-login-repair skill(诊断+no-rebuild 修复+Case B 升级)。memory
wechat-pad-login-device-spoof / hermes-pixel-mcp-integration 同步。

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
wechat_pad_login/LESSONS.md
... ... @@ -33,6 +33,14 @@
33 33 回退单设备登录:`DEVICE_SPOOF=false` + 注释上面 4 个调用。伪装型号常开对已登录账号无害
34 34 (旧记录担心的「伪装重触发体验资格 gate 踢登录」也随本结论作废)。
35 35  
  36 +### Hermes 修复交接
  37 +平板登录以后坏了,让 Pixel 上的 Hermes 先响应:skill **`wechat-pad-login-repair`**
  38 +(本目录 `HERMES_REPAIR_SKILL.md`,已装到设备 `~/.hermes/skills/`)。它做**诊断**(grep
  39 +LSPosed log 看 `Injected/hookDeviceSpoof/N VISIBLE`、`dumpsys` 看是否在 LoginPasswordUI)
  40 ++ **no-rebuild 修复**(模块没注入→重启+`pm install-existing com.tencent.mm`;不在登录页→
  41 +导航到 LoginPasswordUI)。**Case B**(微信更新后混淆名变 / 需改源码重编译)Hermes 修不了,
  42 +它会收集证据(微信版本+日志+截图)升级给人/Claude,配方就是本文件这套 4-hook + Tinker CL。
  43 +
36 44 ---
37 45  
38 46 ## 一、微信内部架构(逆向所得)
... ...
xhs_lsposed_a16_fix/backups/WeChatHook_20260708_pad-login-device-spoof.java
... ... @@ -97,6 +97,9 @@ public class WeChatHook implements IXposedHookLoadPackage {
97 97 // 3) hookLoginHistoryUIInitView/hookLoginUIInitView → force the "以平板登录"
98 98 // button (field N) VISIBLE on LoginPasswordUI/LoginHistoryUI.onCreate + m4 click.
99 99 // To revert to plain single-device login: DEVICE_SPOOF=false + comment these 4.
  100 + // When pad login breaks later, Hermes first-responds via the on-device skill
  101 + // wechat-pad-login-repair (diagnose logs/screen → no-rebuild fixes → escalate
  102 + // Case B). Recipe: wechat_pad_login/LESSONS.md + HERMES_REPAIR_SKILL.md.
100 103 hookDeviceSpoof(cl, lpparam.processName);
101 104 hookInTabletEnv(cl);
102 105 hookLoginHistoryUIInitView(cl);
... ...
xhs_lsposed_a16_fix/wechathook_src/WeChatHook.java
... ... @@ -97,6 +97,9 @@ public class WeChatHook implements IXposedHookLoadPackage {
97 97 // 3) hookLoginHistoryUIInitView/hookLoginUIInitView → force the "以平板登录"
98 98 // button (field N) VISIBLE on LoginPasswordUI/LoginHistoryUI.onCreate + m4 click.
99 99 // To revert to plain single-device login: DEVICE_SPOOF=false + comment these 4.
  100 + // When pad login breaks later, Hermes first-responds via the on-device skill
  101 + // wechat-pad-login-repair (diagnose logs/screen → no-rebuild fixes → escalate
  102 + // Case B). Recipe: wechat_pad_login/LESSONS.md + HERMES_REPAIR_SKILL.md.
100 103 hookDeviceSpoof(cl, lpparam.processName);
101 104 hookInTabletEnv(cl);
102 105 hookLoginHistoryUIInitView(cl);
... ...