Skip to main content
New
Stack Overflow Jobs powered by Indeed: A job site that puts thousands of tech jobs at your fingertips (U.S. only). Search jobs
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
  • 20.6k
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,767
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
7 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,277
6 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
  • 20.6k
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

"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
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
  • 20.4k
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
  • 20.6k
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
  • 25.1k
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
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
  • 20.4k
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
  • 20.4k
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

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
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

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,590
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
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
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

Is it possible to remove app using connection to computer?

Yes, you can do that with help of ADB (Android debug bridge). More detailed instructions can be obtained from the above mentioned site. To use adb with a device connected over USB, you must enable ...
xavier_fakerat's user avatar
3 votes
Accepted

Alternative method to enable adb

You are going to need the following: Root (YAY!) A custom recovery, specifically TWRP (Untried on a different recovery, anyone let me know if it works on any other) A PC/device with a way of editing ...
Dan Brown's user avatar
  • 1,731
3 votes

how to mount storage and data partitions in recovery mode in adb shell?

If you're using a custom recovery: CWM (Clockworkmod-based): 1. Use volume buttons to navigate and power button to select 2. Find "Mounts and storage" menu 3. Select "Mount /system" and "Mount /data" ...
iBug's user avatar
  • 7,767
3 votes

What is MIUI optimization?

In addition to @xavier_fakerat's answer, note that the "MIUI Optimizations" prevent the installers of various applications from launching correctly even on the phone itself, rather than over-...
einpoklum's user avatar
  • 543
3 votes

Enable USB debugging in an Android broken screen

I would suggest: Connect keyboard via usb otg and enter password (buy usb otg if you don't have it). Disconnect keyboard and connect PC, take a screenshot on your phone and load it in the PC. Swap ...
Uroš Ugrinić's user avatar
3 votes

USB debugging switches off automatically

What worked for me is choosing "File Transfer" on android when you plug the USB instead of "Charge only"
sam's user avatar
  • 131

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