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

  1. 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.
  2. 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.
  3. 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.
  4. Verify ADB Connection:
    • Open the command prompt or terminal and type: adb devices.
    • Ensure your device appears in the list of connected devices.
  5. Use ADB Commands:
    • You can now use ADB commands such as: adb shell, adb install, or adb push.
  6. 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.