# How to mine for bitcoins with a rooted Android.
# Download the miner binaries:
#1. Install "AndLTC Miner" from the Google Play store.
#2. Open that application.
#3. Select the minerd called NEON (don't bother with anything else, it's litecoin mining ONLY).
#3. Click "Start".
#4. Wait for the download it talks about to complete and for threads to be started.
#5. Press "Stop".
#6. Exit the application.
#7. Delete any icons for it that are on your desktop. DON'T uninstall the actual application, though!
# Create a miner script:
#1. Install "mount /system (rw / ro)" from the Google Play store.
#2. Install a terminal emulator from the Google Play store.
#3. Open the terminal emulator.
#4. Type the following line to get root access. You only need to give the terminal root this one time.
su
cd /system/xbin
#5. Type the following line to create an empty script file:
echo \#!/system/bin/sh>mine
#6. If you get the error "cannot create mine: read-only file system", switch to the "mount /system" application you just downloaded and click the "Mount r/w" button. Wait for it to remount, then go back to the terminal and try step 5 again.
#7. Create the script by typing the following into the terminal (change the host, port, username, and password to whatever you're supposed to use for your miners):
chmod 755 /system/xbin/mine
echo /data/data/com.simran.andltcminer/minerd-NEON -q -a sha256d -t 4 -o http://api.bitcoin.cz:8332 -O username:password >>mine
#8. Allow the minerd to be run by anyone:
chmod 755 /data/data/com.simran.andltcminer/minerd-NEON
#9. If and ONLY if you followed step #6 to remount /system, go back to the "mount /system" application, press the "Mount r/o" button, and let it remount /system.
# Test it!
#1. Open a terminal.
#2. Type the following to start mining:
mine
#3. To stop mining, close the terminal window. Don't just switch applications! You need to fully close it.
#4. If that failed, you can try these instructions again.
# Cleaning up.
#1. If everything works, uninstall the "mount /system" application.
#2. Starting to mine is as easy as opening a terminal and typing `mine`. You can switch to other applications while that's going.
#3. Stopping mining is as easy as telling the terminal application to close that window.