So, I'm looking at cryptocurrencies again, and setup a miner for Magi, and thinking, "hey, this is a CPU coin thats supposed to be fair", I decided to take it to its logicial extreme, and see if I could get the miner to run under android (specifically my Nexus 5).
The answer?
Yup:
[2015-03-21 11:00:41] 4 miner threads started, using 'm7mhash' algorithm.
[2015-03-21 11:00:41] Binding thread 2 to cpu 2
[2015-03-21 11:00:41] Starting Stratum on stratum+tcp://128.199.42.144:3334
[2015-03-21 11:00:41] Binding thread 0 to cpu 0
[2015-03-21 11:00:41] Binding thread 3 to cpu 3
[2015-03-21 11:00:41] Binding thread 1 to cpu 1
[2015-03-21 11:00:42] Stratum requested work restart
[2015-03-21 11:00:57] thread 2: 48604 hashes, 3.40 khash/s
[2015-03-21 11:00:57] accepted: 1/1 (100.00%), 3.40 khash/s (yay!!!)
[2015-03-21 11:00:58] thread 2: 4060 hashes, 3.45 khash/s
[2015-03-21 11:00:58] accepted: 2/2 (100.00%), 3.45 khash/s (yay!!!)
[2015-03-21 11:01:07] thread 2: 30826 hashes, 3.41 khash/s
[2015-03-21 11:01:07] accepted: 3/3 (100.00%), 3.41 khash/s (yay!!!)
[2015-03-21 11:01:18] Stratum requested work restart
With some pain, I got the miner to compile against bionic and run non-rooted (currently you have to use adb to start the daemon, but writing a frontend shouldn't be hard).
Here's the device specs on CPU power:
/proc/cpuinfo info:
Processor : ARMv7 Processor rev 0 (v7l)
processor : 0
BogoMIPS : 38.40
processor : 1
BogoMIPS : 38.40
processor : 2
BogoMIPS : 38.40
processor : 3
BogoMIPS : 38.40
Features : swp half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt
CPU implementer : 0x51
CPU architecture: 7
CPU variant : 0x2
CPU part : 0x06f
CPU revision : 0
Hardware : Qualcomm MSM 8974 HAMMERHEAD (Flattened Device Tree)
Revision : 000b
Serial : 0000000000000000
I'm honestly not sure if this would be superuseful, but I won't mind building this into an actual APK. Figure tons of us have old Android phones that aren't in use anymore ...