• Stars
    star
    156
  • Rank 239,589 (Top 5 %)
  • Language
    Java
  • License
    GNU General Publi...
  • Created almost 7 years ago
  • Updated over 3 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Proof of concept for using xmrig mining inside an Android APK

Monero Miner for Android

Proof of concept using the xmrig miner inside an Android APK.

Sorry, this was only meant as a proof of concept. The project is not maintained anymore. Anyway it's not advisable to use it on a single phone, as it will be waaayy to slow to generate any revenue.

Based on the binaries from https://github.com/NanoBytesInc/miners Which is based on the code from https://github.com/xmrig/xmrig

Usage

This will currently only work on devices with ARM64 architecture.

Install and run the app, enter your pool and wallet data, then press the start button to start mining or stop to stop mining. The prefilled wallet is mine, so if you try the app, just keep it and I earn, ehm... next to nothing ;-) The help button will show xmrig's help output for convenience.

As this is considered a proof of concept, only pool address, username, threads and max cup usage can be edited in the UI currently (there is currently no sanity check to your inputs). You can change the rest of the config in assets/config.json. The configuration is set to low values and regular display of hashrate is set to 1m.

Notes

The xmrig binary is copied to the app's internal directory along with its dependent libraries. (This is done because it can only be executed there.) Then, the binary is started using the ProcessBuilder class, and the output is captured into the app's scrolling pane once each secons.

Currently only arm64 binaries are included, and the app will refuse to work on other architectures like x86 or 32 bit devices.

License

xmrig is licensed as GPLv3, thus this derivative work also is. You need to consider this if you plan to build a "real" Android app. You'd propably need to make it GPLv3 also, unless you can somehow make use of the GPL clause which allows to bundle a GPLv3 binary with another propietary licensed binary.