PrimoLab Download
GUIDE · TERMUX

Mining on Android with Termux

Most Termux mining guides walk you through installing a toolchain and compiling XMRig — slow, RAM-hungry, and it often fails halfway. Here's the shorter path: one command installs a prebuilt, ARM-native miner and you're hashing Monero or Verus in a couple of minutes. No root, no compiler.

1 · Why this way

Primo ARM Miner is a prebuilt binary you install in one line — no cmake, no compiling. It's a single ~508 KB ARM-native binary with the hot loops written directly in ARM NEON and AArch64 assembly, and it mines four algorithms — Monero (RandomX), Verus (VerusHash), Litecoin+Dogecoin (scrypt), and Bitcoin (SHA256d) — not just one. XMRig is great software; this is simply the faster, more reliable path on a phone in Termux. It's free and open source (GPL-3.0).

2 · Install Termux

Install Termux — a free Linux terminal for Android — from F-Droid or GitHub. Don't use the Google Play build: it's frozen at an old version and its package mirrors no longer update, which breaks the install. No root is required.

3 · Install the miner (one line)

Update Termux's packages, then run the installer:

termux
$ pkg update && pkg upgrade -y
$ curl -fsSL https://primolab.dev/install.sh | sh

The installer detects Termux, downloads the native ARM64 build, verifies its SHA-256, installs the two runtime libraries (libcurl, libjansson) with pkg, and puts primo-arm-miner on your PATH. Prefer to do it by hand? Grab the Termux tarball from the downloads section.

4 · Start mining

Monero (RandomX) — the classic CPU coin

mine monero
$ primo-arm-miner -a randomx -o stratum+tcp://pool.supportxmr.com:3333 \
      -u YOUR_XMR_ADDRESS -p worker1

Verus (VerusHash) — the phone-friendly CPU coin

mine verus
$ primo-arm-miner -a verus -o stratum+tcp://pool.verus.io:9998 \
      -u YOUR_VERUS_ADDRESS.phone1 -p x

Swap in your own wallet address. Within a minute you'll see Accepted lines. Threads, big/LITTLE core pinning and per-core tuning are auto-detected — no flags needed. Stop with Ctrl-C. Other coins: -a scrypt (LTC+DOGE) or -a sha256d (Bitcoin).

5 · Keep it running at full speed

This is the one Termux gotcha worth knowing. Android throttles apps that aren't in the foreground: it parks CPU cores and caps the big cores' clock speed once the screen is off or Termux is backgrounded. A Termux app session isn't in the privileged top-app group, so a backgrounded miner slows down or stalls.

Three ways to handle it, best first:

6 · A note on Monero & RAM

RandomX (Monero) is memory-hard. Primo builds a shared ~2.1 GiB dataset for full-speed fast mode (~700 H/s on a modern phone). If your phone can't spare that much free RAM, the miner automatically falls back to light mode — a 256 MiB cache instead of the dataset — which is about 5× slower (~160 H/s) but works on almost anything.

You can force light mode (e.g. to keep RAM free) by launching with PRIMO_RANDOMX_LIGHT=1 primo-arm-miner -a randomx …. Verus, scrypt and SHA256d have no such memory requirement.

7 · Troubleshooting

8 · What to expect

On a typical modern phone you'll see roughly ~700 H/s on Monero, ~7.5 MH/s on Verus (8 threads), or ~90 MH/s on Bitcoin's SHA256d. Earnings on Monero or Verus are small but real — think cents per day. Bitcoin earns effectively zero (it's a benchmark and a lottery). No hype: a phone is a hobby miner, and that's the fun of it.

Mine Monero → Mine Verus Phone vs ESP32
Termux session on Android mining Verus with accepted shares in green
Termux, mining Verus.
← All install paths Docs →