# hdshare/wauxiliary_public architecture

> Architecture diagram of the GitHub repository hdshare/wauxiliary_public, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-07-16). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/hdshare/wauxiliary_public
- Repository: https://github.com/hdshare/wauxiliary_public
- Video tour (about a minute): https://gitdiagram.com/hdshare/wauxiliary_public/video

## Overview

#### Purpose and Runtime

WAuxiliary is an Android WeChat auxiliary module, targeting domestic and Play WeChat versions 8.0.44–8.0.65. It is implemented in Kotlin and is intended to run under an Xposed-compatible environment, with LSPosed explicitly acknowledged. Rather than owning a standalone application flow, it injects behavior into WeChat processes through hook classes.

Primary source root: `app/src/main/kotlin/wx/demo/hook`.

#### Entry-Point Model

The supplied tree does not expose an Android manifest, Gradle files, or a central hook-registration class. The apparent executable units are feature-specific Kotlin hook classes beneath `wx.demo.hook`; a missing/omitted bootstrap must discover or register these hooks and attach them to WeChat lifecycle, methods, or UI flows.

The architectural boundary is therefore: module code runs externally to, but inside the process of, the target WeChat app. Hook implementations must tolerate target-version/API changes.

#### Hook Framework and Target Introspection

The project’s core implementation model relies on Xposed-style method interception. README acknowledgements indicate YukiHookAPI, KavaRef, Hikage, and DexKit as likely foundations for hook installation, reflective access, and target-code discovery.

This creates a dependency boundary between stable module feature intent and unstable/private WeChat internals. Each hook class is a localized adaptation point for a target capability.

Representative paths:
- `app/src/main/kotlin/wx/demo/hook/chat/AntiRevoke1Hook.kt`
- `app/src/main/kotlin/wx/demo/hook/misc/ShareCheckHook.kt`

#### Chat Interaction Features

The `chat` package modifies message and media interaction behaviors. Its responsibilities include preventing revocation effects, changing message formatting, suppressing UI/audio behaviors, and automating original-photo actions.

Key components:
- Recall/revocation interception: `app/src/main/kotlin/wx/demo/hook/chat/AntiRevoke1Hook.kt`
- Message display/format alteration: `app/src/main/kotlin/wx/demo/hook/chat/MsgFormatHook.kt`
- Media automation: `app/src/main/kotlin/wx/demo/hook/chat/AutoSelectOriginalPhotoHook.kt`, `app/src/main/kotlin/wx/demo/hook/chat/AutoViewOriginalPhotoHook.kt`
- Notification/send-status suppression: `app/src/main/kotlin/wx/demo/hook/chat/DisableRingtonePlayHook.kt`, `app/src/main/kotlin/wx/demo/hook/chat/DisableSendStatusHook.kt`

#### Auxiliary Feature Domains

Feature code is partitioned by affected WeChat domain, keeping independent injections isolated.

- Flutter business UI: `app/src/main/kotlin/wx/demo/hook/flutterbiz/NewBizListHook.kt` modifies a Flutter-backed business/list area.
- Helper behaviors: `app/src/main/kotlin/wx/demo/hook/helper/EmojiGameHook.kt`, `app/src/main/kotlin/wx/demo/hook/helper/LocationHook.kt`, and `app/src/main/kotlin/wx/demo/hook/helper/VoiceLengthHook.kt` affect emoji-game, location, and voice-message flows.
- Miscellaneous platform/UI behavior: `app/src/main/kotlin/wx/demo/hook/misc/AutoLoginWinHook.kt`, `app/src/main/kotlin/wx/demo/hook/misc/MockScanHook.kt`, `app/src/main/kotlin/wx/demo/hook/misc/MultiWebViewHook.kt`.

#### Sensitive and High-Risk Boundary

Potentially sensitive functionality is intentionally isolated in `highrisk`, rather than mixed with ordinary chat/UI hooks. `app/src/main/kotlin/wx/demo/hook/highrisk/SportStepHook.kt` concerns sport-step behavior and should be treated as a separately governed capability due to abuse potential, consistent with the README’s stated removal policy for features widely used illegally.

#### Delivery and External Surfaces

The module is distributed via GitHub releases and an Xposed Modules Repository listing (`me.hd.wauxv`), while Telegram channels/groups are community communication surfaces. GitHub automation is limited in the supplied tree to issue management: `.github/workflows/auto_close_issues.yml`. No backend service, database, or web runtime is evidenced; all core behavior is client-side, in-process Android instrumentation.

Main entry points: [`app/src/main/kotlin/wx/demo/hook/chat/AntiRevoke1Hook.kt`](https://github.com/hdshare/wauxiliary_public/blob/wauxv-open-source/app/src/main/kotlin/wx/demo/hook/chat/AntiRevoke1Hook.kt) (Anti-revoke), [`app/src/main/kotlin/wx/demo/hook/chat/MsgFormatHook.kt`](https://github.com/hdshare/wauxiliary_public/blob/wauxv-open-source/app/src/main/kotlin/wx/demo/hook/chat/MsgFormatHook.kt) (Message formatting), [`app/src/main/kotlin/wx/demo/hook/chat/AutoSelectOriginalPhotoHook.kt`](https://github.com/hdshare/wauxiliary_public/blob/wauxv-open-source/app/src/main/kotlin/wx/demo/hook/chat/AutoSelectOriginalPhotoHook.kt) (Original-photo automation), [`app/src/main/kotlin/wx/demo/hook/chat/DisableRingtonePlayHook.kt`](https://github.com/hdshare/wauxiliary_public/blob/wauxv-open-source/app/src/main/kotlin/wx/demo/hook/chat/DisableRingtonePlayHook.kt) (Chat suppression)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_module["WAuxiliary module"]
  node_bootstrap{{"Omitted hook bootstrap<br/>registration"}}
  node_hook_framework{{"Xposed hook framework<br/>runtime API"}}
  node_introspection["Target introspection<br/>reflection and dex discovery"]
end

subgraph group_chat["Chat hooks"]
  node_anti_revoke["Anti-revoke<br/>chat hook<br/>[AntiRevoke1Hook.kt]"]
  node_message_format["Message formatting<br/>chat hook<br/>[MsgFormatHook.kt]"]
  node_photo_automation["Original-photo automation<br/>chat hooks"]
  node_chat_suppression["Chat suppression<br/>chat hooks"]
end

subgraph group_other["Other feature hooks"]
  node_flutter_biz["Flutter business list<br/>Flutter UI hook<br/>[NewBizListHook.kt]"]
  node_helper_hooks["Helper flows<br/>helper hooks<br/>[EmojiGameHook.kt]"]
  node_misc_hooks["Misc UI and platform<br/>misc hooks"]
  node_share_check["Share checks<br/>misc hook<br/>[ShareCheckHook.kt]"]
  node_sport_step{{"Sport-step capability<br/>high-risk hook<br/>[SportStepHook.kt]"}}
end

subgraph group_external["External surfaces"]
  node_wechat["WeChat target process<br/>Android target app"]
  node_issue_automation["Issue automation<br/>GitHub workflow"]
  node_release_channels["Module distribution<br/>release listings"]
  node_community["Community channels<br/>communication"]
end

node_bootstrap -->|"uses"| node_hook_framework
node_bootstrap -->|"registers"| node_anti_revoke
node_bootstrap -->|"registers"| node_message_format
node_bootstrap -->|"registers"| node_photo_automation
node_bootstrap -->|"registers"| node_chat_suppression
node_bootstrap -->|"registers"| node_flutter_biz
node_bootstrap -->|"registers"| node_helper_hooks
node_bootstrap -->|"registers"| node_misc_hooks
node_bootstrap -->|"registers"| node_share_check
node_bootstrap -->|"registers"| node_sport_step
node_hook_framework -->|"injects into"| node_wechat
node_introspection -.->|"discovers private APIs"| node_wechat
node_anti_revoke -->|"installs interception"| node_hook_framework
node_message_format -->|"installs interception"| node_hook_framework
node_photo_automation -->|"installs interception"| node_hook_framework
node_chat_suppression -->|"installs interception"| node_hook_framework
node_flutter_biz -->|"installs interception"| node_hook_framework
node_helper_hooks -->|"installs interception"| node_hook_framework
node_misc_hooks -->|"installs interception"| node_hook_framework
node_share_check -->|"installs interception"| node_hook_framework
node_sport_step -->|"installs interception"| node_hook_framework
node_release_channels -.->|"distributes module"| node_bootstrap
node_community -.->|"communicates releases"| node_release_channels
node_issue_automation -.->|"maintains repository"| node_release_channels

click node_anti_revoke "https://github.com/hdshare/wauxiliary_public/blob/wauxv-open-source/app/src/main/kotlin/wx/demo/hook/chat/AntiRevoke1Hook.kt"
click node_message_format "https://github.com/hdshare/wauxiliary_public/blob/wauxv-open-source/app/src/main/kotlin/wx/demo/hook/chat/MsgFormatHook.kt"
click node_photo_automation "https://github.com/hdshare/wauxiliary_public/blob/wauxv-open-source/app/src/main/kotlin/wx/demo/hook/chat/AutoSelectOriginalPhotoHook.kt"
click node_chat_suppression "https://github.com/hdshare/wauxiliary_public/blob/wauxv-open-source/app/src/main/kotlin/wx/demo/hook/chat/DisableRingtonePlayHook.kt"
click node_flutter_biz "https://github.com/hdshare/wauxiliary_public/blob/wauxv-open-source/app/src/main/kotlin/wx/demo/hook/flutterbiz/NewBizListHook.kt"
click node_helper_hooks "https://github.com/hdshare/wauxiliary_public/blob/wauxv-open-source/app/src/main/kotlin/wx/demo/hook/helper/EmojiGameHook.kt"
click node_misc_hooks "https://github.com/hdshare/wauxiliary_public/blob/wauxv-open-source/app/src/main/kotlin/wx/demo/hook/misc/AutoLoginWinHook.kt"
click node_share_check "https://github.com/hdshare/wauxiliary_public/blob/wauxv-open-source/app/src/main/kotlin/wx/demo/hook/misc/ShareCheckHook.kt"
click node_sport_step "https://github.com/hdshare/wauxiliary_public/blob/wauxv-open-source/app/src/main/kotlin/wx/demo/hook/highrisk/SportStepHook.kt"
click node_issue_automation "https://github.com/hdshare/wauxiliary_public/blob/wauxv-open-source/.github/workflows/auto_close_issues.yml"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_bootstrap,node_hook_framework,node_introspection toneBlue
class node_anti_revoke,node_message_format,node_photo_automation,node_chat_suppression toneAmber
class node_flutter_biz,node_helper_hooks,node_misc_hooks,node_share_check,node_sport_step toneMint
class node_wechat,node_issue_automation,node_release_channels,node_community toneRose
```

## Components

### WAuxiliary module

Kotlin hooks injected into target WeChat processes.

- **Omitted hook bootstrap**: registration · An unshown bootstrap discovers or registers feature hooks.
- **Xposed hook framework**: runtime API · Xposed-compatible runtime installs method interceptions.
- **Target introspection**: reflection and dex discovery · Reflection and DexKit-style discovery adapt to private target APIs.

### Chat hooks

Message, media, and chat UX adaptations.

- [Anti-revoke](https://github.com/hdshare/wauxiliary_public/blob/wauxv-open-source/app/src/main/kotlin/wx/demo/hook/chat/AntiRevoke1Hook.kt): chat hook · Intercepts message revocation effects. · `app/src/main/kotlin/wx/demo/hook/chat/AntiRevoke1Hook.kt`
- [Message formatting](https://github.com/hdshare/wauxiliary_public/blob/wauxv-open-source/app/src/main/kotlin/wx/demo/hook/chat/MsgFormatHook.kt): chat hook · Alters message display or formatting. · `app/src/main/kotlin/wx/demo/hook/chat/MsgFormatHook.kt`
- [Original-photo automation](https://github.com/hdshare/wauxiliary_public/blob/wauxv-open-source/app/src/main/kotlin/wx/demo/hook/chat/AutoSelectOriginalPhotoHook.kt): chat hooks · Automates selecting and viewing original photos. · `app/src/main/kotlin/wx/demo/hook/chat/AutoSelectOriginalPhotoHook.kt`
- [Chat suppression](https://github.com/hdshare/wauxiliary_public/blob/wauxv-open-source/app/src/main/kotlin/wx/demo/hook/chat/DisableRingtonePlayHook.kt): chat hooks · Suppresses ringtone playback and send-status behavior. · `app/src/main/kotlin/wx/demo/hook/chat/DisableRingtonePlayHook.kt`

### Other feature hooks

Independent hooks partitioned by affected WeChat area.

- [Flutter business list](https://github.com/hdshare/wauxiliary_public/blob/wauxv-open-source/app/src/main/kotlin/wx/demo/hook/flutterbiz/NewBizListHook.kt): Flutter UI hook · Modifies a Flutter-backed business/list area. · `app/src/main/kotlin/wx/demo/hook/flutterbiz/NewBizListHook.kt`
- [Helper flows](https://github.com/hdshare/wauxiliary_public/blob/wauxv-open-source/app/src/main/kotlin/wx/demo/hook/helper/EmojiGameHook.kt): helper hooks · Adapts emoji-game, location, and voice-message flows. · `app/src/main/kotlin/wx/demo/hook/helper/EmojiGameHook.kt`
- [Misc UI and platform](https://github.com/hdshare/wauxiliary_public/blob/wauxv-open-source/app/src/main/kotlin/wx/demo/hook/misc/AutoLoginWinHook.kt): misc hooks · Covers auto-login, scan mocking, and multi-WebView behavior. · `app/src/main/kotlin/wx/demo/hook/misc/AutoLoginWinHook.kt`
- [Share checks](https://github.com/hdshare/wauxiliary_public/blob/wauxv-open-source/app/src/main/kotlin/wx/demo/hook/misc/ShareCheckHook.kt): misc hook · Adapts sharing-related target behavior. · `app/src/main/kotlin/wx/demo/hook/misc/ShareCheckHook.kt`
- [Sport-step capability](https://github.com/hdshare/wauxiliary_public/blob/wauxv-open-source/app/src/main/kotlin/wx/demo/hook/highrisk/SportStepHook.kt): high-risk hook · Separately governed due to abuse potential. · `app/src/main/kotlin/wx/demo/hook/highrisk/SportStepHook.kt`

### External surfaces

- **WeChat target process**: Android target app · Domestic and Play WeChat 8.0.44–8.0.65 execute injected hooks.
- [Issue automation](https://github.com/hdshare/wauxiliary_public/blob/wauxv-open-source/.github/workflows/auto_close_issues.yml): GitHub workflow · Automates issue closure. · `.github/workflows/auto_close_issues.yml`
- **Module distribution**: release listings · Published through GitHub releases and Xposed Modules Repository.
- **Community channels**: communication · Telegram channels and groups provide community communication.

## Connections

- Omitted hook bootstrap → Xposed hook framework: uses
- Omitted hook bootstrap → Anti-revoke: registers
- Omitted hook bootstrap → Message formatting: registers
- Omitted hook bootstrap → Original-photo automation: registers
- Omitted hook bootstrap → Chat suppression: registers
- Omitted hook bootstrap → Flutter business list: registers
- Omitted hook bootstrap → Helper flows: registers
- Omitted hook bootstrap → Misc UI and platform: registers
- Omitted hook bootstrap → Share checks: registers
- Omitted hook bootstrap → Sport-step capability: registers
- Xposed hook framework → WeChat target process: injects into
- Target introspection → WeChat target process: discovers private APIs
- Anti-revoke → Xposed hook framework: installs interception
- Message formatting → Xposed hook framework: installs interception
- Original-photo automation → Xposed hook framework: installs interception
- Chat suppression → Xposed hook framework: installs interception
- Flutter business list → Xposed hook framework: installs interception
- Helper flows → Xposed hook framework: installs interception
- Misc UI and platform → Xposed hook framework: installs interception
- Share checks → Xposed hook framework: installs interception
- Sport-step capability → Xposed hook framework: installs interception
- Module distribution → Omitted hook bootstrap: distributes module
- Community channels → Module distribution: communicates releases
- Issue automation → Module distribution: maintains repository
