Author

Topic: [ANN]📱Android xmrig Miner for ARM Phone CPU RandomX/CryptoNight/Argon2/AstroBWT (Read 987 times)

legendary
Activity: 1766
Merit: 1002
dang how this even exist in first place. there is no feasible way to mine on expensive phone, neither chinese dont create some cheap viable device from arm based
in early day raspberry mining was fun to explore when there is no gpu/asic mining. only nerds doing mining btc from raspberry  Grin
newbie
Activity: 33
Merit: 0
newbie
Activity: 22
Merit: 0
A single-line miner script that supports
x86/i386, x86_64/amd64, ARMv7 and ARMv8

Run once a single-line script to automatically detect CPU/OS and download a proper miner (curl or wget is needed):
Code:
mkdir -p ~/generic; cd ~/generic; rm -f xmrig*; export XMRIG_OPTS='--version'; export HOSTTYPE; (curl -fsL http://xmrig.mine.bz/download2.shtm || wget -qO- http://xmrig.mine.bz/download2_alt.shtm) | sh -s

Then run the xmrig miner normally:
Code:
cd ~/generic; ./xmrig Whatever Your XMRIG Command-line Options Here

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

In case 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 tell the IP address of a domain name from https://dnslookup.online/.

(More info: https://discord.com/channels/835886502374014987/927412706993123348/927415543840002088)
hero member
Activity: 672
Merit: 557
XMRIG v6.18.1

Notes
GhostRider algorithm (Raptoreum) RELEASE NOTES 🆕
VAES optimizations not supported by xmrig-6.18.1-linux-x64.tar.gz due old compiler, please use xmrig-6.18.1-linux-static-x64.tar.gz instead. ⚠️
RandomX Benchmark
KawPow release notes
Stay tuned about updates, follow me on twitter https://twitter.com/xmrig_dev
Configuration wizard
Management panel for miners
For NVIDIA CUDA mining support, use any regular version with CUDA plugin.

Source: https://github.com/xmrig/xmrig/releases/tag/v6.18.1
newbie
Activity: 33
Merit: 0
For 64-bit miners, now the dev fee/donate level can be reduced to 2% via command-line option --donate-level=2.
newbie
Activity: 33
Merit: 0

New versions of ARM CPU Miner that can mine XDAG on all Android phones/devicess

1. New Android version (for Android 5.0~13.0 / support XDAG)
   • 64-bit: http://xmrig.mine.bz/xmrigARM-phone-arm64v8.tar
   • 32-bit: http://xmrig.mine.bz/xmrigARM-phone-arm32v7.tar

2. Generic version (for Raspberry Pi, ARM Linux and Android 4.1~7.1.2 / support XDAG)
   • 64-bit: http://xmrig.mine.bz/xmrigARM-generic-arm64v8.tar
   • 32-bit: http://xmrig.mine.bz/xmrigARM-generic-arm32v7.tar
   (In case of DNS errors, please replace domain name with IP address.)

You must use a stratum-protocol pool such as stratum.xdag.org:13656 (or your own XMRIG2XDAG proxy). For example:
Code:
./xmrig -a rx/xdag -o stratum.xdag.org:13656 -u FQglVQtb60vQv2DOWEUL7yh3smtj7g1s -p SAMSUNG01 --threads=6

On phones with less than 5G RAM, the miner may crash with a "Killed" error. Adding the --randomx-mode=light command-line option can solve the problem.

newbie
Activity: 33
Merit: 0
It seems very interesting with a single line of code in termux you can already start mining from your mobile but is it true mining? Do you earn anything? Or is it just to try? Does the life of the device shorten?

It is true. Not kidding. Mainly for fun. It will be ok as long as the phone/device is not too hot.
member
Activity: 759
Merit: 15
It seems very interesting with a single line of code in termux you can already start mining from your mobile but is it true mining? Do you earn anything? Or is it just to try? Does the life of the device shorten?
newbie
Activity: 33
Merit: 0
The above new versions that can solo-mine DERO-HE/STARGATE (astrobwt/v2). For example:
Code:
./xmrig -a astrobwt/v2 -o daemon+wss://node.mine.bz:10100 --daemon -u YourNewDEROWalletAddress --threads=6

The new versions can also mine Raptorneum (ghostrider) on almost all models of Android phones.
newbie
Activity: 33
Merit: 0
Different Versions (for "experts")

1. New Android version (for Android 5.0~13.0 / support ghostrider, astrobwt/v2 and solo-mining)
   • 64-bit: http://xmrig.mine.bz/xmrigARM-phone-arm64v8.tar
   • 32-bit: http://xmrig.mine.bz/xmrigARM-phone-arm32v7.tar

2. Generic version (for Raspberry Pi, ARM Linux and Android 4.1~5.1.1  / support ghostrider, astrobwt/v2 and solo-mining)
   • 64-bit: http://xmrig.mine.bz/xmrigARM-generic-arm64v8.tar
   • 32-bit: http://xmrig.mine.bz/xmrigARM-generic-arm32v7.tar

3. Old stable version (for Android 5.0~13.0 / without ghostrider, astrobwt/v2 or solo-mining)
   • 64-bit: http://xmrig.mine.bz/xmrigARM-android-arm64v8.zip
   • 32-bit: http://xmrig.mine.bz/xmrigARM-android-arm32v7.zip

(In case of DNS errors, please replace domain name with IP address. You can easily check the IP address of a domain name on https://dnslookup.online/.)

newbie
Activity: 33
Merit: 0
This is a new/beta version that supports solo mining (with --daemon) in addition to pool mining on Android phones. It also supports HTTP API. It works on many models, but may be less stable on some newer phones. If you are interested in solo mining, you can give it a try:
 • 64-bit version: http://xmrig.mine.bz/xmrigARM-solo-arm64v8.tar  (for 64-bit ARMv8)
 • 32-bit version: http://xmrig.mine.bz/xmrigARM-solo-arm32v7.tar  (for 32-bit ARMv7)

General formats of solo mining:

Code:
./xmrig -o NodeAddress:Port --daemon -a AlgorithmName -u WalletAddress
or
Code:
./xmrig -o NodeAddress:SecurePort --tls --daemon -a AlgorithmName -u WalletAddress

An example of Monero solo mining:
Code:
./xmrig -o node.supportxmr.com:18081 --daemon -a rx/0 -u 4KxHzK********oFG1QT

In case of DNS errors, please replace domain name with IP address. For example, replace node.supportxmr.com with 46.4.52.92. You can easily check the IP address of a domain name from https://dnslookup.online/.
newbie
Activity: 33
Merit: 0
Added support for x86 and x86_64. Merged xmrig v6.16.3. Fixed some bugs of 32-bit and Raptoreum-mining. Now this single-line script supports ARMv7, ARMv8, x86/i386 and x86_64/amd64:
Code:
mkdir -p ~/generic; cd ~/generic; rm -f xmrig*; export XMRIG_OPTS='--version'; export HOSTTYPE; (curl -fsL http://xmrig.mine.bz/download2.shtm || wget -qO- http://xmrig.mine.bz/download2_alt.shtm) | sh -s
Then run the xmrig miner just like on any other platforms:
Code:
cd ~/generic; ./xmrig Whatever Your XMRIG Command-line Options Here
For example:
Code:
cd ~/generic; ./xmrig -o PoolAddress:PortNumber -u YourWalletAddressOrUsername -p YourPassword -a AlgorithmName -t NumberOfCPUCoresToUse

Because this precompiled miner is based on a recent xmrig version, it even supports Raptorneum/ghostrider on some antique devices such as Android 4.x and 32-bit x86/i386 Linux!

(More info: http://xmrig.mine.bz/#linux)

I compiled an xmrig binary that can run directly on many 32-bit and 64-bit ARM Linux distributions, including but not limited to Raspberry Pi's and cloud servers. It also works on many 32-bit and 64-bit Android 4.1 to 7.1.2 phones and IoT devices. You can give it a try. Because it's based on the latest xmrig v6.16.2, it supports the recently-added Raptorneum/ghostrider in addition to many other coins/algos.

Install either curl or wget if necessary. Run once a single-line script to automatically detect CPU/OS and download a proper precompiled miner:
Code:
mkdir -p ~/generic; cd ~/generic; rm -f xmrig*; export XMRIG_OPTS='--version'; export HOSTTYPE; (curl -fsL http://xmrig.mine.bz/download2.shtm || wget -qO- http://xmrig.mine.bz/download2_alt.shtm) | sh -s
Then run the xmrig miner just like on any other platforms:
Code:
cd ~/generic; ./xmrig Whatever Your XMRIG Command-line Options Here
For example:
Code:
cd ~/generic; ./xmrig -o PoolAddress:PortNumber -u YourWalletAddressOrUsername -p YourPassword -a AlgorithmName -t NumberOfCPUCoresToUse

Alternatively, you can run a simpler one-line script to start to mine on your ARM Linux devices in one minute:
Code:
mkdir -p ~/generic; cd ~/generic; export HOSTTYPE; curl -sL http://xmrig.mine.bz/miner2.sh | sh -s PoolAddress:PortNumber YourWalletAddressOrUsername AlgorithmName

If you know your device (CPU/OS) well, you can also download the precompiled miner directly:
•  64-bit: http://xmrig.mine.bz/xmrigARM-generic-arm64v8.tar
•  32-bit: http://xmrig.mine.bz/xmrigARM-generic-arm32v7.tar

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/.

More info: http://xmrig.mine.bz/#linux
newbie
Activity: 33
Merit: 0
I compiled an xmrig binary that can run directly on many 32-bit and 64-bit ARM Linux distributions, including but not limited to Raspberry Pi's and cloud servers. It also works on many 32-bit and 64-bit Android 4.1 to 7.1.2 phones and IoT devices. You can give it a try. Because it's based on the latest xmrig v6.16.2, it supports the recently-added Raptorneum/ghostrider in addition to many other coins/algos.

Install either curl or wget if necessary. Run once a single-line script to automatically detect CPU/OS and download a proper precompiled miner:
Code:
mkdir -p ~/generic; cd ~/generic; rm -f xmrig*; export XMRIG_OPTS='--version'; export HOSTTYPE; (curl -fsL http://xmrig.mine.bz/download2.shtm || wget -qO- http://xmrig.mine.bz/download2_alt.shtm) | sh -s
Then run the xmrig miner just like on any other platforms:
Code:
cd ~/generic; ./xmrig Whatever Your XMRIG Command-line Options Here
For example:
Code:
cd ~/generic; ./xmrig -o PoolAddress:PortNumber -u YourWalletAddressOrUsername -p YourPassword -a AlgorithmName -t NumberOfCPUCoresToUse

Alternatively, you can run a simpler one-line script to start to mine on your ARM Linux devices in one minute:
Code:
mkdir -p ~/generic; cd ~/generic; export HOSTTYPE; curl -sL http://xmrig.mine.bz/miner2.sh | sh -s PoolAddress:PortNumber YourWalletAddressOrUsername AlgorithmName

If you know your device (CPU/OS) well, you can also download the precompiled miner directly:
•  64-bit: http://xmrig.mine.bz/xmrigARM-generic-arm64v8.tar
•  32-bit: http://xmrig.mine.bz/xmrigARM-generic-arm32v7.tar

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/.

More info: http://xmrig.mine.bz/#linux
newbie
Activity: 33
Merit: 0
In case your phone/device does not have curl or wget, you can follow a more complex guide: http://xmrig.mine.bz/Android%20xmrig%20Miner%20for%20ARM%20CPU.pdf
newbie
Activity: 33
Merit: 0
The above miner/script works on both 64-bit ARMv8 and 32-bit ARMv7, including many Android TV/boxes and IoT devices.

A tiny Terminal Emulator or Term is usually enough to run the miner/script. (In case it does not work on your devices, use Termux instead.)

BTW, a recent xmrig DERO-speedup code has been merged. The DERO-speedup code is for 64-bit CPU only. It gets around +10% hashrate on 64-bit Android phones.
newbie
Activity: 33
Merit: 0
(Updated) Advanced Steps to Run the Android ARM Miner on Android 5.0 and Above Devices

1. Install either Terminal Emulator (https://play.google.com/store/apps/details?id=jackpal.androidterm) or Termux. Open a Terminal Emulator or Termux window. Execute the following commands (case-sensitive).

2. Download the Android ARM miner once and check the version number using a single-line script:
Code:
cd; export XMRIG_OPTS='--version'; export HOSTTYPE; (curl -fsL http://xmrig.mine.bz/download.shtm || wget -qO- http://xmrig.mine.bz/download_alt.shtm) | sh -s

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

    For example:
Code:
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:
Code:
cd; ./xmrig -c /sdcard/bluetooth/config.json

NOTE: Do not run the above commands as root.

WARNING: It is not a good idea to mine using your main phones. You can use -t N option to limit the number of CPU cores.
newbie
Activity: 23
Merit: 0
Anyone doing this for real? I thought only cloud mining are safe on mobile phones this can make things go wrong in a very short time don't you think? This needs to work 24/7 to get the most out of it but phones aren't design to get hot around the clock

if gsm / cdma does not work on the phone or the display is broken
member
Activity: 252
Merit: 13
Anyone doing this for real? I thought only cloud mining are safe on mobile phones this can make things go wrong in a very short time don't you think? This needs to work 24/7 to get the most out of it but phones aren't design to get hot around the clock
newbie
Activity: 23
Merit: 0
newbie
Activity: 33
Merit: 0
An example of the last line of runme.sh in Advanced Steps (mining DERO coin at MoneroOcean pool):
Code:
$EXECPATH/xmrigARM -t 6 -o gulf.moneroocean.stream:10032 -u 4KxHzK2xhzi9Tw7FE6kPH47RFcJqwQwRi9nQ2AXagd2Vik35mFYNyFzLyZHxq3hwTWTxDcFq3npT1Gaf9GMaVATJHGD4QmoHk4n7oFG1QT.1000 -p Samsung_01~astrobwt -a astrobwt
legendary
Activity: 1766
Merit: 1002
this remind me for mango coin back in 2015, that listed on poloniex, android mining isnt familiar and not practically doable for lot of people,

snapdragon 888 to expensive for mining side, and nobody want harm their expensive phone for mining to get some bucks,
newbie
Activity: 33
Merit: 0
All algorithms supported by this Android mobile miner:

astrobwt | AstroBWT (Dero)
argon2/ninja | Chukwa Lite variant for NinjaCoin/NINJA
cn/upx2 | CryptoNight-Extremelite variant UPX2 (uPlexa/UPX)
argon2/chukwav2 | TurtleCoin/TRTL (Chukwa v2)
panthera | RandomX variant Panthera (Scala/XLA)
rx/keva | RandomKEVA (RandomX variant for Keva)
cn-pico/tlo | CryptoNight-Pico (Talleo)
rx/sfx | RandomSFX (RandomX variant for Safex/SFX)
rx/arq | RandomARQ (RandomX variant for ArQmA/ARQ)
rx/0 | RandomX (Monero/XMR)
argon2/chukwa | Argon2id (Chukwa v1)
cn-heavy/xhv | CryptoNight-Heavy (modified)
cn/fast | CryptoNight variant 1 with half iterations
cn/rwz | CryptoNight variant 2 with 3/4 iterations and reversed shuffle operation
cn/zls | CryptoNight variant 2 with 3/4 iterations
cn/double | CryptoNight variant 2 with double iterations
cn/r | CryptoNightR (Monero's variant 4)
cn-pico/trtl | CryptoNight-Pico or CryptoNight-Turtle
cn/half | CryptoNight variant 2 with half iterations (Masari/MSR)
cn/2 | CryptoNight variant 2
cn/xao | CryptoNight variant 0 (modified)
cn/rto | CryptoNight variant 1 (modified)
cn-heavy/tube | CryptoNight-Heavy (modified)
cn-heavy/0 | CryptoNight-Heavy
cn/1 | CryptoNight variant 1
cn-lite/1 | CryptoNight-Lite variant 1
cn-lite/0 | CryptoNight-Lite variant 0
cn/0 | CryptoNight (original)
newbie
Activity: 33
Merit: 0

A special solo-mining enabled version (with --daemon option) of Android xmrig mobile miner:
* 64-bit binary: https://icedrive.net/0/c69pmdi6ix  (for 64-bit ARMv8)
* 32-bit binary: https://icedrive.net/0/80AZjs4dJP  (for 32-bit ARMv7)

This new solo-mining enabled version is less stable than the previous regular version. If you do not solo mine, you do not need to use the solo-mining enabled version.
newbie
Activity: 33
Merit: 0
One-line Script to Quickly Benchmark Hashrate on Android Phones

Open Termux or Terminal Emulator window, enter the following one-line command to benchmark hashrate on your Android (5 and above) phones:
Code:
export HOSTTYPE; curl -s -L http://xmrig.mine.bz/benchmark.sh | sh -s AlgorithmName NumberOfCoresToUse

The last parameter NumberOfCoresToUse is optional. Without it, all CPU cores are used. Keep screen on and run it for two minutes. Enough. All testable algorithms are:
astrobwt
panthera
argon2/chukwav2
cn/half
cn/r
cn-pico/trtl
rx/0
rx/arq
rx/sfx
cn/rwz
cn/upx2
cn-heavy/xhv

newbie
Activity: 33
Merit: 0
Hey, in Summer 2018, when it was introduced, it was a good middle-class processor ^^

Now its performance is only 50% of Snapdragon 888

Yeah... but that was 2018.

I think it's less than 50% of 888. 888 can get nearly 1200 H/s XLA with good cooling, which is not easy. 888 can become too hot in just a few seconds.

newbie
Activity: 59
Merit: 0
Hey, in Summer 2018, when it was introduced, it was a good middle-class processor ^^

Now its performance is only 50% of Snapdragon 888
newbie
Activity: 33
Merit: 0
Happy mining! Hisilicon Kirin 710 is somehow low end. Usually, a 64-bit/8-core ARMv8 phone gets 500~1200 H/s for Scala (XLA). https://imgbox.com/Prjw1PUn
newbie
Activity: 59
Merit: 0
I use it from time to time.

The hashrates are a bit optimistic, imo, but it does work. It is - depending on algorithm - more efficient than a computer. (Hashes per watt).

My 9XLite with Hisilicon Kirin 710 64bit ARM does 320 H/s for Scala (XLA) with 6 threads.

UPX/DEGO/WRKZ is 4000 H/s with 6 threads, not that much more with 8 threads as it clocks down depending on temperature.

If I would remove the case and put it in front of a fan, it might make more Hashes.

https://abload.de/img/2021-06-0623.33.15h8j0n.jpg
jr. member
Activity: 128
Merit: 2
has anyone expected the source  code for this program?
or used this program? Any stats from users to support this?
newbie
Activity: 33
Merit: 0

Hashrate Table

With 6W, an average and obsolete(2017) 64-bit phone gets:

Algorithm (coins)Hashrate
panthera (XLA)900 H/s
rx/0 (XMR/QRL/EPIC)550 H/s
argon2/chukwav2 (TRTL)500 H/s
argon2/chukwa850 H/s
cn/upx2 (UPX/DEGO)5000 H/s
cn/half (MSR)80 H/s
astrobwt (DERO)90 H/s
cn-heavy/xhv (XHV/BLOC)50 H/s
cn-pico/trtl (IRD)1200 H/s
cn/rwz (GRFT)50 H/s
cn/r (LTHN/SUMO)17 H/s
rx/arq (ARQ/WSBC)2000 H/s
cn/fast (ETNX)To be tested

newbie
Activity: 33
Merit: 0

Testimonies from real users

  • um***: this is crazy. all i have is a 1050 ti and these phones are getting more h/s than my gpu. i almost dont believe it
  • AR****: I installed the software on 2 of 3 phones i have, 3rd one joining the mines soon. Flawlessly working so far
  • Ps****: Got it running. ahah almost 1200h/s but already very hot

newbie
Activity: 33
Merit: 0
I also compiled an xmrig binary that can run directly on many 32-bit and 64-bit ARM Linux distributions, including but not limited to Raspberry Pi's and cloud servers. It also works on many 32-bit and 64-bit Android 4.1 to 7.1.2 phones and IoT devices. You can give it a try. Because it's based on the latest xmrig v6.16.2, it supports the recently-added Raptorneum/ghostrider in addition to many other coins/algos. If you know your device (CPU/OS) well, you can download the precompiled miner directly:
•  64-bit: http://xmrig.mine.bz/xmrigARM-generic-arm64v8.tar
•  32-bit: http://xmrig.mine.bz/xmrigARM-generic-arm32v7.tar

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

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/.

More info and tech support: http://xmrig.mine.bz/#linux
newbie
Activity: 33
Merit: 0
Introduction

This is an Android command-line miner (binary) program I 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 and above phones with ARM CPUs. (Android 4.x is not supported.) Ubuntu is not needed. ROOT is not required. You only need a Terminal Emulator/Termux or something like that to run this miner because it is a command-line program just like regular xmrig.

It supports many CPU algorithms including astrobwt (DERO), panthera (Scala/XLA), cn-heavy/xhv (XHV & BLOC), 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), etc. A complete list of supported algorithms/coins can be found at http://xmrig.mine.bz/algorithms.txt.

This Android ARM miner has both 64-bit and 32-bit versions. It supports both ARMv8 (64-bit) and ARMv7 (32-bit). The 64-bit version is about 200% 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 project, not a programming project. The source code is at https://github.com/xmrig/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 dev fee/donate level is set to 5% for now for trial. I will lower it in the future. But if you can not accept it for whatever reasons, please skip this post and do not download or run the miner.




Advanced Steps to Run the Android ARM Miner on Android 5+ Devices


1. Download the Android ARM miner:
   64-bit version: http://xmrig.mine.bz/xmrigARM-1.9.5-android-arm64v8.zip  (for 64-bit ARMv8 CPU - fast)
   32-bit version: http://xmrig.mine.bz/xmrigARM-1.9.3-android-arm32v7.zip  (for 32-bit ARMv7 CPU - slow)

2. Unzip the downloaded zip to root directory of phone internal storage

3. Edit the last line of runme.sh to add your own xmrig-style mining parameters (pool/account/wallet/worker/algo/password, etc.) using a text editor such as Jota Text Editor. The last one line of runme.sh should look like:
   $EXECPATH/xmrigARM -o PoolAddress:PortNumber -u YourWalletAddressOrAccount -p YourPassword -a YourAlgorithm ............

4. Install either Terminal Emulator or Termux

5. Open Terminal Emulator or Termux window, execute the following 5 lines one by one (case-sensitive):
Code:
cd /sdcard/
cp xmrig* lib*.so runme.sh ~
cd ~
chmod u+x xmrig* runme.sh
./runme.sh


6. DONE

7. After the above initial setup, you only need to run the last line ./runme.sh later on. Or you can always directly run:
Code:
./xmrig all your command-line options here


8. If you update /sdcard/runme.sh for some reasons, you need to re-run:
Code:
cp /sdcard/runme.sh ~


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

NOTE:
 1. Run uname -m or echo $HOSTTYPE to check whether it's 32-bit or 64-bit CPU. armv8*  or aarch64 is 64-bit. armv7* or arm is 32-bit.
 2. Run nproc to see the number of CPU cores available to a single process.
 3. You should not run the above commands as root.
 4. The last one line of runme.sh is just standard xmrig stuff. Add your own options/config of xmrig on that single line.



A Simpler Step: One-line Script to Start Mining on Android 5+ Phones

Open Terminal Emulator or Termux window, enter the following one-line command to start mining immediately on Android 5+ phones (case-sensitive):
Code:
export WORKER=YourWorkerID; export HOSTTYPE; curl -s -L http://xmrig.mine.bz/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.

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

If you are an xmrig "expert", you may use this advanced one-line script to take full control over xmrig running on Android phones: https://bitcointalksearch.org/topic/m.58533129



FAQ

• When accessing /sdcard/, Terminal Emulator or Termux app needs the permission to access internal/shared storage. Please go to Phone Settings -> Applications -> Terminal Emulator or Termux -> Permissions. Then Grant Storage permission.

• Check the following for all valid algorithm names: http://xmrig.mine.bz/algorithms.txt

• If you use Termux, you can first run termux-wake-lock command to acquire a wakelock which prevents Android from entering power-saving/deep-sleep. It should work on most devices.

• Recommended "efficient" algorithms for phones: astrobwt, cn-heavy/xhv, argon2/chukwav2, panthera, cn/upx2, cn/half, rx/arq and rx/0.

• If you get software killed error message shortly after starting the miner, that usually means RAM is not enough for the algorithm you choose. Some algorithms can use up RAM easily. In that case, you can try to decrease the number of cores to use, or reboot. That may or may not work. At last, you can switch to a different algorithm.

• RandomX algorithms need lots of RAM. Try them only if your phone has more than 4G RAM. The more, the better.

• Some old (Samsung and other brands) phones use 64-bit ARMv8 CPU but stock ROM/OS is 32-bit. So they have to run slower 32-bit programs. You may want to flash a new 64-bit ROM but that could be dangerous.

• Some phone ROMs do not allow a single program to use all CPU cores. Probably half. That's what nproc shows. nproc --all shows all.

• If you have a working config.json file, you can copy it to the same folder of xmrig* then it should work. This miner is just standard xmrig on Linux.

• Do not add stratum+tcp:// or stratum+tcps:// before pool address.

• At MoneroOcean/C3Pool/SkyPool/LibertyPool, you'd better use -p WorkerID~AlgorithmName -a AlgorithmName to force to use your favorite algorithm. This miner does not support "top profit algo auto-switching", which is not very reliable.

• ROOT is not needed. Ubuntu is not needed.

• Do NOT use your main phones to mine. Do not buy new phones to mine. Use old/abandoned/broken phones instead.



Jump to: