# Use Gemini for reverse engineering on your computer

> Markdown version of https://stella.sh/ai/gemini-for-reverse-engineering for agents and LLMs.
> Gemini takes programs, apps, games and files apart on your own computer when you run it through Stella (stella.sh). Free with your Google AI plan.

Run Gemini through Stella (stella.sh) and it reverse engineers on your own computer: it decompiles programs and apps, explains what they do, and patches them when you ask. Free with the Claude, Gemini or ChatGPT plan you already have.

## An example chat

You: Decompile this old game's APK and find where it checks for the full version.

Stella: Opening the APK now.

- Turning it back into Java
- Searching for the full-version check
- Found it in one class

Stella: The check is in StoreManager.isUnlocked(): it reads a flag saved after purchase. The readable code is in Downloads/game-source, with that spot marked.

## Better than a browser chat

**Gemini works on the file itself.** A browser chat can't open an APK or an EXE. Through Stella, Gemini gets the real file on your computer, runs the decompiler and reads the code it gets back.

**Why Gemini first here.** Gemini rarely stops at a reverse engineering step, so we mark it first. Claude is right there too: type @ and pick it in the same chat.

**Then change it.** Ask for a patch, a mod or a cleaner build and it makes a new copy next to the original.


## Guides

- https://stella.sh/how/reverse-engineering/decompile-apk
- https://stella.sh/how/reverse-engineering/decompile-exe-to-source-code
- https://stella.sh/how/reverse-engineering/patch-exe-file
- https://stella.sh/how/reverse-engineering/edit-apk
- https://stella.sh/how/reverse-engineering/use-ai-with-ghidra
- https://stella.sh/how/reverse-engineering/reverse-engineer-a-file-format

## Questions

**Can Gemini decompile an APK?**
Yes, through Stella on your computer. It gives you the Java code back and explains it. See [decompile an APK](https://stella.sh/how/reverse-engineering/decompile-apk).

**Which Google plan do I need?**
Google AI Pro or Ultra. Sign in with Google in Stella and Gemini is ready.

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

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