Hero Background

Next-Gen App & Browser Testing Cloud

Trusted by 2 Mn+ QAs & Devs to accelerate their release cycles

Next-Gen App & Browser Testing Cloud

How to Turn Off Android Debug Bridge?

Turning off Android Debug Bridge (ADB) happens in two places. On your computer you stop the adb server with adb kill-server, and on your Android device you disable USB debugging (and Wireless debugging, if you used it) from Developer options. Doing both stops ADB completely without uninstalling it, so you can switch it back on whenever you need it.

Three Ways to "Turn Off" ADB and Which One You Need

People mean different things by "turn off ADB." The table below maps each action to where it happens and whether it is reversible, so you can pick the right one before running any command.

ActionWhere it runsWhat it doesReversible?
Kill the serverComputerStops the host-side adb process onlyYes, restarts on next command
Disable on deviceAndroid devicePhone stops accepting ADB connectionsYes, re-enable in Settings
UninstallComputerRemoves platform-tools and the adb binaryNo, must reinstall

If you only want ADB to stop running for now, you need the first two rows. The third row, removing ADB for good, is covered in our How to Uninstall Android Debug Bridge? guide.

Stop the ADB Server on Your Computer

The adb server is a background process on your machine that brokers traffic between your terminal and any connected device or emulator. Stopping it is the cleanest way to halt all ADB activity from the host side:

  • Open a terminal or command prompt where adb is on your PATH.
  • Run the kill-server command to terminate the running server.
adb kill-server

Host-only: This terminates the adb server process on your computer and disconnects any attached devices and emulators from that session. It does not stop the adbd daemon on the phone and changes nothing on the device itself.

It restarts automatically: The server relaunches the next time you issue any adb command, so killing it is a pause rather than a permanent off switch. To start it again deliberately, run adb start-server.

If you only want to drop one connection instead of stopping the whole server, for example a single networked device, use the disconnect command:

adb disconnect

Disable USB Debugging on Your Android Device

Killing the server only pauses ADB on the host. To stop the phone from accepting ADB connections at all, including from any other computer, turn off USB debugging on the device:

  • Open Settings on your Android device.
  • Go to System > Developer options. If you do not see Developer options, open About phone and tap Build number seven times to unlock it first.
  • Toggle USB debugging off.
  • (Optional) Tap Revoke USB debugging authorizations to clear the list of computers your phone previously trusted.
  • (Optional) Turn the whole Developer options switch off if you want to hide the menu as well.

Turning off USB debugging is the most important step for security, because ADB has no transport-level authentication beyond the one-time RSA prompt. Revoking authorizations is a useful extra step if you have connected the phone to shared or untrusted machines.

Turn Off Wireless (ADB over Wi-Fi) Debugging

If you ever paired your device for ADB over Wi-Fi, killing the USB session is not enough; the wireless channel stays available until you close it. Shut it down on both sides:

  • Drop active wireless connections from your computer with the disconnect command.
adb disconnect
  • On the device, open Settings > System > Developer options > Wireless debugging and toggle it off.
  • To remove a remembered computer, tap its name under Paired devices and select Forget.

Kill the Server vs Disable on Device vs Uninstall

These three actions are often confused, but they operate at completely different levels. Knowing the difference saves you from, say, deleting platform-tools when you only wanted ADB to stop for a few minutes:

  • Kill the server: A host-side pause. adb kill-server stops the adb process on your computer and removes nothing; the next adb command brings it straight back.
  • Disable on device: A device-side block. Turning off USB or Wireless debugging makes the phone reject ADB until you re-enable it, no matter which computer tries to connect.
  • Uninstall: A permanent removal. Deleting the platform-tools folder erases the adb binary from your machine, so you would need to reinstall it to use ADB again.

One way to avoid managing the adb lifecycle by hand is to run your Android sessions on a cloud platform. With a Real Device Cloud, devices are provisioned and released for you, so there is no local adb server to start, kill, or secure between test runs.

Frequently Asked Questions

Does adb kill-server uninstall ADB?

No. adb kill-server only stops the adb server process on your computer. The platform-tools files, the adb binary, and your PATH entry all stay in place. To actually remove ADB you delete the platform-tools folder or uninstall it through your package manager.

Does adb kill-server affect my Android device?

No. The command terminates only the host-side server on your computer. It does not stop the adbd daemon on the phone, does not reset the device, and does not touch any device settings. USB debugging stays enabled, and the phone will accept ADB again as soon as a server is running.

How do I restart ADB after turning it off?

Run any adb command, such as adb devices, and the server starts again automatically. You can also start it explicitly with adb start-server. If you disabled USB debugging on the device, re-enable it from Settings > System > Developer options before reconnecting.

Is disabling USB debugging enough to keep my device secure?

For most users, yes. Turning off USB debugging stops the phone from accepting ADB connections, which is the main reason to disable it when you are done. For added safety, also tap Revoke USB debugging authorizations to clear trusted computers, and turn off Wireless debugging if you ever used ADB over Wi-Fi.

What is the difference between turning off ADB and uninstalling it?

Turning off ADB is reversible and removes nothing: killing the server stops the host process, and disabling USB debugging stops the device from accepting connections, but the tools stay installed. Uninstalling deletes the platform-tools folder permanently and is what you do when you no longer need ADB at all.

How do I turn off ADB over Wi-Fi (wireless debugging)?

Run adb disconnect to drop active wireless connections, then open Settings > System > Developer options > Wireless debugging on the device and toggle it off. To remove a paired computer, tap its name under Paired devices and select Forget.

Related Questions

Test Your Website on 3000+ Browsers

Get 100 minutes of automation test minutes FREE!!

Test Now...

KaneAI - Testing Assistant

World’s first AI-Native E2E testing agent.

...

TestMu AI forEnterprise

Get access to solutions built on Enterprise
grade security, privacy, & compliance

  • Advanced access controls
  • Advanced data retention rules
  • Advanced Local Testing
  • Premium Support options
  • Early access to beta features
  • Private Slack Channel
  • Unlimited Manual Accessibility DevTools Tests