- 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.
- Android device with Developer Options enabled.
- USB cable to connect your phone to your desktop.
- A computer running Windows with ADB and
scrcpy
installed.
-
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.
-
Enable USB Debugging:
- In Developer Options, enable USB debugging.
-
Enable ADB Over Network (if necessary):
- In Developer Options, enable ADB over network.
-
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
andscrcpy.exe
along with other necessary files.
-
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".
-
Connect to the Device via ADB:
-
Using Network (if your device is already configured for ADB over network):
Replace
.\adb connect <device_ip>:5555
<device_ip>
with the actual IP address of your device. -
Using USB (if network connection fails):
- Connect your phone to your desktop via USB.
- Run the following command to list connected devices and ensure your device is listed:
.\adb devices
- If the device shows as
unauthorized
, authorize debugging on your phone when prompted. - Enable ADB over network:
.\adb tcpip 5555
- Disconnect the USB cable and connect using the network method as described above.
-
Using Network (if your device is already configured for ADB over network):
-
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.
- Once ADB is connected to your device, double-click
-
Start Mirroring:
- Select all text in the terminal and copy it.
- A window displaying your phone screen should open on your desktop.
- 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!