Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

USB Debugging setting keeps "unchecking"

I'm doing Android development with Eclipse 3.6.2, OS X 10.6.7 and a Samsung Galaxy Tab.

Everything is working great, except every 15 or 20 minutes, the Settings | Applications | Development | USB debugging checkbox "unchecks" itself. Which means I need to unplug the USB cable and go back into the setting, re-select the checkbox, plug the cable back in and I'm good to go.

What I would like to know is if there is some way to make that checkbox "sticky" (I asssume it probably is supposed to be - but I haven't been able to figure out under what circumstances cause the "uncheck" to occur). I've tried a number of variations of USB / sdcard / Development settings and haven't found the "sticky bit" yet.

I'm new to Android, so I'm hoping there is some "you forgot to also do X" here...

EDIT:

Maybe it has to do with a USB Mass Storage message that pops up after 10 min or so? I just noticed a message "USB Connected: You have connected your phone to your computer via USB. Select Mount if you want to copy files between your computer and your phones SD card".

like image 891
Eric Avatar asked Mar 29 '11 23:03

Eric


People also ask

How do I permanently disable USB debugging?

Turn off USB debugging modeGo to Settings. Tap System > Developer options. Go to USB debugging and flip the switch to turn it off.

How do I fix USB debugging?

On many Android devices, you can verify whether USB debugging is enabled by visiting the Settings|Developer Options page. Install the USB driver for your Android device. If the battery in your Android device gets exhausted, first recharge the battery and then install the USB driver again.

Can USB debugging harmful?

Basically, leaving USB debugging enabled keeps the device exposed when it's plugged in over USB. Under most circumstances, this isn't a problem—if you're plugging the phone into your personal computer or you have the intention of using the debugging bridge, then it makes sense to leave it enabled all the time.


2 Answers

I have a Galaxy Tab and have not experienced this behavior. Nor have I encountered this on any other Android device, and I have used quite a few for development purposes.

From what I can tell, this state cannot be toggled via SDK applications, but only via the firmware. My guess is that there is something flaky in your setup that is triggering something in the Tab's firmware to do this.

Sorry that I don't have a silver bullet for you.


UPDATE

Maybe it has to do with a USB Mass Storage message that pops up after 10 min or so? I just noticed a message "USB Connected: You have connected your phone to your computer via USB. Select Mount if you want to copy files between your computer and your phones SD card".

That further suggests there is something strange going on between your development machine and the Tab. That should appear when you first plug in the cable, then remain there until you unplug the cable. I would not expect it to be toggling the USB debugging checkbox, but I am really starting to think you have one screwed-up Tab.

like image 125
CommonsWare Avatar answered Oct 13 '22 05:10

CommonsWare


verizon has something running in the background making this happen and having the same problem on my samsung fascinate after upgrading to fro yo. I think they're trying to block usb tethering

like image 34
Tina Avatar answered Oct 13 '22 05:10

Tina