How to mine Monero on an Android Phone – a step by step guide on how to mine XMR cryptocurrency on a cellphone or tablet running Google Android.
Termux is a Linux command line emulator for Android that is available on the Google Play store. Using Termux, it’s possible to mine XMR cryptocurrency on an Android cellphone or tablet running Android version 7 or later.
- Install Termux from the Google Play Store
- Run Termux
Update the packages by typing the command below into Termux.
apt update && apt upgrade
Install the git, build-essential, and cmake packages.
pkg install git build-essential cmake -y
Install the xmrig package from github.
git clone https://github.com/xmrig/xmrig.git
Run apt upgrade again to upgrade packages to latest version.
Change to the xmrig folder
Create a new folder called “build”
Change to the build folder you just created.
cmake .. -DWITH_HWLOC=OFF
Once the build process has completed, you should see the message “Built target xmrig”. Now you’re ready to run xmrig and begin mining, but first you’ll need to decide on a pool. A list of XMR pools can be found at this page.
Once you’ve decided on a pool, you can start mining using the command below (replacing “pool_address” and “wallet_address” with the address of your chosen xmr pool and your own xmr wallet address)
./xmrig -o pool_address -a randomx -u wallet_address -p x