Skip to content

Anonyoumss/Auto-ADB-Scrcpy-connet

Repository files navigation

Auto-ADB-Scrcpy-connet

PowerShell and Bash scripts to streamline connecting your Android devices (TVs, Phones, Tablets, etc.) via ADB and launching Scrcpy for screen mirroring or control.


📦 Installation

Click your platform to jump to setup instructions:

ChromeOS Linux Windows macOS


ChromeOS Setup

  1. Enable Linux (Beta) on your Chromebook.
  2. Install ADB and Scrcpy:
    sudo apt update
    sudo apt install adb scrcpy
  3. Clone this repository:
    git clone https://github.com/Anonyoumss/Auto-ADB-Scrcpy-connet.git
    cd Auto-ADB-Scrcpy-connet
  4. Make scripts executable:
    chmod +x adb_auto_connect.sh adb_scrcpy_auto_launch.sh
  5. Run your desired script:
    ./adb_auto_connect.sh
    # or
    ./adb_scrcpy_auto_launch.sh
  6. 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 to adb_config.txt for future use.

Linux Setup

  1. Install ADB and Scrcpy:
    sudo apt update
    sudo apt install adb scrcpy
    For other distros, use your package manager (e.g., yum, dnf, pacman).
  2. Ensure your user is in the plugdev group (for ADB permissions):
    sudo usermod -aG plugdev $USER
    # Log out and back in for group changes to take effect
  3. Clone this repository:
    git clone https://github.com/Anonyoumss/Auto-ADB-Scrcpy-connet.git
    cd Auto-ADB-Scrcpy-connet
  4. Make scripts executable:
    chmod +x adb_auto_connect.sh adb_scrcpy_auto_launch.sh
  5. Run your desired script:
    ./adb_auto_connect.sh
    # or
    ./adb_scrcpy_auto_launch.sh
  6. First-Time Setup:
    The script will prompt for your Android device IP and port. This is saved in adb_config.txt for future use.

🪟 Windows Setup

  1. Download and install:
  2. Add ADB and Scrcpy to your PATH for global access.
  3. Clone or download this repository:
    git clone https://github.com/Anonyoumss/Auto-ADB-Scrcpy-connet.git
    cd Auto-ADB-Scrcpy-connet
  4. Run PowerShell script:
    Double-click adb_auto_connect.ps1 or run it in PowerShell:
    .\adb_auto_connect.ps1
    # or
    .\adb_scrcpy_auto_launch.ps1
  5. First-Time Setup:
    On first run (or if adb_config.txt is missing), you’ll be prompted for ADB/Scrcpy locations and device IP/port. These are saved for future runs.

🍎 macOS Setup

  1. Install Homebrew (if not installed):
    /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
  2. Install ADB and Scrcpy:
    brew install android-platform-tools scrcpy
  3. Clone this repository:
    git clone https://github.com/Anonyoumss/Auto-ADB-Scrcpy-connet.git
    cd Auto-ADB-Scrcpy-connet
  4. Make scripts executable:
    chmod +x adb_auto_connect.sh adb_scrcpy_auto_launch.sh
  5. Run your desired script:
    ./adb_auto_connect.sh
    # or
    ./adb_scrcpy_auto_launch.sh
  6. First-Time Setup:
    The script will prompt for your device's IP and port. This info is saved for later runs.

🚀 Usage

  1. Connect your Android device (via USB or ensure it is on the same Wi-Fi network).
  2. Run the appropriate script for your OS as described above.
  3. Follow any on-screen prompts (first time only).
  4. Scrcpy will launch automatically after ADB connection.

Use cases

  1. Auto-Connect your Android device.
  2. Annoy Friends/Family (By blasting the conform message).
  3. Parental Control (Watch what your kids are watching and change it).
  4. CCTV (by mirrint the CCTV/Connecting a USB camera and using USB Camera App).

🛠️ Features

  • 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)

🤝 Contributing

Pull requests and issues are welcome!


About

Auto-ADB-Scrcpy-connet: PowerShell scripts for automating ADB connection and Scrcpy launch for Android Devices TV/Phone/Tablet e.t.c !

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors