Skip to content

Look inside an Android app with your coding agent

How builders used REA to find a hidden screen, talk to a device directly and rebuild a whole app from its APK. Steps, adb commands, safety notes and prompts.

Updated Nov 4, 2026

An APK is a zip file with the app's code, its manifest and its resources inside. That makes Android one of the easiest places to start: your agent can read almost everything the app can do before you ever run it. These builds show what people did with that.

Before you start

  • Pick an app you are allowed to study: open-source apps, your own apps, or apps for devices you own. Do not use this to get around payments, licences or account limits.
  • Use a test device or emulator, and a test account if the app logs in.
  • Ask your agent to keep notes in a file, so the next session can carry on.

Get the APK

Open-source apps are on F-Droid or GitHub. For an app already on your phone, turn on USB debugging and pull it with adb. Many Play Store apps are split into several APKs; pull all of them.

Terminal
adb shell pm list packages | grep <name>
adb shell pm path <package>
adb pull <path from the line above> base.apk

The steps

  1. Read the manifest first. It lists every screen (activity), background service, permission and deep link. The Watch eSIM build started here: the screen it needed existed, but the normal UI never opened it.
  2. Pick one feature and find where it starts: a button label in the resources, a deep link, or a network call you can see.
  3. Follow it through the code. If names look like a.b.c, the app is obfuscated: start from strings, URLs and Android API calls, which keep their names.
  4. Check the code against what happens at runtime: watch the network traffic while you use the feature. The Smart AC build compared the APK with real payloads before writing a client.
  5. Write down what you confirmed and what you inferred. The Acode rebuild ships an analysis report and an evidence bundle for exactly this reason.
  6. Build the smallest thing that proves it: one adb command, one API call, one screen.
Prompt
Use REA on the <app> APK. Find how <feature> works: the activities, services and network calls involved. Show the decompiled code for each step and list anything you could not confirm.

Hybrid apps hide their logic elsewhere. Cordova and Ionic apps keep it in JavaScript under assets/www, and React Native apps in a JavaScript bundle. Point your agent there before reading the Java code.

Other tools for APKs

REA is not the only way to give an agent an APK. These open-source tools are listed in the directory too.

More prompts

The prompt library has Android prompts for documenting an app's API, working through an obfuscated APK, finding hidden screens and deep links, and recovering how an app controls a device on your network.