A while back, I wrote a guide on running Gemma 4 locally on an Android phone using Termux and Ollama. It got some traction. People asked for the code.

There wasn't much code to share—just a setup script and documentation. But I realized that's still worth putting in one place.

So I did.

What's in the Repo

github.com/Dexter2344/gemma4-phone-setup