Questions tagged [usb-debugging]

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

Filter by
Sorted by
Tagged with
46
votes
4answers
296k views

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 ...
44
votes
1answer
38k views

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?
30
votes
6answers
96k views

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 ...
27
votes
4answers
28k views

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 (...
24
votes
13answers
90k views

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 "...
21
votes
2answers
81k views

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....
21
votes
2answers
494k views

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 ...
16
votes
2answers
29k views

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 ...
15
votes
2answers
133k views

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 use ...
14
votes
4answers
105k views

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 ...
14
votes
3answers
40k views

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, ...
12
votes
5answers
28k views

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 ...
12
votes
3answers
10k views

Is there a good USB debugging toggle widget for Android?

Can you suggest me a widget for toggling usb debugging mode for Android? Or could you code it and upload to market, please? (I need it because of HTC Desire and HD's init process consuming 100% cpu ...
11
votes
2answers
58k views

Remote debugging using USB debugging is not woking

I'm trying to remotely debug Chrome on my Samsung Galaxy Note 4, but I can't seem to get it working. Note - to eliminate a device problem I have also tried to use an HTC One M8, but that also would ...
11
votes
3answers
7k views

"Allow USB debugging" keeps on popping evene when "Always allow from this computer" is checked in automation testing

We are doing automation testing on mobile devices with Appium but testing fails because of the popup 'Allow USB debugging' even though the device is already connected through 'adb connect' and 'adb ...
10
votes
1answer
8k views

How to activate Android debugging mode

I've recently upgraded my Samsung Galaxy 5 from Android 2.1 to 2.2 and I can't find Android debugging mode in the settings. I need to root my phone.
10
votes
7answers
87k views

Driver issues when using Samsung Galaxy SIII via USB for development

The phone is connected via USB to Windows 7 64-bit. The USB debugging option enabled. When I connect the phone to the computer, I'm notified that some drivers failed to install. Do I need these for ...
10
votes
5answers
219k views

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 ...
10
votes
2answers
58k views

ADB not working, but Fastboot is

I recently bought a used Nexus 5. It came with the L preview on it, and I decided to flash CM 11 instead. My last phone was a Nexus S, and I've flashed various ROMs to that thing in the past. Using ...
9
votes
4answers
53k views

LG G2 - Debugging mode not enabled

I'm attempting to run an app on the LG G2 (Verizon) using Eclipse on a Mac. The phone, however, is not recognized by the computer. I enabled debugging but it doesn't appear when I do adb devices. ...
9
votes
0answers
1k views

Interact with notification action from ADB Shell

I have an Android(7) phone [also fine if you can provide a solution for Android 10] and a Linux pc. By enabling USB debugging and using the terminal of my pc, I am able to read the notifications of my ...
8
votes
1answer
71k views

Turn on USB debugging using command-line

I have a Samsung Galaxy S2 and a PC running Debian 8. How can I turn on USB debugging using command-line on my PC without touching the phone?
8
votes
2answers
35k views

How do I configure ADB for the Samsung Galaxy Y?

How do I configure ADB to recognize my Samsung Galaxy Y? I have installed the USB driver. but when I run adb devices it does not list anything. Following are the steps I followed. Declare your ...
8
votes
0answers
18k views

How to enable USB Debugging from recovery mode?

My phone screen broke. I can't see anything, and the touch screen doesn't work. I can't buy a new phone, so I'm not looking into backing up my data, I want to be able to use it from my pc. I have a ...
7
votes
3answers
9k views

Unable to activate USB debugging after upgrading to Android 5.1.1

After upgrading my Huawei phone (which is rooted) to Android 5.1.1 (CM 12.1) the 'USB debugging' option is greyed out with message: 'Device is in charging mode, USB debugging is disabled'. The ...
7
votes
1answer
22k views

"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). ...
7
votes
2answers
7k views

Can't get adb on Macbook to see Pixel C

I'm trying to connect my 2014 Macbook pro to a Pixel C tablet. The tablet has developer settings enabled, usb debugging enabled and unknown sources enabled. 'adb devices' shows nothing and there is ...
7
votes
4answers
7k views

USB debugging on Samsung Galaxy Tab -- How do I prevent it from resetting debug setting?

I have a Samsung Galaxy tab that I'm using for development purposes. For some reason, when I choose 'Enable USB Debugging' in the settings menu, it turns off after a random period and drops whatever ...
7
votes
1answer
3k views

Force debug in safe mode via USB?

I did something so stupid I'm almost kind of proud of it. I rooted my LG Optimus T (Froyo) using Gingerbreak, cleaned out a bunch of stuff, and accidentally deleted the home screen launcher. No big, I'...
6
votes
8answers
61k views

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

I have my Verizon Wireless Samsung Galaxy S4's developer options enabled with USB debugging turned on. Whenever I connect it to my machine, it displays "Connected as Installer" in the notification ...
5
votes
1answer
6k views

Why "adb root" does nothing?

I have a OnePlus 6T. It is rooted by TWRP and Magisk. I have set ro.debuggable to 1. But when I type adb root it does this: I cannot even use adb pull on system files.
5
votes
2answers
6k views

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

I have two devices connected to my workstation simultaneously, one by usb, the other over wifi. C:\>adb devices List of devices attached Cxxxxxxxxxx2 device 192.168.60.69:5555 ...
5
votes
1answer
263 views

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

I want to know which devices I have already connected to my computer with my ADB or know which computers I have connected to my phone previously. Either way works for me. adb devices -l does not show ...
5
votes
1answer
4k views

Error launching ddms.bat: "Failed to get the adb version: Cannot run program "adb": CreateProcess error=2, The system cannot find the file specified"

I've been following these very detailed instructions to take a screenshot on my Motorola Flipside. When I get to the step #10 where I launch ddms.bat I get this error and my phone doesn't show up: ...
5
votes
3answers
25k views

Samsung Galaxy Tab-2 USB connection issue

I am working on Android application development, I want to run my application on Samsung Galaxy Tab-2 GT-P3100 but whenever I connect it with USB to the computer then it is not detecting. snapshot - ...
5
votes
1answer
216 views

How to prevent unwanted DBG_FMMDM spam from filling up your logcat buffers

I asked this question on Stack Overflow but was advised to ask it here. I am attempting to debug an error using logcat in Android Studio on my testing device, a Galaxy s9 plus running Pie. Suddenly I ...
5
votes
1answer
4k views

Stuck in USB-debugging mode

I turned on usb-debugging on my HTC One X just to see if I could identify it when using Android SDK. Now the usb-debugging mode always shows up when I connect the phone to my Windows and Linux ...
5
votes
3answers
2k views

Windows doesn't detect Nexus S

I recently switched from Linux to Windows 8 consumer preview. I have installed the latest android SDK including the Google USB driver. I connect my Nexus S to the laptop, the phone goes into USB ...
4
votes
3answers
8k views

How do I increase the size of logcat buffers?

How do I increase the size of /dev/log/main by a factor of 10? My understanding is the log has a fixed size (16K?) and rolls over when that limit is reached. I'd like to find out what the log size is ...
4
votes
1answer
13k views

The device is temporarily restricted

I try to install an app from Android Studio on Xiaomi Mi Max via USB. The debug mode is on, but when I try to switch the 'Install over USB' enabled, I get 'The device is temporarily restricted' ...
4
votes
3answers
27k views

USB drivers for using ADB with Samsung Galaxy S on CyanogenMod 7.1?

I recently installed CyanogenMod 7.1 on my Samsung Galaxy S i9000 and I have some problems now to get ADB on my Windows 7 64-bit computer to recognize the device. Currently, adb devices returns no ...
4
votes
2answers
12k views

Prestigio Multipad USB debuging

I am having troubles with Prestigio Multipad PMP3370B. I enabled USB debuging in Settings, but when I plug in my device to a computer and start adb devices, it does not recognize it. Does anybody have ...
4
votes
1answer
432 views

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

I have a root shell on the phone. However, no adb service seems running, i.e. the port 5555 is on the device not open1: $ telnet 1.2.3.4 5555 Trying 1.2.3.4... telnet: Unable to connect to remote host:...
4
votes
1answer
1k views

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

When I try to enable USB debugging on my Android device, I am prompted with this message: The computer's RSA key fingerprint is: FE:35:23:34:... I see the public key in ~/.android/adbkey.pub How can ...
4
votes
2answers
1k views

How to enable developer mode to install apps via ADB for this cheap Android Watch?

I just bought one of these: It was fairly cheap so, unsurprisingly, in "Settings" I don't see any way to select "developer mode". How can I go about enabling developer mode (USB debugging) to ...
4
votes
4answers
39k views

USB Debugging is not showing in ADB devices

I Enabled USB Debugging on CyanogenMod 11 for LG Optimus L7. The Device is showing in Device Manager. But, it is not showing in ADB devices list. And there is no notifications for USB debugging.
4
votes
3answers
11k views

Google Nexus 7 not recognized via USB

I'm trying to connect my Google Nexus 7 to my PC for Android development but so far I've been unsuccessful. I've tried connecting to my PC using different cables. When I connected the device to my ...
4
votes
1answer
74 views

Should warnings about not charging your phone at airport/public usb ports be taken seriously?

There are many articles on the internet saying that charging at the usb ports available at the airport and public places can cause your phone to get hacked. Is there any any truth behind this? If ...
4
votes
2answers
17k views

ADB Shell In Recovery Mode - Error:Closed

I smashed my display pretty good today and am unable to use the digitizer. The upper half of the screen is barely visible and the lower half is black. I have debugging enabled on the phone but I can't ...
4
votes
1answer
3k views

USB debugging doesn't work - switches off automatically

I have a Xolo Q800 phone with following specs. I'm trying to connect the device to my Macbook Pro with OS X Mavericks, Android Studio / Eclipse and adb working perfectly. XOLO Q800 Android 4.2.1 (...

1
2 3 4 5
9