How to Connect Your Android Mobile to Your Laptop and Use ADB Commands - Notes By ShariqSP
How to Connect Your Android Mobile to Your Laptop and Use ADB Commands
-
Enable Developer Options on Your Android Device:
- Go to Settings > About Phone.
- Tap on Build Number 7 times to enable Developer Options.
- Navigate back to Settings and open Developer Options.
- Enable USB Debugging.
-
Install ADB on Your Laptop:
- Download the Android SDK Platform Tools from the official Android website.
- Extract the downloaded file to a folder on your laptop.
- Open a command prompt or terminal in the extracted folder.
-
Connect Your Android Device to Your Laptop:
- Use a USB cable to connect your phone to your laptop.
- On your phone, select File Transfer mode (if prompted).
- Authorize the connection on your phone when a USB debugging prompt appears.
-
Verify ADB Connection:
- Open the command prompt or terminal and type:
adb devices
.
- Ensure your device appears in the list of connected devices.
-
Use ADB Commands:
- You can now use ADB commands such as:
adb shell
, adb install
, or adb push
.
-
Mirror Your Android Screen on Windows:
- Download and install the vysor tool on your laptop.
- Run the
vysor.exe
file. Your phone screen should appear on your laptop.