Articles · Guides

USB debugging: what it lets in, and how to use it safely

USB debugging exists so a developer's machine can install apps, read logs and inspect a device. Those capabilities do not distinguish between a developer and anyone else with physical access, so the setting is genuinely powerful and genuinely worth switching off when you are not using it.

What an authorised computer can do

CapabilityScope
Install and remove appsAny app, including removing preinstalled ones
Read system logsWhich can contain more than you would expect
Copy files from shared storageEverything not in an app's private folder
Take screenshots and record the screenWithout any on-screen indication
Simulate taps and inputFull control of the interface
Read app private dataOnly for debuggable apps, which is few

Quảng cáo

Using it without leaving it open

  1. Turn it on only when you have a task Not as a permanent state.
  2. Never tick always allow on a computer you do not own Authorise for that session only.
  3. Revoke authorisations periodically Developer options has a revoke USB debugging authorisations action. Use it after any repair or borrowed machine.
  4. Turn it off when the task is done One switch, and it closes the whole surface.
  5. Keep the phone locked when plugged into anything unfamiliar Debugging requires an unlocked phone to authorise, which is the protection that matters at a public charging point.

When it is worth turning on

Good reasons
  • Installing a split bundle from a computer
  • Copying files into Android/data
  • Removing preinstalled apps for your user
  • Recovering files from a phone with a broken screen
  • Capturing a bug report for a developer
Not worth it
  • Leaving it on in case you need it
  • Anything a phone app already does well
  • Because a forum post said to
  • On a phone used by someone else

It affects other apps

Several banking and payment apps refuse to run while USB debugging is enabled, treating it as an indicator of an untrusted environment. If a banking app stopped working after you were installing something from a computer, this is almost certainly why.

That behaviour is also a useful reminder: the phone knows this setting weakens it, and so should you.

Turn it on for a task, never tick always allow on a borrowed computer, revoke authorisations after a repair, turn it off after.

Frequently asked questions

Can someone use debugging on my locked phone?

They cannot authorise a new computer without unlocking it. A previously authorised computer is a different matter, which is why revoking matters.

Does USB debugging drain the battery?

No, not meaningfully. The reason to turn it off is security.

Why did my banking app stop working?

Several refuse while debugging is enabled. Turn it off and reopen the app.

Read next

APK download against the Play Store

This is not a rivalry. Each does something the other cannot.

Paying for a VPN: what changes

You are not buying encryption. You are buying an operator whose income does not depend on you.

Archive tools on Android compared

For a plain ZIP either works. For a split, password-protected archive, only one does.