Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

ADB Setup for Rooting Android on Windows PC

· 6 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

Setting up ADB (Android Debug Bridge) on a Windows PC is the first step to rooting most Android phones. ADB lets your PC talk to your phone for commands like flashing a custom recovery or pushing root files. This guide covers installing the official platform-tools, enabling USB debugging, and testing the connection—so you're ready for the rooting steps that follow. You'll need a Windows PC, your Android phone, and a USB cable.

What You'll Need

  • Windows PC (Windows 10 or 11 recommended)
  • Android smartphone (any brand that allows USB debugging)
  • USB data cable (not just a charging cable)
  • Internet connection to download official Google platform-tools
  • Phone's USB drivers (usually auto-installed, but Samsung and some others may need manual install)

Step-by-Step

  1. Enable Developer Options on your phone. Go to Settings > About Phone and tap Build Number seven times. You'll see a message saying you're now a developer. This works on most Android phones, but the exact menu name may vary (e.g., “Software Information” on Samsung).
  2. Turn on USB debugging. Go to Settings > Developer Options and toggle USB debugging on. If you don't see Developer Options, you may need to search “Developer” in Settings.
  3. Download platform-tools from Google. Open your browser and go to the official Android developer page for “SDK Platform Tools.” Download the Windows ZIP file (it's about 5–10 MB). Do not download from third-party sites—stick to the official source.
  4. Extract the ZIP. Right-click the downloaded ZIP and choose “Extract All.” Extract to a simple folder like C:\adb or C:\platform-tools. Avoid folders with spaces like “Program Files” because they can cause command-line issues.
  5. Open Command Prompt in that folder. Hold Shift and right-click inside the extracted folder, then choose “Open PowerShell window here” or “Open command window here.” If you don't see that option, open Command Prompt and type cd C:\adb (adjust to your folder path).
  6. Test ADB version. Type adb version and press Enter. You should see a version number and “Android Debug Bridge” in the output. If you get “not recognized,” you're in the wrong folder or the path is wrong.
  7. Connect your phone via USB. Plug your phone into the PC. On your phone, a prompt will appear: “Allow USB debugging?” Check “Always allow from this computer” and tap Allow. If you don't see the prompt, check that USB debugging is on and the cable is a data cable.
  8. Verify the device is recognized. In the Command Prompt, type adb devices and press Enter. You should see a device listed with the status “device” (not “unauthorized” or “offline”). If it says “unauthorized,” unplug and replug the USB, then re-allow the prompt.
  9. Optional: Test ADB commands. Type adb shell to get a command prompt on your phone. Type exit to leave. This confirms ADB is fully functional.

Common Mistakes

  • Using a charge-only cable. Many USB cables lack data lines. If ADB doesn't see your device, try a different cable—preferably the one that came with the phone.
  • Not enabling USB debugging. Double-check that Developer Options are on and USB debugging is toggled. Some phones (like OnePlus) require you to also enable “USB debugging (Security settings)” for certain commands, but that's not needed for basic ADB.
  • Wrong folder in Command Prompt. If you get “adb is not recognized,” you're not in the folder with adb.exe. Use cd to navigate, or open the command prompt from the extracted folder.
  • Driver issues. Windows may not automatically install the correct USB driver for your phone. For Samsung, you may need “Samsung USB Driver” from their official site. For other brands, Google's “USB Driver” (available via Android Studio) can help, but often the generic driver works.
  • Prompt not appearing on phone. If the “Allow USB debugging” dialog never shows, go to Developer Options and tap “Revoke USB debugging authorizations,” then reconnect. Also, try changing the USB mode from “Charge only” to “File Transfer” (MTP) in the notification shade.

Tips

  • Keep the platform-tools folder in a permanent location. You'll use it again for rooting commands, so don't delete it after setup.
  • Add ADB to your PATH (optional). If you want to run adb from any command prompt, you can add the folder path to your system's PATH environment variable. This is a more advanced step but saves time later.
  • Use a USB 2.0 port. Some older USB 3.0 ports have compatibility issues with ADB. If you have trouble, try a different port.
  • Check your phone's screen. If the phone locks while you're working, ADB may lose connection. Keep the screen on or disable sleep temporarily in Developer Options (set “Stay awake” to on).
  • Back up your data before rooting. Rooting often unlocks the bootloader, which wipes your phone. Even if you're just setting up ADB now, make a backup before proceeding with any root steps.

Troubleshooting

If adb devices shows nothing or an error, try these in order:

  1. Restart everything. Unplug your phone, restart your PC, and re-enable USB debugging on the phone. Then reconnect.
  2. Check the cable and port. Try a different USB cable and a different port on your PC. If you have another PC, test there to isolate the issue.
  3. Update or reinstall drivers. Open Device Manager (right-click Start > Device Manager). Look for your phone under “Portable Devices” or “Other devices” with a yellow warning. Right-click and choose “Update driver” > “Search automatically.” If that fails, download the official driver from your phone manufacturer's support page and install it manually.
  4. Revoke USB debugging authorizations. On your phone, go to Developer Options and tap “Revoke USB debugging authorizations.” Then reconnect and allow the prompt again.
  5. Try a different USB mode. On your phone, pull down the notification shade and tap the USB connection notification. Switch from “Charging” to “File Transfer” (MTP) or “PTP” and try again.
  6. If it says “unauthorized,” check your phone screen for the allow dialog—sometimes it appears behind the lock screen. Unlock and tap Allow.
  7. If it says “offline,” unplug and replug the cable, then run adb kill-server and adb start-server in the command prompt, then adb devices again.

If nothing works, your phone may have a specific quirk—search for “ ADB driver Windows” on the manufacturer's official support site.

Frequently Asked Questions

Do I need to root my phone to use ADB?

No. ADB works on stock, unrooted Android phones. In fact, you must have ADB working before you can root, because rooting often requires sending commands via ADB.

Will enabling USB debugging harm my phone?

No, it just allows your PC to send Android commands. It's a standard developer feature. However, it does make your phone more accessible to a connected computer, so only enable it when you need it and disable it after you're done rooting.

What if my phone isn't detected but the cable charges it?

That usually means the cable is charge-only or the driver is missing. Try a data cable and update the driver as described above.

Can I use ADB over Wi-Fi?

Yes, but it's more complicated and not recommended for rooting. You'd need to connect via USB first to enable wireless debugging, then use adb pair and adb connect (available in newer platform-tools). For rooting, stick to USB.

Is it safe to download platform-tools from Google?

Yes, it's the official source. Always download from the Android developer site to avoid malware.

Do I need to unlock the bootloader before ADB works?

No, ADB works regardless of bootloader status. Unlocking the bootloader is a separate step that you may do later as part of rooting, and it will wipe your data.