A bash script for automated Android device management via ADB. Connect to devices, install APK files, copy backup data, and view device screen remotely.
- ✅ Linux/macOS - Native bash support
- ✅ Windows - Use WSL (Windows Subsystem for Linux)
⚠️ Windows (Git Bash) - Limited support, install ADB separately
- 🔌 Auto device detection - Detects connected Android devices and emulators
- 📱 Manual connection - Connect to devices via IP:PORT
- 📦 Batch APK installation - Install all APK files from a folder
- 💾 Backup copying - Copy backup folder to device storage
- 🖥️ Screen viewer - View device screen remotely (scrcpy support)
- 🔄 Interactive menu - Choose operations without reconnecting
- ADB (Android Debug Bridge) - Must be installed and in PATH
- scrcpy (optional) - For real-time screen viewing
- macOS:
brew install scrcpy - Linux:
sudo apt install scrcpy - Windows: Download from scrcpy releases
- macOS:
-
Create folder structure:
AndroidRemoteControl/ ├── bash.sh ├── apk/ (put your .apk files here) └── backup/ (put backup files here) -
Make script executable:
chmod +x bash.sh
-
Run the script:
./bash.sh
-
Device Selection:
- Script auto-detects connected devices
- Choose device by number OR enter IP:PORT manually
-
Interactive Menu:
- Install all APK files
- Copy backup folder to device
- Open screen viewer
- Exit
apk/- Place APK files here for installation (ignored in git)backup/- Place backup files here (ignored in git)bash.sh- Main script
MIT License - Use freely for personal and commercial projects.