Bitcoin Forum
April 24, 2024, 03:35:06 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1] 2 »  All
  Print  
Author Topic: [ANN]📱Android xmrig Miner for ARM Phone CPU RandomX/CryptoNight/Argon2/AstroBWT  (Read 985 times)
WarriorV (OP)
Newbie
*
Offline Offline

Activity: 33
Merit: 0


View Profile
May 19, 2021, 01:01:43 PM
Last edit: July 25, 2023, 08:16:50 AM by WarriorV
 #1

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://bitcointalk.org/index.php?topic=5363383.msg58533129#msg58533129



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.



1713972906
Hero Member
*
Offline Offline

Posts: 1713972906

View Profile Personal Message (Offline)

Ignore
1713972906
Reply with quote  #2

1713972906
Report to moderator
1713972906
Hero Member
*
Offline Offline

Posts: 1713972906

View Profile Personal Message (Offline)

Ignore
1713972906
Reply with quote  #2

1713972906
Report to moderator
1713972906
Hero Member
*
Offline Offline

Posts: 1713972906

View Profile Personal Message (Offline)

Ignore
1713972906
Reply with quote  #2

1713972906
Report to moderator
"Bitcoin: mining our own business since 2009" -- Pieter Wuille
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
WarriorV (OP)
Newbie
*
Offline Offline

Activity: 33
Merit: 0


View Profile
May 19, 2021, 01:11:40 PM
Last edit: July 25, 2023, 08:17:53 AM by WarriorV
 #2

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
WarriorV (OP)
Newbie
*
Offline Offline

Activity: 33
Merit: 0


View Profile
May 19, 2021, 01:18:51 PM
Last edit: May 20, 2021, 07:19:54 AM by WarriorV
 #3


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

WarriorV (OP)
Newbie
*
Offline Offline

Activity: 33
Merit: 0


View Profile
May 20, 2021, 06:50:45 AM
Last edit: July 22, 2021, 03:41:18 AM by WarriorV
 #4


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

caffinated
Jr. Member
*
Offline Offline

Activity: 128
Merit: 2


View Profile
May 20, 2021, 09:05:39 AM
 #5

has anyone expected the source  code for this program?
or used this program? Any stats from users to support this?
Shai0Hulud
Newbie
*
Offline Offline

Activity: 59
Merit: 0


View Profile
June 06, 2021, 09:01:38 PM
Last edit: June 06, 2021, 09:35:10 PM by Shai0Hulud
 #6

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
WarriorV (OP)
Newbie
*
Offline Offline

Activity: 33
Merit: 0


View Profile
June 07, 2021, 03:36:24 AM
Last edit: June 07, 2021, 05:29:56 AM by WarriorV
 #7

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
Shai0Hulud
Newbie
*
Offline Offline

Activity: 59
Merit: 0


View Profile
June 07, 2021, 11:36:56 AM
 #8

Hey, in Summer 2018, when it was introduced, it was a good middle-class processor ^^

Now its performance is only 50% of Snapdragon 888
WarriorV (OP)
Newbie
*
Offline Offline

Activity: 33
Merit: 0


View Profile
June 07, 2021, 12:32:13 PM
Last edit: June 07, 2021, 12:42:53 PM by WarriorV
 #9

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.

WarriorV (OP)
Newbie
*
Offline Offline

Activity: 33
Merit: 0


View Profile
June 30, 2021, 12:32:13 PM
Last edit: July 25, 2023, 08:18:14 AM by WarriorV
 #10

A Quick Mining Guide (PDF):
    http://xmrig.mine.bz/Android%20xmrig%20Miner%20for%20ARM%20CPU.pdf
WarriorV (OP)
Newbie
*
Offline Offline

Activity: 33
Merit: 0


View Profile
July 10, 2021, 02:35:22 PM
Last edit: July 25, 2023, 08:18:42 AM by WarriorV
 #11

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

WarriorV (OP)
Newbie
*
Offline Offline

Activity: 33
Merit: 0


View Profile
July 28, 2021, 05:44:13 AM
Last edit: October 18, 2021, 07:33:18 AM by WarriorV
 #12


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.
WarriorV (OP)
Newbie
*
Offline Offline

Activity: 33
Merit: 0


View Profile
September 16, 2021, 08:25:57 AM
 #13

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)
fmz89
Legendary
*
Offline Offline

Activity: 1766
Merit: 1002



View Profile
September 18, 2021, 09:37:02 AM
 #14

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,

  ▄█▀                       ▀█▄
 ██           ▄▄ ▄▄           ██
███       ▄ ▄███ ███▄ ▄       ███
████▄   ███ ████ ████ ███   ▄████
 ██████████ ███▀ ▀▀▄▄▄▄▄ ▄██████
  ▀▀███████  ▀▄█████████ ████▀▀
       ███▀▄ ██████▀▀▀ ▄▄
       █▀▄██ ████▄▄█▀▄████
        ████ ▀█████▄▀██▀
        ████ █▄▀█████▄
        ████  ▀▀ █████▀
         ▀▀█      ▀█▀
.REXX.|||
▄▄████████▄▄
▄████████████████▄
▄████████████████████▄
███████████▀    ▐███████
███████████    ▄▄█████████
▐██████████▀    ▀▀█████████▌
▐█████████▌       █████████▌
▐███████████    ███████████▌
███████████    ███████████
██████████    ██████████
▀████████▄  ▄████████▀
▀████████████████▀
▀▀▀▀▀▀▀▀▀▀▀▀
▄▄████████▄▄
▄████████████████▄
▄████████████████████▄
███████████████▀▀  █████
████████████▀▀      ██████
▐████████▀▀   ▄▄     ██████▌
▐████▀▀    ▄█▀▀     ███████▌
▐████████ █▀        ███████▌
████████ █ ▄███▄   ███████
████████████████▄▄██████
▀████████████████████▀
▀████████████████▀
▀▀▀▀▀▀▀▀▀▀▀▀
▄▄████████▄▄
▄████████████████▄
▄████████████████████▄
████ ▄▀██████████  █████
██████▄▀▄▀██████  ████████
▐████████▄▀▄▀██  ██████████▌
▐██████████▄▀▄ ████████████▌
▐██████████  ▄▀▄▀██████████▌
████████  ████▄▀▄▀████████
█████  ████████▄▀ ██████
▀████████████████████▀
▀████████████████▀
▀▀▀▀▀▀▀▀▀▀▀▀
|.BUY REXX.
WarriorV (OP)
Newbie
*
Offline Offline

Activity: 33
Merit: 0


View Profile
October 18, 2021, 07:09:24 AM
 #15

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
dvin
Newbie
*
Offline Offline

Activity: 23
Merit: 0


View Profile WWW
November 09, 2021, 04:45:03 AM
 #16

XMRig with Termux
https://youtu.be/ctcBtzmHV0E
TheMimic1
Member
**
Offline Offline

Activity: 252
Merit: 13


View Profile
November 09, 2021, 06:30:43 AM
 #17

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

▀▀▀▀▀▀▀ ▀▀▀ ▀▀▀▀▀ ▀▀ ▀▀▀▀     ITSMYNE     ▀▀▀▀ ▀▀ ▀▀▀▀▀ ▀▀▀ ▀▀▀▀▀▀▀
Social-plus NFT marketplace for official sports NFTs
[      t w i t t e r      ]  [    t e l e g r a m    ]  [   i n s t a g r a m   ]  [      d i s c o r d      ]
dvin
Newbie
*
Offline Offline

Activity: 23
Merit: 0


View Profile WWW
November 11, 2021, 01:04:28 AM
 #18

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
WarriorV (OP)
Newbie
*
Offline Offline

Activity: 33
Merit: 0


View Profile
November 26, 2021, 05:06:55 AM
Last edit: July 25, 2023, 08:19:19 AM by WarriorV
 #19

(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.
WarriorV (OP)
Newbie
*
Offline Offline

Activity: 33
Merit: 0


View Profile
December 07, 2021, 09:00:26 AM
 #20

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.
Pages: [1] 2 »  All
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!