Introducing a new way to review your PRs.

Read the announcement

slickdaddyy / gamehub-oss

privacy oriented gamehub

View on GitHub

13 documents · Updated Nov 19, 2026

overview

Knowledge Base updated: 2026-11-19

Knowledge Base Index

1. Orientation

This repository is a reverse-engineered GameHub Android APK workspace focused on auditing, patching, and slimming a decompiled app. The highest-level flow is: inspect decompiled APK artifacts, apply targeted .diff patches, and preserve the patched lightweight APK resources under lite_resources/.

Main parts:

  • Patch pipeline — top-level scripts, rule lists, reports, and patches/*.diff describe how changes are applied and why.
  • APK resource shell — lite_resources/res/** plus manifest/resource diffs define the app UI assets, values, layouts, media, and network/security metadata.
  • App startup and shared services — app/splash, locale, HTTP/user/common UI helpers, payment/share touchpoints, and operation utilities.
  • Landscape launcher — the main launcher shell, onboarding flow, game detail/media views, settings/account screens, and related dialogs.
  • Input/device features — key mapping, PC/NVIDIA streaming, virtual controller integration, OTA/firmware/device dialogs, and Windows/Wine emulation.
  • Third-party SDK hardening — patches for bundled SDKs and libraries such as push, analytics, crash, SSO, media, AndroidX, and identifier providers.

Critical state is stored as repository artifacts rather than live services:

  • patches/*.diff holds the intended code/resource modifications.
  • lite_resources/** holds the lightweight decompiled APK resource subset and surviving smali snippets.
  • Top-level analysis and rule files document removal/security/API rationale used by the patching workflow.

2. Architecture diagrams

flowchart TD
  subgraph Repo[gamehub-oss]
    Scripts[autopatcher.sh\nconversion_rules.txt\nfiles_to_remove.txt]
    Reports[Security/API/Bloat reports]
    Patches[patches/*.diff]
    Lite[lite_resources/**]
  end

  subgraph APK[Patched GameHub APK surface]
    Manifest[Manifest + apktool metadata]
    Resources[res layouts/values/assets]
    Startup[App startup + splash]
    Common[Common services + user]
    Launcher[Landscape launcher]
    Mapping[Input mapping]
    Device[Streaming/OTA/device]
    WinEmu[Windows/Wine emulation]
    SDKs[Third-party SDKs]
  end

  Reports --> Scripts
  Scripts --> Patches
  Patches --> Manifest
  Patches --> Resources
  Patches --> Startup
  Patches --> Common
  Patches --> Launcher
  Patches --> Mapping
  Patches --> Device
  Patches --> WinEmu
  Patches --> SDKs
  Resources --> Lite
  Startup --> Launcher
  Common --> Launcher
  Launcher --> Mapping
  Launcher --> Device
  Launcher --> WinEmu
flowchart LR
  Rules[conversion_rules.txt\nfiles_to_remove.txt] --> Auto[autopatcher.sh]
  Analysis[Analysis reports] --> Auto
  Auto --> PatchSet[patches/*.diff]
  PatchSet --> Decompiled[APK files/resources]
  Decompiled --> Lite[lite_resources/**]
flowchart TD
  App[App / Splash] --> Locale[Locale + base config]
  App --> Router[Launcher router]
  Router --> Guide[Onboarding guide]
  Router --> Main[Launcher main]
  Main --> Game[Game detail + media]
  Main --> Settings[Settings/account/share]
  Main --> Mapping[Input mapping]
  Main --> Device[Streaming + OTA]
  Main --> WinEmu[Wine/WinEmu]

3. Glossary

  • GameHub — the Android product represented by the decompiled APK and patch set.
  • Landscape launcher / llauncher — the TV/landscape-oriented launcher UI package and its prefixed layouts.
  • WinEmu / Wine — Windows game/emulation feature surfaces, dialogs, and environment configuration.
  • PC stream / NvStream — PC/NVIDIA streaming integration and related network/device checks.
  • Mapping — key/touch/gamepad input remapping subsystem for controller overlays and HID modes.

4. Codebase-wide invariants

  • Patch ownership is encoded by filename: APK paths are flattened into double-underscore diff names under patches/, e.g. patches/smali_classes5__com__xj__mapping__utils__ConfigUtil.smali.diff and patches/res__layout__llauncher_activity_new_launcher_main.xml.diff.
  • The lightweight checked-in APK subset lives under lite_resources/, with resource assets in lite_resources/res/** and remaining smali snippets in numbered dex folders such as lite_resources/smali_classes4/**, lite_resources/smali_classes5/**, and lite_resources/smali_classes10/**.
  • Launcher layout resources use the llauncher_ prefix, evidenced by paths such as patches/res__layout__llauncher_activity_new_launcher_main.xml.diff and patches/res__layout__llauncher_dialog_fragment_button_mapping.xml.diff.
  • Decompiled app-feature patches are grouped by original dex shard in the patch filename, such as smali_classes4__... for core/common app surfaces and smali_classes5__... for launcher, mapping, OTA, and WinEmu feature surfaces.

5. Routing table