PowerShell and Bash scripts to streamline connecting your Android devices (TVs, Phones, Tablets, etc.) via ADB and launching Scrcpy for screen mirroring or control.
Click your platform to jump to setup instructions:
- Enable Linux (Beta) on your Chromebook.
- Install ADB and Scrcpy:
sudo apt update sudo apt install adb scrcpy
- Clone this repository:
git clone https://github.com/Anonyoumss/Auto-ADB-Scrcpy-connet.git cd Auto-ADB-Scrcpy-connet - Make scripts executable:
chmod +x adb_auto_connect.sh adb_scrcpy_auto_launch.sh
- Run your desired script:
./adb_auto_connect.sh # or ./adb_scrcpy_auto_launch.sh - First-Time Setup:
The script will prompt for your Android device's IP and port (e.g.,192.168.8.93:5555). This info is saved toadb_config.txtfor future use.
- Install ADB and Scrcpy:
For other distros, use your package manager (e.g.,
sudo apt update sudo apt install adb scrcpy
yum,dnf,pacman). - Ensure your user is in the
plugdevgroup (for ADB permissions):sudo usermod -aG plugdev $USER # Log out and back in for group changes to take effect
- Clone this repository:
git clone https://github.com/Anonyoumss/Auto-ADB-Scrcpy-connet.git cd Auto-ADB-Scrcpy-connet - Make scripts executable:
chmod +x adb_auto_connect.sh adb_scrcpy_auto_launch.sh
- Run your desired script:
./adb_auto_connect.sh # or ./adb_scrcpy_auto_launch.sh - First-Time Setup:
The script will prompt for your Android device IP and port. This is saved inadb_config.txtfor future use.
- Download and install:
- Add ADB and Scrcpy to your PATH for global access.
- Clone or download this repository:
git clone https://github.com/Anonyoumss/Auto-ADB-Scrcpy-connet.git cd Auto-ADB-Scrcpy-connet - Run PowerShell script:
Double-clickadb_auto_connect.ps1or run it in PowerShell:.\adb_auto_connect.ps1 # or .\adb_scrcpy_auto_launch.ps1 - First-Time Setup:
On first run (or ifadb_config.txtis missing), you’ll be prompted for ADB/Scrcpy locations and device IP/port. These are saved for future runs.
- Install Homebrew (if not installed):
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" - Install ADB and Scrcpy:
brew install android-platform-tools scrcpy
- Clone this repository:
git clone https://github.com/Anonyoumss/Auto-ADB-Scrcpy-connet.git cd Auto-ADB-Scrcpy-connet - Make scripts executable:
chmod +x adb_auto_connect.sh adb_scrcpy_auto_launch.sh
- Run your desired script:
./adb_auto_connect.sh # or ./adb_scrcpy_auto_launch.sh - First-Time Setup:
The script will prompt for your device's IP and port. This info is saved for later runs.
- Connect your Android device (via USB or ensure it is on the same Wi-Fi network).
- Run the appropriate script for your OS as described above.
- Follow any on-screen prompts (first time only).
- Scrcpy will launch automatically after ADB connection.
- Auto-Connect your Android device.
- Annoy Friends/Family (By blasting the conform message).
- Parental Control (Watch what your kids are watching and change it).
- CCTV (by mirrint the CCTV/Connecting a USB camera and using USB Camera App).
- Automates ADB device connection (USB or Wi-Fi)
- One-click Scrcpy launch
- Remembers device info for faster future connections
- Cross-platform: PowerShell (Windows) and Bash (macOS/Linux/ChromeOS)
Pull requests and issues are welcome!