26 votes

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

I have had this happen multiple times on multiple Android devices. Solved every time by putting the device in Photo transfer (PTP) mode. ADB will not work for me when my device is in MTP or any other ...
user avatar
16 votes
Accepted

Can I enable USB debugging using adb?

I got it to work :) NOTE: This requires unlocked bootloader. Connect the device to Mac or PC in recovery mode. (I had to map the process in my mind as the screen was broken). Now open terminal/CMD ...
user avatar
12 votes

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

My SAMSUNG Galaxy S4 sometimes bothers me with this annoying offline status message too. I always fix it by trying options below: Try to revoke the USB Debugging authorization on Developer Options ...
user avatar
  • 301
12 votes
Accepted

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

The workaround was to set the desktop backup password under Developer settings. It seems there is a bug in backup process. If you didn't set a desktop backup password under the developer options ...
user avatar
  • 3,235
11 votes
Accepted

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

Here is the documentation on usage of the adb utility. Basically, adb connect is only needed if you are trying to connect to a device over TCP IP, i.e. wireless network. You don't need to issue any "...
user avatar
  • 19.3k
11 votes
Accepted

Turn on USB debugging using command-line

If the question is simply "using the command-line" Let it be simple (root possibly[1] required): settings put global development_settings_enabled 1 settings put global adb_enabled 1 And then you ...
user avatar
  • 7,324
9 votes

Remote debugging using USB debugging is not woking

I found the missing pieces of the puzzle were installing the Java SDK & Android SDK. I came across this because I couldn't connect to the "adb interface" - the Android remote debugging ...
user avatar
  • 135
9 votes
Accepted

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

Details for that can be found in our usb-debugging tag-wiki (where I've just added them): By default, USB debugging is disabled with stock ROMs (some custom ROMs however have it enabled by default)....
user avatar
  • 89.1k
9 votes
Accepted

The device is temporarily restricted

Finally, I got a workaround - the Wi-Fi has to be turned off and then the installation over USB works as expected.
user avatar
  • 231
9 votes
Accepted

Why "adb root" does nothing?

On production — user build of a ROM — you can't start adbd as root unless ROM or at least adbd binary is rebuilt with required modifications. Reason is the ALLOW_ADBD_ROOT build flag (1, 2). That's ...
user avatar
  • 17.7k
8 votes

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

I am not sure if you ever solved this problem, but I ran into this problem, and tried out many many different procedures, each of which might have helped others, but this is 2016 and a summary might ...
user avatar
  • 191
8 votes

What is MIUI optimization?

According to this thread, this feature (Turn On MIUI Optimization) enables a plethora of MIUI based settings & optimizations as per the guidelines set by the MIUI developers. It helps to load ...
user avatar
7 votes
Accepted

ADB shell-ing to wifi connected device when usb device present

You need to include the port number. adb -s 192.168.60.69:5555 shell If you're using a sensible shell with configurable tab-completion (i.e. not Windows), then you can type adb -sTab to get a list ...
user avatar
  • 34.4k
6 votes
Accepted

List devices/computers that have been authorized for ADB USB Debugging

You can see which devices were authorized by you on your phone to interact with it through adb. You would need root access though. Go into the directory /data/misc/adb/. There would be two files: ...
user avatar
  • 23.5k
5 votes

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

Based on OP's clarification done in the comments below Izzy's answer, I propose the following solution if one's device is locked out and ADB is not enabled under Settings. Note that this method is ...
user avatar
  • 23.5k
5 votes

Can I enable USB debugging using adb?

For the RSA verification that you asked to bypass, I don't know whether it would work in your device, but it worked in my little experiment. In Lollipop, the ADB keys (after authorization) are saved ...
user avatar
  • 23.5k
5 votes
Accepted

Can't authorise android device in USB debugging mode

By deleting the adbkeys file found in C:\Users[Username].android folder the permission dialog appeared on my device.
user avatar
5 votes

adb shell error: device not found (Ubuntu)

Check adb devices. If no device shows up follow the steps below. First, check to make sure USB Debugging is enabled. On most devices: Go into 'About Phone', 'About Device', or 'About Tablet' Find '...
user avatar
5 votes
Accepted

How to get installation log (either from adb install or manual install)

Sometimes errors are getting lost when using adb. Effectively adb install does nothing more than uploading the apk file to the the device and then executing the command pm install <file.apk>. ...
user avatar
  • 15.8k
4 votes

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

I figured this out on my own. I solved this by installing Airdroid using an OTG USB adapter and a wired mouse. I then used the airmirror capability of the software to control a virtual mouse on the ...
user avatar
  • 41
4 votes

Why won't 'usb debugging' mode stay on?

I had a similar issue with Huawei P Smart (today on Android Oreo). Revoking USB debug permissions enabling USB debugging and then re-attaching it with 'transfer files' option, followed by accepting ...
user avatar
  • 141
4 votes

How do I increase the size of logcat buffers?

Starting with Android 5, the in-kernel logger driver is deprecated which exposed the ring buffers through /dev/log/* character devices. Instead a userspace logging daemon named logd manages buffers “...
user avatar
  • 17.7k
4 votes

Is it possible to connect Nexus 4 to Windows Server 2012 R2?

Actually Windows Experience Feature is the answer! I had the same problem and could not install usb drivers for a MotoG on a win2012 Server, but when I installed Desktop Experience feature, all runs ...
user avatar
  • 177
4 votes

I can't see my device in Android adb list

Go to Settings-->Storage-->Menu(3 dots in the corner) and tap USB computer connection. When there, make sure MTP and PTP are both unchecked.
user avatar
4 votes
Accepted

USB debugging option greyed out in Samsung Galaxy J5 runing Android 5.1.1

OK, here is I got the solution! there wasn't any bug or error in Android. It is because I have installed Samsung My Knox in my phone. Knox give an extra protection to device and also for some security ...
user avatar
4 votes

Unable to activate USB debugging after upgrading to Android 5.1.1

Open settings and go to storage Press menu and go to USB Storage Mode Change to USB or MTP (NOT Charge only) Disable and re enable Development options with the 7 clicks on Build Number Screenshots (...
user avatar
  • 1,586
4 votes
Accepted

Unable to activate USB debugging after upgrading to Android 5.1.1

Removing 'persist.system.usb.config' file from data/property/ folder and restarting the device solved the issue for me. After restart, the device shows the option to enable 'USB debugging'. Root ...
user avatar
  • 169
4 votes
Accepted

Enabling ADB on Nexus 6 with dead screen

I followed this guide I went into fastboot mode by holding down the power button (force restart) and the volume down key (recovery mode) I downloaded a twrop image from: https://dl.twrp.me/shamu/ ...
user avatar
4 votes

"Allow USB debugging" keeps on popping up

Change the USB cable My proposed solution is not general, but may work in in some special cases. Here is my story: Once I used an old USB cable for connecting my 10 smartphones to my computer. It ...
user avatar
4 votes

Can apps use USB communications without USB debugging?

I would assume that the reason for the requirement to enable ADB for the USB connection is that the used app transmits the video data via IP. By default Android devices don't support IP traffic via ...
user avatar
  • 15.8k

Only top scored, non community-wiki answers of a minimum length are eligible