Alt Tag

Android Debug Bridge (ADB) Setup Guide

Setting up ADB


  1. Obtain the ADB Platform Tools from the official Android developer website.
  2. Unzip the file and navigate to the extracted folder.
  3. Within the folder, access the Command Prompt by typing cmd in the File Explorer’s address bar and pressing Enter.

Note: Direct navigation to the folder is required unless you have added the directory to your Environment Variables, which is detailed later in this guide.


  1. Enable Developer Options:
    • Navigate to Settings > About phone.
    • Tap Build number seven times until the message “You are now a developer!” appears.
  2. Activate USB/Wireless Debugging:
    • Access Developer Options.
    • Enable USB debugging or Wireless debugging, depending on your preference.
USB debugging:
  • Execute adb devices in the Command Prompt.
  • If prompted on your phone, select “Always allow from this computer” and confirm.

For Multiple Devices:

  • Use the device serial number with commands, e.g., adb -s <serial-number> pull.
Wireless debugging:
  • In Developer Options, select Wireless debugging and choose Pair with a code.
  • Execute adb pair <ip-address>:<port> using the provided IP address and port.
  • Enter the pairing code when prompted in the terminal.

Android TV

  1. Enable Developer Options and USB debugging.
  2. Locate the option according to your TV manufacturer’s settings.
  3. Connect via adb connect <ip-address>, using the IP address from the TV’s Wi-Fi settings.

Storage Backup & Restore

  1. Open Command Prompt and run adb devices to list connected devices.
  2. Use adb pull -a /sdcard <destination-path> to copy the entire internal storage. The -a flag preserves file attributes.
  3. Set up ADB on the target device and connect it to your computer.
  4. Push the data using adb push <source-folder>\. /sdcard, e.g., adb push "D:\My phone\sdcard\." /sdcard.
  5. Upon completion of the necessary adb operations, execute the command adb kill-server. This will terminate the adb service.

Installing APK Files

  • Use reputable sources like APKMirror, UpToDown, or APKPure to download APK files.
  • With the device connected, execute adb install <apk-filename> from the directory containing adb.exe and the APK file. You may also specify the full path to the APK file if it is located in a different directory.

Setting Environment Variables

  1. Open Edit the system environment variables and navigate to Environment Variables....
  2. Under System variables, select the Path variable and click Edit.
  3. Add the directory containing adb.exe using the New or Browse options.
  4. Confirm all dialogs with Ok.

Note: This allows you to use ADB commands from any location in the terminal.

For further assistance or advanced configurations, consult the official Android Debug Bridge documentation.

Looking for a maintainer. Please DM me at WildeBeast2521 if you are interested in bringing this guide to its pinnacle.
Also, check out the FMHY Discord to learn, share and connect with the great devs.

Alt Tag

Pub: 29 May 2024 16:43 UTC
Edit: 30 May 2024 06:18 UTC
Views: 528