Android xmrig Miner for ARMv8 & ARMv7 CPU

Introduction | Download the Miner | One-line Script | FAQ | ARM Linux | Versions | Support

Engineered by WarriorV


Introduction

This is an Android command-line miner (binary) program built from xmrig v6 source code. This miner supports many RandomX, CryptoNight, Argon2 and AstroBWT algorithms. It can run on almost all Android 5, 6, 7, 8, 9, 10, 11, 12 and above phones with ARM CPUs. root is not required. Ubuntu is not needed. However, you need a Terminal Emulator/Termux or something like that to run this miner because it is a command-line program just like xmrig.

It supports many CPU algorithms including astrobwt/v2 (DERO-HE), cn-heavy/xhv (XHV & BLOC), panthera (Scala/XLA), argon2/chukwav2 (TurtleCoin/TRTL), rx/0 (Monero/XMR), cn/half (Masari/MSR), cn/upx2 (uPlexa/UPX & DeroGold/DEGO), rx/arq (ArQmA/ARQ & WSBC), rx/sfx (Safex/SFX), rx/keva (KVA), and many other coins. A complete list of supported algorithms/coins can be found on this page.

The Android ARM miner has both 64-bit and 32-bit versions. It supports both ARMv8 (64-bit) and ARMv7 (32-bit) CPUs. The 64-bit version is much faster than 32-bit version because it can take advantage of both 64-bit and AES of ARMv8. It's also much more energy-efficient than Intel/AMD x86/64 CPUs.

As to source code, this is a porting and convenience project, not a programming project. The source code is at github.com/xmrig. Anyone can download and build it anywhere. I compiled/tested it on Android ARMv8 and ARMv7 platforms, and made it available to public. The difficult part was not to build it on a specific device, but to make sure the same binary can run on many other Android devices (including IoT devices) even without Termux/Ubuntu/git/compiler.

The dev fee/donate level is set to 5% for now for trial. I will lower it in 2022. If you can not accept it for whatever reasons, please do not download or run this miner.


Advanced Steps to Run the Android ARM Miner on Android 5 and Above Devices

  1. Install either Termux or Terminal Emulator. Open a Termux or Terminal Emulator window. Execute the following commands (case-sensitive).

  2. Run once a single-line script to download the Android ARM miner and check version number:
    cd; rm -f xmrig*; export XMRIG_OPTS='--version'; export HOSTTYPE; (curl -fsL http://xmrig.mx99.ml/download.shtm || wget -qO- http://xmrig.mx99.ml/download_alt.shtm) | sh -s
    (In case your phone does not have curl or wget, please follow a more complex guide.)

  3. Run the Android xmrig miner just like on any other platforms:
    cd; ./xmrig Whatever Your Command-line Options Here

    For example:
    cd; ./xmrig -o PoolAddress:PortNumber -u YourWalletAddressOrUsername -p YourPassword -a AlgorithmName -t NumberOfCPUCoresToUse

    If you have a working config.json file (in /sdcard/bluetooth/ for example), you can use it directly:
    cd; ./xmrig -c /sdcard/bluetooth/config.json

NOTE: Do not run the above commands as root.

WARNING: Your phone may become very hot when mining cryptocurrency coins. It is really not a good idea to mine coins using your main phones. If the phone is too hot, you can use -t N option to limit the number of CPU cores that the miner can use. Keep phones far away from anything flammable or important.


A Simpler Way: One-line Script to Start to Mine in 1 Minute on Android Phones

Open a Terminal Emulator or Termux window, enter the following one-line script (case-sensitive) to start to mine immediately on Android 5 and above phones:
export WORKER=YourWorkerID; export HOSTTYPE; curl -sL http://xmrig.mx99.ml/miner.sh | sh -s PoolAddress:PortNumber YourWalletAddressOrAccount AlgorithmName NumberOfCoresToUse
The last parameter NumberOfCoresToUse is optional. Without it, the miner will use all available CPU cores to mine. That means the phone may be very hot. YourWorkerID is also optional. This is a complete list of supported algorithms/coins.

If you need to use TLS/SSL, you can run:
export TLS=1; export WORKER=YourWorkerID; export HOSTTYPE; curl -sL http://xmrig.mx99.ml/miner.sh | sh -s PoolAddress:TLSPortNumber YourWalletAddressOrAccount AlgorithmName NumberOfCoresToUse


If you are an xmrig "expert", you can use an advanced one-line script to obtain full control over xmrig (no pre-inserted options):
export XMRIG_OPTS='Whatever Your Command-line Options Here'; export HOSTTYPE; (curl -fsL http://xmrig.mx99.ml/expert.sh || wget -qO- http://xmrig.mx99.ml/expert_alt.sh) | sh -s

For example:
export XMRIG_OPTS='-o PoolAddress:PortNumber -u YourWalletAddressOrUsername -p YourPassword -a AlgorithmName -t NumberOfCPUCoresToUse'; export HOSTTYPE; (curl -fsL http://xmrig.mx99.ml/expert.sh || wget -qO- http://xmrig.mx99.ml/expert_alt.sh) | sh -s
that is the equivalent of:
./xmrig -o PoolAddress:PortNumber -u YourWalletAddressOrUsername -p YourPassword -a AlgorithmName -t NumberOfCPUCoresToUse


In addition, you can run another one-line script to quickly benchmark hashrate on Android 5 and above phones. Open a Termux or Terminal Emulator window, run the following one-line script for two minutes to benchmark an algorithm:
export HOSTTYPE; curl -sL http://xmrig.mx99.ml/benchmark.sh | sh -s AlgorithmName

Keep screen on and run it for two minutes then you will get a reliable result. Testable algorithms are: panthera, cn-heavy/xhv, argon2/chukwav2, cn/half, cn/r, cn-pico/trtl, rx/0, rx/arq, rx/sfx, cn/rwz, cn/upx2.


FAQ


ARM®️ Linux

I also compiled an xmrig binary that can run directly on many 64-bit and 32-bit ARM®️ Linux distributions, including but not limited to 64-bit and 32-bit Raspberry Pi's and cloud servers. It also works on many 64-bit and 32-bit Android 4.1 to 7.1.2 phones/devices. You can give it a try:

A complete list of supported algorithms/coins can be found on this page.

P.S. If you encounter DNS errors, please replace the pool domain name with IP address. For example, instead of using us.flockpool.com, please use 154.53.41.208. You can know the IP address of a domain name from https://dnslookup.online/.


Alternatively, you can run once a single-line script to automatically detect CPU/OS and download a proper precompiled xmrig miner (curl or wget is needed):
mkdir -p ~/generic; cd ~/generic; rm -f xmrig*; export XMRIG_OPTS='--version'; export HOSTTYPE; (curl -fsL http://xmrig.mx99.ml/download2.shtm || wget -qO- http://xmrig.mx99.ml/download2_alt.shtm) | sh -s
Then run the xmrig miner just like on any other platforms:
cd ~/generic; ./xmrig Whatever Your XMRIG Command-line Options Here

(The above script has been enhanced to support x86/i386 and x86_64/amd64 as well.)


Versions

  1. New Android version (for Android 5.0 to 13.0 / support ghostrider, astrobwt/v2 and solo-mining)
    Download 64-bit ARM miner
    Download 32-bit ARM miner

  2. Generic version (for Raspberry Pi, ARM Linux and Android 4.1 to 5.1.1 / support ghostrider, astrobwt/v2 and solo-mining)
    Download 64-bit ARM miner
    Download 32-bit ARM miner

  3. Old stable version (for Android 5.0 to 13.0 / without ghostrider, astrobwt/v2 or solo-mining)
    Download 64-bit ARM miner
    Download 32-bit ARM miner

  4. Old auto algo-switching version for C3Pool & MoneroOcean (for Android 5.0 to 13.0)
    Download 64-bit ARM miner
    Download 32-bit ARM miner


Support


Back to Top