12

I have a spare Android smartphone and thought of running a full node on it, since its power consumption is very low and I wouldn't have to run my PC all day but still would have an up to date monerod in my home network. Thanks to a micro SD slot and Wifi, space and bandwidth is not an issue.

So is it possible to get monerod running on Android?

marcrypt
  • 347
  • 2
  • 6

3 Answers3

12

Yes, there are already people running Monero full nodes with Android using GNURoot (which doesn't require a rooted phone, despite its name) as suggested by villabacho.

The proof of concept can be tested easily according to the steps listed by binaryFate:

  1. Install GNUroot Debian
  2. Launch it, and type the following into the terminal:

apt-get update && apt-get install wget bzip2

wget -O monero.tar.bzip2 https://downloads.getmonero.org/arm

bzip2 -d monero.tar.bzip2

tar -xf monero.tar

rm monero.tar

monero/monero-wallet-cli (use --daemon-host for a remote node)

If you have enough storage and want to have a better privacy, download and store the blockchain on a SD card. Otherwise it may be more feasible to use a remote node, which is faster and easier.

Smart Kid
  • 6,563
  • 2
  • 36
  • 62
  • Thank you both for the advice! And you especially for the step by step tutorial, will try it shortly. – marcrypt Nov 12 '16 at 13:35
  • Here's what I did. On the remote computer: ./monerod --rpc-bind-ip <external.ip.of.node> --restricted-rpc --confirm-external-bind

    On the phone: ./monero-wallet-cli --wallet-file phone.bin --daemon-host <external.ip.of.node>

    Use Shift-Ctrl-v to paste in GNUroot. Also, it may be helpful to install [Hackers Keyboard] https://play.google.com/store/apps/details?id=org.pocketworkstation.pckeyboard&hl=en so you can use the arrows, tab, and other keys.

    – user3184415 Apr 02 '17 at 00:53
  • 1
    c789 - are you running the node on the phone or the remote computer? The question was for running a node on the phone. Your commands make it look like your running the node on the remote computer. ..... ? – Ginger Ale Apr 03 '17 at 11:25
  • How do you get write permissions to your external sd card? – user2284570 Dec 20 '19 at 00:44
4

You can also build monerod with the Android NDK and run it natively, instead of having to install GNURoot and running the Linux binaries.

https://www.reddit.com/r/Monero/comments/651un2/monero_v01031_cli_for_android_arm64/

hyc
  • 4,233
  • 18
  • 21
  • 2
    This is great! Would you be willing to modify your answer to include the full instructions here instead of just the Reddit link to them? – Smart Kid Apr 16 '17 at 19:18
  • 1
    Maybe after the PR gets merged would be better. – hyc Apr 17 '17 at 02:02
2

I'd use GNURoot to install and run Linux on your Android device, and then use the Linux version of monerod. This does not require rooting your device.

villabacho
  • 1,205
  • 6
  • 14
  • Except no phone have 80Gb of internal storage as writing to external sdcard is diabled after kitkat using this method. – user2284570 Dec 20 '19 at 00:47