# Edit an APK and rebuild it into a signed app

> Markdown version of https://stella.sh/how/reverse-engineering/edit-apk for agents and LLMs.
> Want to change an Android app? Stella (stella.sh) edits the APK, rebuilds it and gives you one you can install on your phone.

Tell Stella (stella.sh) what to change in the app, like its name, icon or text. It rebuilds the APK so you can install it.

## What you get

- The change you asked for
- An app ready to install
- The original left as it was

## Ask Stella

> Rename this app to “FX Watch” and give me a version I can install on my phone.

## An example chat

**You:** Rename this app to “FX Watch” and give me a version I can install on my phone.

**Stella:** On it. Renaming the app now.

*Stella works on: Making FX Watch*
- Unpacking the app
- Changing the name under the icon
- Rebuilding and signing it

**Stella:** Done. **FX-Watch-1.58.apk** is in your Downloads. Uninstall the original app from your phone first, then open this one. Keep the key file beside it, since updates need it.
Files: FX-Watch-1.58.apk

Works on Windows, Mac, Linux.

## Questions

**What can I change?**
The name, pictures, colours, wording and how things work. Just describe it.

**How do I install it?**
Send it to your phone and open it.

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

## By hand

1. Unpack the app with [apktool](https://apktool.org/): apktool d app.apk.
2. For a new name, change app_name in res/values/strings.xml, then rebuild with apktool b yourfolder -o new.apk.
3. Sign it with your own key using apksigner, and uninstall the original from your phone before installing yours.

## Related

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

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