Build xmrig for Android
This process will walk you through the steps needed to install xmrig on an Android phone. It will start with some Hardware specifications and Applications used to create this process. Then, it is followed by a list of links and, finally, a step-by-step process for the installation of each application.
HARDWARE SPECIFICATIONS
This process was completed with the following hardware specifications:
Phone: Samsung S9
Model: SM-G960F
NOTE: The steps outlined in this process are not limited to the above hardware specifications.
APPLICATIONS
The below applications are needed therefore, we will be installing some of them during our process:
Android version 10 (require 7 or higher version)
F-Droid (latest)
Termux (latest)
cpulimiter (latest)
xmrig (latest)
LINKS
F-Droid: https://www.f-droid.org/
DOWNLOAD AND INSTALL F-Droid
NOTE: This part can be skipped if it is already installed.
- On your phone, download F-Droid from https://www.f-droid.org/
- Tap on DOWNLOAD F-DROID button
- You will get a message saying: This type of file can harm your device. Do you want to keep F-Droid.apk anyway?
- Tap OK on the message
- Tap on Open on the message that appears after downloading the apk file.
NOTE: In the event you cannot find it then go to you Apps>My Files>Downloads, you will find it there. Tap on it. - You will get a message saying: Do you want to install the application?
- Tap INSTALL
- Tap Open, now the F-Droid is open and ready
DOWNLOAD AND INSTALL Termux
NOTE: This part can be skipped if it is already installed.
- Open F-Droid
- Tap on the App search button (magnifying glass)
- Type Termux in the search bar
- Tap on the app: Temux Terminal
- Tap INSTALL
- Tap on Settings
NOTE: An Android security message will appear: Install unknown apps - Activate the toggle by tapping on it. Ensure it is active.
- Tap on the left arrow found on the left side of the message: install unknown apps
- Tab Install
- Tab OPEN, on Open you will see a command line window appear.
DOWNLOAD AND INSTALL xmrig
- Open Termux
- Copy and paste the below script into the Termux command line:
apt update && apt upgrade && apt install -y git wget proot build-essential cmake libmicrohttpd clang nano && git clone https://github.com/xmrig/xmrig --depth 1 && mkdir xmrig/build && cd xmrig/build && cmake -DWITH_HWLOC=OFF .. && make -j10
- Tab Enter
- Tab Y, then tab Enter to continue
- Once the process has been completed you will be in the ~/xmrig/build path
- CONGRATULATIONS!!! You have successfully installed xmrig.
DOWNLOAD AND INSTALL cpulimit (optional)
NOTE: If xmrig is using too many phone resources then android will either kill the xmrig process or completely shutdown Termux. Thus you will need to decrease the resources used by xmrig.
- Open Termux
- Type:
apt-get install cpulimit
Click here to learn how you can trade your mining rewards.
All the information found in Bochica is free. If the information has been useful, please consider sending us a small gift here because this would help fund the continuation of this website. Thank you for taking the time to read this message.