Mining with Android devices
Aminer is an open source script that makes it easy to deploy XMRig on Android devices to mine cryptocurrencies, primarily Monero (XMR). Perfect for utilizing spare Android devices for lightweight cryptocurrency mining.
⚠️ Security Notice: Cryptocurrency mining may drain your device’s battery and generate heat. Use at your own risk and ensure proper ventilation. Only use trusted mining pools and be aware of electricity costs.
简体中文版
Screenshots ✨
Earnings 💰
⚠️ Important Disclaimer: These figures are for reference only and represent the situation at the time of publication. Actual earnings may vary significantly based on:
- Current network difficulty
- Market prices
- Pool fees
- Device performance
- Electricity costs
Historical Reference Data:
- Snapdragon 865 in c3-pool: ~1.5KH/s hash rate, estimated ¥0.8 per 24h
- Snapdragon 625 in c3-pool: ~1KH/s hash rate, estimated ¥0.5 per 24h
💡 Performance Note: Mining performance varies greatly between devices. Consider your electricity costs and device wear before mining.
Compatibility 📱
System Requirements:
- Android 4.4+ (API level 19+)
- 64-bit architecture (arm64, x86-64)
- At least 2GB RAM recommended
- Stable internet connection
- Termux app installed
Termux Version Compatibility:
- Android 7+: Use latest Termux from F-Droid or GitHub
- Android 6 and below: Use Termux v0.73
✅ Tested Devices:
| Device |
Android Version |
Termux Version |
Status |
| Redmi Note 2 |
5.0 |
0.73 |
✅ Working |
| Redmi 5 Plus |
7.0 |
0.108 |
✅ Working |
| Redmi K30 Pro |
11 |
0.108 |
✅ Working |
| Samsung A50 |
11 |
0.108 |
✅ Working |
| Xiaomi 11 |
N/A |
N/A |
✅ Working |
| Meizu Note6 |
7.1.2 |
N/A |
✅ Working |
| Meizu Note5 |
7.1 |
N/A |
✅ Working |
| Huawei R9m |
7.1 |
N/A |
✅ Working |
| Honor 5X |
7.1 |
N/A |
✅ Working |
| Xiaomi 8 |
10 |
N/A |
✅ Working |
| Vivo S7e |
10 |
N/A |
✅ Working |
| Samsung S21 |
N/A |
N/A |
✅ Working |
| Huawei P50 |
N/A |
N/A |
✅ Working |
📝 Note: Feel free to open an issue to report compatibility with your device!
Quick Start 🚀
Prerequisites
-
Install Termux:
- Android 7+: Download from F-Droid or GitHub Releases
- Android 6 and below: Install Termux v0.73 (legacy version)
-
Prepare Termux Environment:
# For older Android versions, update package lists first
pkg update -y && pkg install curl -y
Installation
Run the following command in your Termux terminal:
bash <(curl -fsSL git.io/aminer) -u your_wallet_address
Example:
bash <(curl -fsSL git.io/aminer) -u 45xh7ksV8w4...your_monero_address
What Happens During Installation
- ⬇️ Downloads and installs Ubuntu container
- 🔧 Installs build dependencies (git, cmake, gcc, etc.)
- 📦 Compiles XMRig from source
- ⚙️ Configures mining parameters
- 🎯 Sets up daemon for automatic restart
Installation Time: ~20 minutes (depends on your internet speed)
Success Indicator: You’ll see the blue message:
##### Please restart Termux to run XMRIG #####
Start Mining
- Close and reopen Termux - Mining will start automatically
- Monitor Progress - Check your pool dashboard for statistics
- View Logs - Mining output will be displayed in the terminal
⚠️ Important: Make sure your device has good ventilation and consider the impact on battery life.
Usage ⌨️
Basic Usage
bash <(curl -fsSL git.io/aminer) [options...] <arguments>
Command Line Options
| Option |
Description |
Example |
-y |
Auto mode (skip risk warnings) |
-y |
-u |
Mining pool username/wallet |
-u 45xh7ks... |
-p |
Mining pool password |
-p worker_name |
-o |
Mining pool URL and port |
-o mine.pool.com:1234 |
-d |
Donation level to XMRig developers |
-d 1 |
-g |
Setup SSH with GitHub username |
-g your_github_user |
Examples
Basic mining with custom wallet:
bash <(curl -fsSL git.io/aminer) -u your_monero_wallet_address
Custom pool and settings:
bash <(curl -fsSL git.io/aminer) -u wallet -p worker1 -o pool.example.com:4444 -d 0
Auto-install with SSH setup:
bash <(curl -fsSL git.io/aminer) -y -u wallet -g github_username
Post-Installation Commands
Check mining status:
./ubuntu.sh
ps aux | grep xmrig
Stop mining:
./ubuntu.sh
pkill xmrig
Restart mining:
./ubuntu.sh
./service.sh
Features 👍
⚡ Mining Management
🎯 Pool Configuration
🏗️ System Features
🔧 Advanced Options
📊 Monitoring & Logs
Contributing 🤝
We welcome contributions to improve Aminer! Here’s how you can help:
🐛 Bug Reports
- Open an issue describing the problem
- Include device model, Android version, and Termux version
- Provide logs and steps to reproduce
💡 Feature Requests
- Suggest new features or improvements
- Explain the use case and benefits
📝 Documentation
- Help improve README translations
- Add device compatibility information
- Write tutorials and guides
💻 Code Contributions
- Fork the repository
- Create a feature branch
- Submit a pull request with clear description
Troubleshooting 🔧
Common Issues
Installation fails:
- Ensure stable internet connection
- Try using a VPN if in regions with network restrictions
- Check available storage space (needs ~500MB)
Mining doesn’t start:
- Restart Termux completely
- Check if XMRig binary exists:
ls ~/ubuntu-in-termux/ubuntu-fs/root/xmrig
- Review installation logs for errors
Low hash rate:
- Close other apps to free up CPU resources
- Ensure device isn’t thermal throttling
- Check pool connection status
Need Help?
- 📧 Open an issue on GitHub
- 🔍 Check existing issues for solutions
- 📱 Verify your device meets minimum requirements
Thanks 💐
This project builds upon the excellent work of:
Special thanks to all contributors and testers who help improve this project! 🙏
🏵 Aminer ©Josh Zeng. Released under the BSD-3-Clause License.
Authored and maintained by Josh Zeng.
@Blog · @GitHub
评论