How vekendian/nexus works
Nexus is an offline patcher that re-skins and rebrands an apktool-decoded GameGuardian tree without changing the input. The main workflow is CLI request → input validation and preflight → ID resolution and template generation → patch a copy → postflight. Its product capabilities include home/navbar and ENVIRONMENT UI, a power card, module picker and persistence, settings/dialog/keyboard styling, and app rebranding. Edges reflect README statements or sampled imports/calls; unsampled relationships are omitted rather than inferred.
Main entry points: cli.py Command dispatch · checks.py Preflight and postflight · smali.py Smali templates · tree.py Tree clone and I/O
Components 14
CLI and checks
- Command dispatch
nexus/cli.py - Preflight and postflight
nexus/checks.py
Patch generation
- Exact anchor engine
nexus/anchors.py - ID resolver and lock
nexus/ids.py - Smali templates
nexus/smali.py
Target and identity
- Tree clone and I/O
nexus/tree.py - Rebrand transform
nexus/manifest.py
Nexus interface
- Module runtime
nexus/modules.py - Screen layouts
nexus/layout.py - UI resources
resources/res
Other components
- Patcher user
- Decoded GG tree
- Patched tree copy
- Nexus ID lock
nexus_ids.json
Connections 27
- Patcher user → Command dispatch: runs command
README.md - Command dispatch → Preflight and postflight: runs checks
nexus/cli.py - Command dispatch → ID resolver and lock: loads IDs
nexus/cli.py - Command dispatch → Tree clone and I/O: resolves and clones
nexus/cli.py - Command dispatch → Smali templates: applies patch
nexus/cli.py - Command dispatch → Rebrand transform: rebrands tree
nexus/cli.py - Command dispatch → Screen layouts: transforms layouts
nexus/cli.py - Preflight and postflight → Exact anchor engine: checks anchors
nexus/checks.py - Preflight and postflight → ID resolver and lock: audits bindings
nexus/checks.py - Preflight and postflight → Tree clone and I/O: reads tree
nexus/checks.py - ID resolver and lock → Nexus ID lock: loads lock
nexus/ids.py - Smali templates → Exact anchor engine: replaces anchors
nexus/smali.py - Smali templates → Module runtime: embeds methods
nexus/smali.py - Screen layouts → Exact anchor engine: replaces blocks
nexus/layout.py - Rebrand transform → Exact anchor engine: replaces identity
nexus/manifest.py - Rebrand transform → Tree clone and I/O: reads and writes
nexus/manifest.py - Command dispatch → Decoded GG tree: accepts source
README.md - Tree clone and I/O → Decoded GG tree: reads source
README.md - Tree clone and I/O → Patched tree copy: writes clone
README.md - Smali templates → Patched tree copy: patches smali
- Screen layouts → Patched tree copy: patches layouts
- Rebrand transform → Patched tree copy: rebrands copy
- UI resources → Patched tree copy: supplies assets
README.md - Screen layouts → UI resources: references assets
README.md - Smali templates → ID resolver and lock: renders IDs
nexus/cli.py - Module runtime → Patched tree copy: injects picker
nexus/modules.py - Preflight and postflight → Patched tree copy: verifies output