Questions tagged [usb-debugging]

A USB connection mode on Android devices which allows a USB connected computer to directly interact with the device.

USB debugging is a connection mode on Android devices which allows a USB connected computer to interact with the device. This can be used to e.g.,

  • Transfer data between the computer and the device.
  • Read log data from the device.
  • Execute commands directly on the device.
  • Debug applications running on the device.

More details can be found e.g. in our tag-wiki.

By default, USB debugging is disabled with stock ROMs (some custom ROMs however have it enabled by default). To toggle it on or off, you can find the corresponding switch in Settings › Developer – which is hidden by default in Android 4.2 onwards.

You can make this section visible by going to Settings › About device and "hammering" the entry telling your ROM's build version until a toast-message congratulates you for having become a developer.

Useful links on our site

457 questions
49
votes
4 answers

Broken screen while debug mode was disabled. How can I re-enable adb?

The screen of my phone is physically broken, so it doesn't display anything, but the touch aspect does seem to be working, as I can unlock my phone, and get haptic feedback. Before I go to get it replaced, I'd like to back up some personal data from…
Nate Parsons
  • 791
  • 1
  • 6
  • 13
45
votes
1 answer

Where are the developer options in Android 4.2?

I wanted to access the developer options to enable adb access on Android 4.2 but cannot find it. How can I enable that? Once I've activated the menu, how can I hide it again?
ce4
  • 14,484
  • 10
  • 62
  • 106
31
votes
6 answers

How to enter USB debugging mode in Cyanogenmod

I just installed Cyanogenmod 11 on an HTC One, and now I'm completely unable to connect to it via USB from my Linux PC, so I'm unable to transfer any more ROM or applications. How do I enable USB access, similar to the "USB debugging mode" seen in…
Cerin
  • 609
  • 3
  • 11
  • 19
27
votes
4 answers

What is USB debugging? Can I keep it ON forever?

Sometimes I need to transfer some music from my PC to my Galaxy S2 and must always activate USB debugging. Then I think, can I keep it ON forever? I mean, Keep it ON for ever can give me a problem (cost battery?) ? And what's USB debugging?
Acaz Souza
  • 391
  • 1
  • 4
  • 7
27
votes
13 answers

Samsung (Galaxy S4) does not show Authorize USB debugging dialog box

I am trying to follow the instructions here, but my phone never displays the "Authorize USB Debugging" option. On the PC side, adb devices shows that the PC see the device, but it is listed as "offline" and I cannot use adb shell to talk to…
23
votes
4 answers

"Allow USB debugging" keeps on popping up

We are doing automation testing on mobile devices with Appium, but the testing fails because of the popup 'Allow USB debugging?' even though the device is already connected through adb connect and adb devices. I already checked the 'Always allow…
Gel
  • 331
  • 1
  • 2
  • 3
23
votes
2 answers

Can I enable USB debugging using adb?

I own a Samsung Galaxy S3 and the display is broken and USB debugging is set to off too. How can I enable it using ./adb commands? I have done these steps already: data/data/com.android.providers.settings/databases/settings.db changed adb_enabled…
TheOnlyAnil
  • 557
  • 1
  • 3
  • 13
22
votes
2 answers

How to enable USB Debugging in Android if forgotten pattern for screen-unlock?

I want to use some third party software to clear my device's screen unlock pattern which I forgot. They require USB debugging enabled but I don't have it enabled in my Android. How do I turn on USB Debugging through Recovery mode, or Fastboot?
Jenabictak
  • 331
  • 1
  • 2
  • 6
18
votes
2 answers

What is MIUI optimization?

In MIUI (an Android ROM), there is an option in developer settings called MIUI optimization. When this option is enabled, an app can't be installed via USB (i.e. from Android Studio). What is the purpose of this option? And if this option is…
DAF
  • 305
  • 1
  • 2
  • 9
18
votes
1 answer

adb backup command on non-rooted device creates an empty backup file?

I recently tried to backup my Motorola Moto G2 XT1068 phone running Lollipop 5.0.1 and after connecting it over USB with usb-debugging ON and I ran the adb backup command to backup my device completely and this question Full backup of non-rooted…
Lucky
  • 3,361
  • 8
  • 35
  • 54
15
votes
3 answers

How do I disable the USB Connected notification?

Every time I plug in my phone, I get a notification for USB connected. Is there any way to disable the notification, without disabling USB debugging? Phone: LG Optimus S Carrier: Sprint Android: 2.2, Rooted
user2019
14
votes
1 answer

"adb devices" successfully shows device, but "adb connect usb" inevitably fails, any suggestions?

I have an ASUS ThinkPad, Android 4.4.2, Kernel 3.10.20. I've checked Settings->Developer Options->USB debugging. I've disabled Wi-Fi and BT (because I've seen some devices have some conflict there). Now here's the command line sequence from my…
Joe C
  • 243
  • 1
  • 2
  • 5
14
votes
4 answers

I can't see my device in Android adb list

I have LG G3 with android 5.0 lollipop and I want to connect it to my laptop with windows 8.1 OS (For using unity remote). When I connect my phone I can access to storage but I can't see my device in adb.exe. I tried many solution like this and this…
Yandirr
  • 361
  • 1
  • 3
  • 8
12
votes
5 answers

Accessing android device via ADB shell with broken touchscreen (can't authenticate)

So, the touchscreen on my Nexus 4 broke this weekend. I have a new device coming in, but in the meantime I need to be able to access the device to use a few different apps and send/receive some SMS messages from it. I found this guide on reddit:…
user2615277
  • 121
  • 1
  • 1
  • 3
12
votes
5 answers

How to backup broken screen phone when USB debugging IS NOT enabled?

I dropped my Samsung S3. Now I cannot see anything, just a white screen with purple, black, and green lines. Before it blanked out, it wasn't recognizing my finger touch. Any idea on how or what to repair? I want to save my phone so I can backup all…
user58319
  • 121
  • 1
  • 1
  • 3
1
2 3
30 31