Knowledge Base · general

Android & Flutter Reverse Engineering

generaltechnique notetechniqueandroid-reverse-engineering

Recovering logic and secrets from APKs, including Dart AOT Flutter apps and integrity checks.

How it works

  • Decompile Java/Kotlin with jadx/apktool; Flutter logic lives in libapp.so (AOT) and is much harder.
  • Integrity/root checks are usually exposed to Dart through a MethodChannel in the Java layer.
  • Dynamic hooks with Frida (Java.perform, method overrides) confirm what the check reads and bypass it; hook before overriding to log real values.
  • Extract app-private data on a rooted emulator/run-as device.

Detection & defence

  • Server-side enforcement of integrity; never trust a client boolean.
  • Detect Frida/root and, more importantly, keep real secrets off the device.