Skip to content

About

Reproducible unrooted ARM64 NDK-translated Android reverse-engineering lab with transparent API capture

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Android Reverse-Engineering Lab

Reproducible, disposable Android reverse-engineering lab for ARM-only APKs on an x86_64 host.

The tested profile combines:

  • Android 11 / API 30 x86_64 AVD
  • stock Android ramdisk and no Magisk in the final run
  • ARM/ARM64 native bridge through ndk_translation
  • 14 GB writable userdata for large Unity games
  • Unity -force-gles launch override
  • transparent TLS and WebSocket capture with a local lab CA
  • validated screenshots with sidecar metadata
  • optional two-account presence simulation for friend/API testing
  • complete teardown, leaving no AVD in the repository

The detailed build procedure is in RECIPE.md.

Contents

RECIPE.md                         Full clean-room build and teardown
compose/docker-compose.unrooted.yml
scripts/capture-android-ui.sh      Safe screenshot capture + metadata
scripts/frida-docker-bridge.py     Host-to-container Frida relay
scripts/extract_mitm_flows.py      Redact mitmproxy captures to JSONL
skill/                             Android RE Codex skill
docs/environment.md                Environment-specific operating notes
cases/counterflame/                Sanitized case reports

Quick Start

Clone this repository as the lab root:

git clone https://github.com/coffeegrind123/android-reverse-engineering-lab.git \
  "$HOME/android-reverse-engineering"

export LAB_ROOT="$HOME/android-reverse-engineering"
export CODEX_HOME="${CODEX_HOME:-$HOME/.codex}"

Then follow RECIPE.md. The recipe clones the upstream ASC and dockerify-android dependencies, builds the emulator, installs the ARM translation layer, resizes userdata, installs the APK, and configures capture.

Operating Model

The AVD is disposable. Do not commit:

  • APKs or split APK bundles
  • AVD images, qcow2 overlays, or /data
  • raw proxy captures
  • screenshots containing player or account data
  • JWTs, refresh tokens, Photon tickets, passwords, or encrypted auth blobs
  • local absolute paths or test-account identifiers

Keep the recipe, scripts, sanitized schemas, and reports. Rebuild when needed.

Tested Constraints

  • -gpu host may still select Mesa llvmpipe; CUDA availability does not prove Android graphics acceleration.
  • Unity's Vulkan path may present a black surface. GLES is the working path in this recipe.
  • Direct Frida attach can fail for NDK-translated processes.
  • Android's global HTTP proxy can trigger anti-analysis behavior in protected apps; transparent redirection is preferred.

Case Study

See cases/counterflame/README.md for the sanitized CounterFlame 1.3.0.1 analysis, including authentication, Photon matchmaking, marketplace, inventory, profile, social, and friend workflows.

This repository intentionally contains no original game binary, raw traffic, or screenshots.

About

Reproducible unrooted ARM64 NDK-translated Android reverse-engineering lab with transparent API capture

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages