28 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 ...
Chuck Renner's user avatar
15 votes
Accepted

Why does "adb root" do 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 ...
Irfan Latif's user avatar
  • 19.9k
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 ...
iBug's user avatar
  • 7,676
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 ...
Steve's user avatar
  • 155
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.
Bord81's user avatar
  • 231
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 ...
rpkrpk's user avatar
  • 201
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 ...
xavier_fakerat's user avatar
6 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 '...
Several Circles's user avatar
6 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>. ...
Robert's user avatar
  • 19k
6 votes

How do I verify that the USB debugging key fingerprint is correct?

Per this answer: awk '{print $1}' < ~/.android/adbkey.pub | base64 --decode | md5sum
Jonathan Cross's user avatar
6 votes
Accepted

How can I enable Android Debugging from a root shell on the phone?

Run: settings put global adb_enabled 1 You can also start adbd service by executing start adbd or setprop ctl.start adbd. But I prefer the settings way because it properly goes through Android ...
Irfan Latif's user avatar
  • 19.9k
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: ...
Firelord's user avatar
  • 24.9k
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.
Zach Dean's user avatar
5 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 ...
jonathanzh's user avatar
5 votes
Accepted

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 ...
Robert's user avatar
  • 19k
5 votes

Android interfacing with phone with a broken screen

If you have a working adb connection you can use scrcpy to mirror the phone screen to a connected PC or Mac. Scrcpy is an open source tool. The only problem that can arise is that typical scrcpy ...
Robert's user avatar
  • 19k
5 votes
Accepted

What is scrcpy OTG mode and how does it work?

Which version of scrcpy OTG mode supported It appears that version 1.24 is when it became available, but the latest version of scrcpy is probably preferred. From: https://github.com/Genymobile/scrcpy/...
Morrison Chang's 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 ...
Mihir Joshi's user avatar
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 ...
cnom's user avatar
  • 187
4 votes

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

I had the same issue with my Mate 20x. Someone suggested that enabling Allow ADB debugging in charge only mode would keep the debugging switch on and it did the trick.
Don's 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 ...
Pete's 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 “...
Irfan Latif's user avatar
  • 19.9k
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 ...
dTA's user avatar
  • 41
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 (...
Empire of E's user avatar
  • 1,580
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 ...
Alam's 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/ ...
TAAPSogeking's user avatar
4 votes

ADB error: insufficient permissions for device: verify udev rules

This can be resolved by enabling ADB transfer in your USB Preferences. Plug the phone into the USB Drag the phone's top menu (the drawer) down Click the notification that says "Android System: ...
Evan Carroll's user avatar
  • 4,139
3 votes

How to prevent Galaxy S4 from connecting as "Connected as Installer" instead of "Connected as Media Device"?

If you have a Verizon Galaxy S5, please follow the instructions here: http://forum.xda-developers.com/verizon-galaxy-s5/general/disable-verizon-cd-installer-t2849481 1.In the phone dial pad, enter ...
Mr. TA's user avatar
  • 131
3 votes
Accepted

Enabling USB debugging from open file system access using custom recovery

The correct file to modify is the build prop. Which can be risky to modify. This will enable everything needed. Through the file system modify the build.prop or with a computer. If the custom recovery ...
Bo Lawson's user avatar
  • 2,568
3 votes

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

I just had this happen to me. Debugging was working fine at the office, but broken at home. Turned out to be my usb cable. Everytime I plugged it in, it would charge but I never received the Allow ...
Kris's user avatar
  • 31

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