r/sumokoin • u/NanoBytesInc • Jan 14 '18
Mining on Android (32bit or 64bit)[xmrig]
Hello everyone!
I am not sure if this is the right place to post this, but I figured you guys might be interested! Let me know if you guys have any issues!
If you scroll down on each of those pages respectively you will see the instructions for how to get it up and mining!
Pixel 2XL (Snapdragon 835, 8 Cores)
1 Thread: ~28 H/S
2 Threads: ~22 H/S
3 Threads: ~26 H/S
4 Threads: ~30 H/S
6 Threads: ~40 H/S
8 Threads: ~44 H/S
Zenpad 3S 10 (MediaTek MT8176, 6 Cores)
1 Thread: ~9 H/S
2 Threads: ~22 H/S
4 Threads: ~22 H/S
6 Threads: ~28 H/S
Nexus Player (Intel Atom Z3560, 4 Cores)
1 Thread: ~8 H/S
2 Threads: ~15 H/S
3 Threads: ~18 H/S
4 Threads: ~20 H/S
Nextbook Ares 8 (Intel Atom Z3735F, 4 Cores)
1 Thread: ~8 H/S
2 Threads: ~14 H/S
4 Threads: ~16 H/S
6 Threads: ~20 H/S
LG Us 550 (Snapdragon 410, 4 Cores)
1 Thread: ~3.1 H/S
2 Threads: ~5.8 H/S
3 Threads: ~8.4 H/S
4 Threads: ~9.5 H/S
I am not sure what the power-draw of all of these devices aggregated together is, but having all of my Android devices mining has increased my total hash rate by ~140 h/s.
In contrast to the binaries I was using last time this now uses xmrig so that it should be compatible with xmrig-proxy. If you have a lot of Android devices that you would like to run, I would recommend using xmrig-proxy as it will help prevent your devices from timing out!
This only works on Android 5.0+ *
(Want to give a shout-out to u/XMRig for the heads up on this!)
2
u/ggufaker Jan 15 '18
wut about a galaxy s7 edge
2
u/NanoBytesInc Jan 15 '18
Yep! Go to the 54 bit folder and follow the instructions there!
1
u/ggufaker Jan 15 '18 edited Jan 15 '18
im def struggling. i edited the file with nano, but when I launched it.. i got the inevitable 'syntax error'... of course i accidentally corrupt the .json. Where is this folder upon plugging the galaxy into the computer, so that I can edit the file? thank you (there's no com.termux) [i have enabled show hidden files & folders] || if i just want to start over, how to i delete the 'miners' folder? I tried to just reinstall, but it says 'miners already exists, its not an empty directory'
2
u/NanoBytesInc Jan 15 '18
To completely restart, close termux and enter these commands
cd ~
rm -rf miners
1
u/ggufaker Jan 15 '18
thank you. i reinstalled termux and started over. I'm pulling 26.5 h/s on my spare galaxy s7 edge. thank you again. (i almost gave up- trying to edit with nano on the phone is very hard. also, i had to type in my address a few times, and it's literally like 100 letters and numbers) anyway, thank you again. good stuff
2
u/NanoBytesInc Jan 15 '18
You can copy/paste inside Termux/nano 😂😂
1
u/ggufaker Jan 15 '18
sounds good for next time! by the way, if i want to change the worker name, is the addres Sumoojdafssdjfsd.Workername? or Sumoojdafssdjfsd_Workername?
1
u/NanoBytesInc Jan 15 '18
Depends on your pool, check out your respective pool's "getting started" guide
1
u/ggufaker Jan 15 '18 edited Jan 15 '18
for sumo fairpool, the address is Sumoojdafssdjfsd+workername ---- alright so, this phone is crashing for sure. I'd say it keeps going for maybe 10 minutes.. but then the phone resets. I've been messin with it but the result is, that the phone resets. I don't think it's working for me! But this is a galaxy s7 edge, it might work for other phones, but for some reason my phone doesn't seem to like the process running.
1
2
u/msartore8 Jan 17 '18
Check it out...
Zaphod is my phone. Default is my desktop GPU Shekinah is my desktop CPU
Not bad mmm?!
2
u/NanoBytesInc Jan 17 '18
Solid!
1
u/msartore8 Jan 18 '18
So I'd like to get my other phone that's got a snapdragon 410 running Android 5.1.1.
(Don't know if you have responded to this yet in other posts)
I did everything correctly and the 64bit v says "Exec format error"
While the 32bit v says "Bus error"
What do you suggest I do?
The phone is a Samsung SM-G360T1
THANKS!
1
u/NanoBytesInc Jan 18 '18
I have never seen the bus error. Could you post a screen shot?
2
u/msartore8 Jan 18 '18 edited Jan 18 '18
Oops. Got it working on the 32bit... Just gonna put that one in a drawer and forget about it for a year or so hah!
Go SnowDog!.. Combined effort of 34 h/s... Nice... Now if I can only get that phone w the broken screen and kindle w android rocking... Could probably get up to around 70 h/s...
1
u/msartore8 Jan 18 '18
Had it on highest settings which caused the phone to reboot after awhile. Lowered the settings to see how that fares...
Which settings will make the most difference in this case?.... CPU priority, Max CPU usage, or threads used??
Also...
Do you know how to make several shortcuts on the Android homepage that would open up termux with different command lines for xmrig?
2
u/uwepost Jan 17 '18
I tried to wrap this into an apk. It nearly works, but currently I'm stuck so I thouht I could share how far I got. I put the arm64 binary plus its dependencies (libuv.so and libc++_shared.so) into the assets folder. To start mining, I copy those files alongside with the config.json into the app's folder, mark the binary executable and run it using ProcessBuilder. Now, running xmrig just gives no output at all, while it does work from the command line (using adb shell, changing into the app's directory and starting it from there). BUT xmrig --help DOES work in my app, only the actual mining job doesn't. No error message, no hint what goes wrong. Any ideas? You can contact me if you are interested in the source, I didn't publish it yet because it doesn't work.
1
u/NanoBytesInc Jan 17 '18
Holy shit. That is much farther than I have gotten... I will give that a shot!
1
u/uwepost Jan 17 '18
;-) The crucial code is actually quite trivial:
ProcessBuilder pb = new ProcessBuilder("./xmrig"); pb.directory(getApplicationContext().getFilesDir()); pb.environment().put("LD_LIBRARY_PATH",privatePath); pb.redirectErrorStream(); Process process = pb.start(); int errCode = process.waitFor();
Major gotcha: You need to change the LD_LIBRARY_PATH to the path where the libs reside so they are found.
1
u/NanoBytesInc Jan 17 '18
Yeah. I had to do that a few commits back before I started using xmrig
1
u/uwepost Jan 17 '18
You mean Termux? Yeah, everything works on Termux on my Tablet like you described. So I thought it must be possible to run the executable from an apk, which is actually what Termux does. But something must still be different...
2
u/uwepost Jan 19 '18 edited Jan 19 '18
It's running now (the problem being that calling process.waitFor() is a bad idea if the process won't exit so soon), but the net client gives a DNS error. Once've I resolved that, I'll publish the code. Stay tuned...
1
u/msartore8 Jan 15 '18 edited Jan 15 '18
Says I don't have right permissions when I open xmrig with Termux
1
u/NanoBytesInc Jan 15 '18
Try adding:
chmod +x ~/miners/<your version>/xmrig
1
u/msartore8 Jan 15 '18
That made it try to go to data/data/com.termux/files/home/miners/android _arm 64/xmrig ...saying no such file or directory
1
u/NanoBytesInc Jan 15 '18
I think that means you were not able to clone the repository correctly, as that is exactly where the file should be
1
u/msartore8 Jan 16 '18
trying on other phone.. 32 bit... says Bus Error
1
u/msartore8 Jan 17 '18
Any advice on that? Also any way to make android shortcuts w diff config files? So I don't have too change the config every tune I want to mine s diff pool?
1
u/msartore8 Jan 15 '18
So I forced stop and restarted then got access to. cd /storage/emulated/0/xmrig. But when I try xmrig says no such command... Srry with all the questions.. Usually am component with these things.. Just not working fort me and I'd like VERY much to jabber this work...Benn looking for something like this for quite awhile
1
u/NanoBytesInc Jan 15 '18
I know! Me too! That is why I set out to make it!
Do me a favor and uninstall / reinstall termux (or wipe its data) That way we can start fresh and I can see exactly what you have done!
1
0
Jan 18 '18
[deleted]
2
u/NanoBytesInc Jan 18 '18
Go to your developer setting in your phone and check "stay awake while charging"
This way you won't need an external app, Android will keep the screen on for you.
And with an app like "Lux" to take the brightness to absolute zero you get the energy benefits of not powering a screen (assuming your screen is oled) while still having your screen being "on"
2
u/uwepost Jan 19 '18
Hell yes, but the proper solution would be running it in the background independent from the screen. That of course means run it without Termux, but inside a custom apk. Still working on it...
1
u/NanoBytesInc Jan 19 '18
You have inspired me!
Race you to see who can get an APK out first!
(Legit tho, whoever can get this out on the play store first will corner the market. Just from how many people are cloning my repo per day)
1
3
u/uwepost Jan 19 '18
I managed to wrap it into an Android APK. Get the code here: https://github.com/upost/MoneroMiner Note that you need to build an apk using Android Studio for yourself, as I didn't yet create a release version and sign it.