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?

To turn off Android Debug Bridge, run adb kill-server on your computer to stop the adb server, then open Settings > System > Developer options on your Android device and toggle USB debugging off. Turn off Wireless debugging too if you used ADB over Wi-Fi. ADB stays installed, so you can switch it back on any time.

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

How to Disable USB Debugging on Android

To disable USB debugging on Android, open Settings, go to System > Developer options, and toggle USB debugging off. Then tap Revoke USB debugging authorizations to clear every computer your phone has trusted. The phone now refuses ADB connections from all machines until you switch USB debugging back on.

Killing the adb server only pauses ADB on your computer. Disabling USB debugging is the step that blocks the phone itself, including connections from any other computer:

  • Open Settings on your Android device.
  • Go to System > Developer options. If Developer options is missing, open About phone and tap Build number seven times to unlock it first.
  • Toggle USB debugging off. Any ADB session running over USB drops the moment you do.
  • Tap Revoke USB debugging authorizations to delete the saved RSA keys of computers your phone previously trusted.
  • (Optional) Turn the master Developer options switch off to hide the menu as well.

Where USB Debugging Lives on Each Android Skin

The USB debugging toggle always sits inside Developer options, but manufacturers put Developer options in different places. Use the path that matches your phone:

DevicePath to USB debuggingUnlock Developer options via
Google Pixel / stock AndroidSettings > System > Developer options > USB debuggingAbout phone > tap Build number 7 times
Samsung Galaxy (One UI)Settings > Developer options > USB debuggingAbout phone > Software information > tap Build number 7 times
Xiaomi (HyperOS / MIUI)Settings > Additional settings > Developer options > USB debuggingAbout phone > tap MIUI version / OS version 7 times
OnePlus / OPPOSettings > Additional settings > Developer options > USB debuggingAbout device > Version > tap Build number 7 times

There is no adb command that turns USB debugging off, because ADB would be closing the channel it runs on. The toggle can only be changed on the device.

Disabling USB debugging matters for security because an approved computer can read app data, install apps, and record the screen over ADB. The lock screen and the one-time RSA prompt are the only barriers. Revoking authorizations is worth doing if you have plugged the phone into shared or public 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.

Where is USB debugging in Samsung settings?

On Samsung Galaxy phones running One UI, Developer options appears at the bottom of the main Settings list, not under System. Open Settings > Developer options and toggle USB debugging off. If Developer options is missing, go to Settings > About phone > Software information and tap Build number seven times.

Does turning off USB debugging delete anything on my phone?

No. Turning off USB debugging changes one setting and deletes no apps, files, photos, or accounts. The only thing it removes is the phone's willingness to accept ADB commands. Tapping Revoke USB debugging authorizations additionally clears the saved RSA keys of computers you previously trusted.

Is it safe to leave USB debugging on?

It is a real risk on a phone you carry around. With USB debugging on, any computer you approve can read app data, install apps, and capture the screen over ADB. The lock screen and the one-time RSA prompt are the only barriers. Leave it on while you are actively testing and turn it off afterwards.

Can I disable USB debugging from my computer using ADB?

No. There is no adb command that switches USB debugging off, because ADB would be disabling the very channel it runs on. Commands like adb kill-server and adb disconnect only affect your computer. USB debugging can be turned off only on the device, in Settings under Developer options.

Does turning off Developer options also disable USB debugging?

Yes. Switching the master Developer options toggle off disables USB debugging along with every other developer setting, and hides the menu. Android remembers your previous choices, so USB debugging may switch back on when you re-enable Developer options. Toggle USB debugging off directly if you want it to stay off.

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