/Project-Mirror

This guide will help you mirror your mobile phone screen on your desktop using ADB (Android Debug Bridge) and scrcpy. Follow the steps below to set up and run the tools.

Primary LanguageVBScript

Project-Mirror

  • This guide will help you mirror your mobile phone screen on your desktop using ADB (Android Debug Bridge) and scrcpy. Follow the steps below to set up and run the tools.

Requirements

  • Android device with Developer Options enabled.
  • USB cable to connect your phone to your desktop.
  • A computer running Windows with ADB and scrcpy installed.

Steps

Mobile Setup

  1. Enable Developer Options:
    • On your Android device, go to Settings > About phone.
    • Tap Build number seven times to enable Developer Options.
    • Go back to Settings > System > Developer options.
  2. Enable USB Debugging:
    • In Developer Options, enable USB debugging.
  3. Enable ADB Over Network (if necessary):
    • In Developer Options, enable ADB over network.

Desktop Setup

  1. Download and Extract Files:
    • Download the platform-tools package and extract it to a location on your desktop.
    • Ensure the extracted folder contains adb.exe and scrcpy.exe along with other necessary files.
  2. Open Terminal in Platform-Tools Folder:
    • Navigate to the platform-tools folder in File Explorer.
    • Right-click inside the folder and select "Open in Terminal".
  3. Connect to the Device via ADB:
    • Using Network (if your device is already configured for ADB over network):
      .\adb connect <device_ip>:5555
      Replace <device_ip> with the actual IP address of your device.
    • Using USB (if network connection fails):
      1. Connect your phone to your desktop via USB.
      2. Run the following command to list connected devices and ensure your device is listed:
        .\adb devices
      3. If the device shows as unauthorized, authorize debugging on your phone when prompted.
      4. Enable ADB over network:
        .\adb tcpip 5555
      5. Disconnect the USB cable and connect using the network method as described above.

Running scrcpy.exe

  1. Execute scrcpy:
    • Once ADB is connected to your device, double-click scrcpy.exe in the platform-tools folder.
    • A terminal window will open. Wait for the terminal to load and initialize.
  2. Start Mirroring:
    • Select all text in the terminal and copy it.
    • A window displaying your phone screen should open on your desktop.

Troubleshooting

  • If you encounter connection issues, ensure both your desktop and mobile device are on the same network.
  • Ensure no firewalls or network security settings are blocking the connection.
  • Restart ADB server if necessary:
    .\adb kill-server
    .\adb start-server

By following these steps, you should be able to successfully mirror your mobile phone screen on your desktop. Enjoy using scrcpy for a seamless mirroring experience!