# Decompile an APK to read its code

> Markdown version of https://stella.sh/how/reverse-engineering/decompile-apk for agents and LLMs.
> Curious what an Android app does? Stella (stella.sh) opens the APK, shows you its code and lists what it can access and who it contacts.

Give Stella (stella.sh) an APK and it shows you the app's code, what it's allowed to access and which servers it talks to.

## What you get

- The app's code in a folder
- What it can access on your phone
- Every server it connects to

## Ask Stella

> Open up this Android app and tell me what it can access and who it connects to.

## An example chat

**You:** Open up this Android app and tell me what it can access and who it connects to.

**Stella:** On it. Opening the app up.

*Stella works on: Looking inside Currencies 1.23*
- Turning the app back into code
- Listing what it's allowed to do
- Finding every server it contacts

**Stella:** Done, without installing it. Currencies only asks for internet access. It gets exchange rates from six servers, including the European Commission and the Bank of Canada. The code is in a folder in Downloads.

Works on Windows, Mac, Linux.

## Questions

**Do I need an Android phone?**
No. It all happens on your computer.

**Can Stella change the app too?**
Yes. See [edit an APK](https://stella.sh/how/reverse-engineering/edit-apk).

**Is Stella free?**
Yes. Free with the ChatGPT or Claude plan you already have.

## By hand

1. Download jadx from [its releases](https://github.com/skylot/jadx/releases) and open the APK in jadx-gui.
2. Open AndroidManifest.xml under Resources: each uses-permission line is something the app asks for.
3. Search the code for http to find its servers. jadx -d out app.apk saves everything to a folder.

## Related

- [Edit an APK and rebuild it into a signed app](https://stella.sh/how/reverse-engineering/edit-apk.md)
- [mitmproxy: intercept an app's HTTPS traffic and read every request](https://stella.sh/how/reverse-engineering/inspect-app-traffic-with-mitmproxy.md)
- [Decompile a JAR file back to Java source code](https://stella.sh/how/reverse-engineering/decompile-jar-file.md)

Get Stella: https://stella.sh/download. Free with the ChatGPT or Claude plan you already have.
