ADB only recognizes phone when it's in recovery. Why? - EVO 4G Q&A, Help & Troubleshooting

I used to be able to
1. Plug my phone in via USB (unmounted - meaning "charge only")
2. Open up a command prompt and navigate to the correct folder.
3. Type "adb devices"
4. Receive a long string of characters that indicated that adb recognized the device.
Now this only happens for me if the phone is in recovery already. For example:
Code:
C:\android-sdk-windows\tools>adb devices
List of devices attached
HT05SHL05247 recovery
Things I've tried:
* Re-installed SDK
* Re-installed HTC Sync
* Manually re-installed drivers for phone
It is interesting to note that when the phone is on and plugged in, Device Manager sees it as a disk drive no matter if the phone is mounted as a disk drive or not. Strange.
Everything worked fine until I went on vacation. Now it's messed up!
The question is: how do I get adb to recognize my phone again?

is usb debugging still on?

when you plug in the USB cable do you get the screen to select
charge only, HTC Sync Disk drive etc..
if not go to "Settings" -> "Connect to PC"
and turn on "Ask Me"
I had a bad USB port, would only charge could not get any PC connection to work until phone was replaced, works now
Bill

Thanks for the responses.
mdwoods said:
is usb debugging still on?
Click to expand...
Click to collapse
Yes, I checked and USB Debugging is selected.
btedeski said:
when you plug in the USB cable do you get the screen to select
charge only, HTC Sync Disk drive etc..
if not go to "Settings" -> "Connect to PC"
and turn on "Ask Me"
I had a bad USB port, would only charge could not get any PC connection to work until phone was replaced, works now
Bill
Click to expand...
Click to collapse
Yup, when I plug it in I get the pop-up asking me what kind of connection I want.
Any other ideas?

Still nothing! I'm going to be selfish and bump in case a fresh pair of eyes can help me solve this.

Something similar happened to me. I tried many things over and over again. I changed kernals, roms, reinstalled drivers, etc. Eventually, I just reformatted my computer and it worked. I don't know why reinstalling the drivers wouldn't work when reformatting did. I honestly have no idea, but that reformat did the trick for me.

ADB not working when booted is a somewhat commonly-reported problem with King's kernels. Try flashing the stock kernel and see if it starts working again. Also, wipe your caches in the future before flashing a new kernel. This seems to prevent a lot of issues.

I has this same problem. I believe I wrote a thread about it. When I toggled USB debugging off and then back on, that is what solved the problem. Believe me, I went through hours of reinstalls of multiple androidusb.inf drivers plus HTC Sync among others. It wasn't until a "what the hell, let's give it a try" moment that I toggled USB debugging off/on. Like you, I had it on the whole time. Still don't know what caused the mishap but this is what fixed it for me.
Sent from my PC36100 using XDA App

Thanks for the last two ideas. I love Fresh ROM, but have been having major issues with it lately, and this must have been tied into it. I installed Baked Snack with the custom baked snack "speed" kernel and the issue went away (along with all my other issues). Yay.
I don't doubt that toggling the USB Tethering check box would have fixed it, though. And that's just funny. Sad and funny.

Sprockethead said:
I don't doubt that toggling the USB Tethering check box would have fixed it, though. And that's just funny. Sad and funny.
Click to expand...
Click to collapse
Actually, I found an answer to that question. I am experimenting with Andromadus CM10 on a HTC Desire Z and this is what happens:
The mobile phone declares what USB device it is. You can look at this on the linux computer you have connected it with:
Code:
lsusb -v -d 0bb4:0c91
The string after "-d" is what you get from a plain lsusb command. The important part of the output of that command is
Code:
bInterfaceClass 255 Vendor Specific Class
"adb devices" only shows the phone if this 255 is present.
With the phone in fastboot and recovery, I always could see the 255 on my linux box. Normally booted, I sometimes had it, sometimes not.
If I had it the device was called "HTC Vision", if I didn't have it, it was a "HTC Desire / Desire HD / Hero (Charge Mode)"
Toggling "USB Debugging" actually helped me to make it a "HTC Desire" and get adb over USB working.

Related

[ADB] Device cannot be started (Code 10)

For some odd reason, I lost adb functionality (i.e. any adb command issued receives "error: device not found"). I looked in Device Manager and noticed that MyHTC was gone! I looked at my phone and USB debugging was enabled and in charge only. I could put it in USB Drive mode and the PC would recognize it as a USB Mass Storage Device so that I could exchange and view files but no adb.
I searched and searched on this issue for hours and installed over a half a dozen "androidusb.inf" driver files several times over. Every install generated the Code 10 error where Device Manager was lacking some information from the driver file and could not start the device. I reinstalled HTC Sync and gave that a try...nothing. Downloaded USBDeview and uninstalled all HTC drivers including the HTC Android USB Device and tried again to no avail. WTF?! What else am I supposed to do?
Well, in a "what the hell, let's give it a try" kind of moment, I decided to toggle the USB debugging off and then back on (and yes, it was checked and on the whole time). WORKS!!! WHAT THE CRAP?!! MyHTC is back in Device Manager and everything is back to normal. I'm glad but irritated!
I share this story in hopes that if someone else stumbles on this problem, they will not have to go through the same headache as I did. Just thought this was odd considering how many times I have plugged and unplugged and never had any problems with adb.
Toggle USB Debugging....so simple. *rolleyes*
Same Issue
I've got the same issue on my EVO 4G. Just installed the latest CM7 and now it tell me device not recognized. If I manually install the drivers it gives me the same code 10. I can't bring up the phone as a storage device and toggling the debugging is not working. Any ideas?
SillyJay said:
I've got the same issue on my EVO 4G. Just installed the latest CM7 and now it tell me device not recognized. If I manually install the drivers it gives me the same code 10. I can't bring up the phone as a storage device and toggling the debugging is not working. Any ideas?
Click to expand...
Click to collapse
You installed the hboot drivers correctly?
Boot into recovery, with usb debugging enabled, connect to pc, it should install the drivers.
Still the same
Even when I reboot into recovery it still gives me "USB Device not recognized." I previously had MikFroyo on my phone with no problems. I'm at a loss.
SillyJay said:
Even when I reboot into recovery it still gives me "USB Device not recognized." I previously had MikFroyo on my phone with no problems. I'm at a loss.
Click to expand...
Click to collapse
You most likely have a bad cable, do you have another one you can try?
Possibility
Not at the moment but that may explain it. Still seems weird for it to just go out right as I change to CM7, but still a possibility. I am going to run and grab my other cable. Thanks for the advice.
No Luck
The new USB cable didn't fix the problem. Also, in device manager, even with the driver installed its labeled as "unknown device."
If I boot into hboot the computer recognizes it.
**update: After rebooting from the hboot, my phone is recognized by the computer however, a disk drive is not coming up in "my computer." I have USB storage turned on but Im not getting anything.**
Any help would be much appreciated!
Sad Day
Apparently the Micro USB port on the bottom of my phone is going bad... I talked with some other people who've had the same problem. HTC knows that the ports aren't very sturdy as well. Well... sad day for me.
Also if you're getting the notice from windows saying that you your device will run faster in a 2.0 usb port and you know the port is 2.0 ... chances are your port is going bad as well.
*****UPDATE*****
Flashed to MikFroyo and none of the above stated problems. I would venture that it was CM7 but apparently everyone else is able to use it so who knows.

[Q] Yet another "no more prompt" on the phone

Hi,
So before going on, I've now spent couple hours trying to fix this issue, looking for tips and threads without luck.
I'm using a rooted DHD, with an Affinity rom. It works perfectly fine.
Yesterday, a friend asked me to install a custom rom on his tablet, which I did.
I had to clean all my Android drivers because the tablet wouldn't be recognized properly by my computer (no ADB driver).
In the end it didn't help and I had to use a fastboot method, which ended well.
Now, my phone doesn't prompt me what I want to do when I plug it to my computer.
I, once again, clean the usb drivers, installed HTC Sync and all its dependencies but the software doesn't recognize my phone (I couldn't care less, but I suppose it's part of my "no prompt" problem).
Of course I tried with and without AV, firewall... No luck (and I think I rooted my phone with both them ON anyway). I tried other USB ports as well
If I plug the phone without HTC Sync and its drivers installed, Windows 7 installs 3 out of 4 drivers, the last being in this suite I suppose.
I tried using the drivers provided with the sdk, they're not for that missing driver.
With the suite installed, I end up with 2 new devices on my devices manager : one "Android USB Device" labeled "My HTC" and one "mobile device" labeled as "J:" (drive name) which means no ADB drivers.
Of course, USB debug and ask when connect are both ON. I tried turning them ON and OFF, but still no luck (except a new driver installation).
ADB drivers start to install as soon as uninstall the "HTC Drive Installer" component, which is weird.
So I don't really know what to do now except that it's driving me nuts as I cannot do anything else than charging the phone now.
Is this a case of "USB brick" ? The threads I read about it all talk about "stock roms".
Try Multi Mount SD Card from the Market.
https://market.android.com/details?...vaWQubXVsdGltb3VudHNkY2FyZC53aWRnZXQuZnJlZSJd
Thanks for the alternative, it works fine
I'd still like to know how to fix this though, if anyone has any clue about it.
It's a sense rom?
Sense roms have an option to permanently put the usb state to charging or storage, etc, without prompting you again. It's an option you tick, in the settings (usb connections, or usb sync maybe? sorry, I don't use sense).
Yes it's a sense rom, with the "always ask me" option activated
Exactly. Yes.
That's strange.

Cannot install RUU from htc dev

So I'm trying to unlock the bootloader so I can install some nice roms.
How ever when I try to install the update RUU HTC advices me to install nothing happens.
I get to "Connect your phone to the computer using the USB cable that came with your phone. Wait a moment for your computer to identify your phone, this may take a few minutes.
If your computer cannot find your phone, you may need to install HTC Sync. You can download HTC Sync here.
"
How ever the phone never gets recognized so running the RUU causes it to load and then close before giving me any options.
Hboot version is 0.90.0000 software version is 2.13.351.1
I've looked all over XDA and google for answers and couldn't find anything that worked.
Is there any other way to flash the RUU ? Fastboot maybe? ( I tried just running the RUU whilst in fastboot usb and it RUU still loads and then closes)
Oh yeah, trying to do all this on Win7 x64
*edit* Running the phone in usb storage mode allowed it to run, how ever thus far it does not seem to be working. Got an error message saying a directory was full. It's now" Veryifing information on your pda phone" been doing it a while though.
First:
Go into Settings, then choose Connect to PC.
Make sure "Ask Me" has a checkmark on it.
Second:
In the settings choose Applications, then Development and make sure USB debugging is checked off also.
When you connect the USB cable to the computer now do you get a message on your phone?
You should have three chooses for USB type; charge only, HTC Synch and Disk Drive.
If you are not getting this option then your computer is not connecting to the phone via USB. Either bad usb cable, bad usb port, or something wrong with the phone.
EDIT
Sorry just saw your edit. disregard my comment.
kmbarreiros said:
First:
Go into Settings, then choose Connect to PC.
Make sure "Ask Me" has a checkmark on it.
Second:
In the settings choose Applications, then Development and make sure USB debugging is checked off also.
When you connect the USB cable to the computer now do you get a message on your phone?
You should have three chooses for USB type; charge only, HTC Synch and Disk Drive.
If you are not getting this option then your computer is not connecting to the phone via USB. Either bad usb cable, bad usb port, or something wrong with the phone.
Click to expand...
Click to collapse
I get all these options, I can access the disk drive if I choose that option, if I choose sync that works etc.
Only this RUU that gives me problems
*EDIT* WOOO! found a work around, run RUU with storage mode on, then switch back to charge only after accepting disclaimer.
*Edit again* and of course, just as things seem to be going well the installer crashes, now the phone is stuck on some silver HTC logo.
It crashes as soon as it tells the phone to reboot to bootloader.
Bumping this instead of making a new thread.
Still having this issue if anyone can help.

Phone not Mounting on PC

So my phone was mounting fine on my pc, and then all of a sudden it wasn't. My Nexus 7 still mounts properly and accepts developer commands, but the m8 won't (yes developer settings is on).
I tried wiping and flashing a rom clean and it still doesn't work, charges fine though. Any advice?
Subscribed
I'm having the same issue. Stock non rooted and it will not connect. I have tried it on other computers cables ports everything.
Art2Fly said:
So my phone was mounting fine on my pc, and then all of a sudden it wasn't. My Nexus 7 still mounts properly and accepts developer commands, but the m8 won't (yes developer settings is on).
I tried wiping and flashing a rom clean and it still doesn't work, charges fine though. Any advice?
Click to expand...
Click to collapse
You might try a different cord.
Open Device Manager in Windows and then plug the phone in. Do you see it in the list with a little yellow triangle? Do you see Android USB Devices listed?
OP after literally messing with various driver files, 8 usb ports and 2 laptops, I dug out my old box of cables and found a taped up, on its last limb OEM HTC EVO 4g (not lte the original) cable. This thing has been through the ringer. But its exactly what It needed. I figured with the 3 cable I had already tried this wasn't the issue, but have you tried using an OEM cable? I guess that is all that works. Good Luck
beamer1341 said:
OP after literally messing with various driver files, 8 usb ports and 2 laptops, I dug out my old box of cables and found a taped up, on its last limb OEM HTC EVO 4g (not lte the original) cable. This thing has been through the ringer. But its exactly what It needed. I figured with the 3 cable I had already tried this wasn't the issue, but have you tried using an OEM cable? I guess that is all that works. Good Luck
Click to expand...
Click to collapse
Still trying to get it to work, have tried 4 cables myself. I might just end up having to return the phone.... Fastboot works in bootloader
Art2Fly said:
Still trying to get it to work, have tried 4 cables myself. I might just end up having to return the phone.... Fastboot works in bootloader
Click to expand...
Click to collapse
Uninstall all HTC drivers and HTC Sync. Then connect the phone. DO NOT choose the option to automatically install any drivers.
Open Device Manager, find the phone. Select the option to manually pick the driver, and select the generic MTP device driver.
This is what worked for me, after countless attempts at re-installing various HTC drivers, different cables and ports, etc.
Bump. Still looking for answer to this. I have RUU'ed both to Sense and Google Phone editions and the problem still persists, the phone does not detect its connected to a computer and change to mtp accordingly. Only way I was able to get the RUU in there was through fastboot, which is again the only time I can access the phone through usb. Adb is no luck in either android or recovery.
Art2Fly said:
Bump. Still looking for answer to this. I have RUU'ed both to Sense and Google Phone editions and the problem still persists, the phone does not detect its connected to a computer and change to mtp accordingly. Only way I was able to get the RUU in there was through fastboot, which is again the only time I can access the phone through usb. Adb is no luck in either android or recovery.
Click to expand...
Click to collapse
Have you tried revoking the USB debugging authorization and then accepting the RSA fingerprint key again when connecting to PC?
Obviously it can't be an USB cable problem if you can connect to it in bootloader mode and use fastboot commands.
To clarify, the phone just charges when connected, it does not detect that it is connected to PC so debugging doesn't even trigger, neither does mtp. I don't even get the slow charging notification
Does it do the same when you plug it in and reboot the computer to "pick up" during boot up process? Or if you run a live CD? I never had an issue like that with my phone but I did have a similar problem with the USB external blu ray drive I bought some time ago. The pc just didn't detect it at all not on any of the ports until I rebooted my PC with the drive already plugged it and for some reason it picked it up. <Not a solution as I don't know what caused it to not be detected in the first place but still...
Not sure if it's an issue with the device(Phone for you, blu ray drive for me) or if it's a problem with the PC even though other things might still work for you as it definitely did for me(phone, headset, mouse, keyboard, usb extender + all the external hard-drives connected to it)...
Problem exists in all computers, Mac, pc, linux
Did you try what I suggest in Post #6 above?
This worked for me when I had the same issue. adb and fastboot would work, but it would not mount MTP.
And just in the last day or 2 I helped someone else with the same issue and fix.
The phone doesn't show up in device manager.
Have you modify the Kernel? (Applying some settings for example)
I browsed over the web for this issue and found some people with the same problems. They solved by removing the settings applied on the kernel or flashing a new one.
I've flashed various kernels and ruu, still same result
Still looking for help

[Q] HTC M8 not being seen in adb

OK using a windows 8.1 Pro laptop, ADB installed properly with HTC Sync Manager, both Windows, HTC Sync Manager and the Device Manager in the Control Panel can see my phone. I tick on USB debugging and then press revoke USB debugging authorizations. Unplug my phone and plug it back in. I'm using the original USB cable from HTC. Everything pops up and shows like it's connected, except when I type in
Code:
adb devices
in the command prompt, then it just comes up blank. I've attached screen shots so you guys can see what I am talking about. If you have any ideas it would be much appreciated. I've attached some photos just to show that I've dotted all my i's and crossed all my t's as far as I can see. I also want to point out this is the second computer I've tried this on.
reubendevries said:
OK using a windows 8.1 Pro laptop, ADB installed properly with HTC Sync Manager, both Windows, HTC Sync Manager and the Device Manager in the Control Panel can see my phone. I tick on USB debugging and then press revoke USB debugging authorizations. Unplug my phone and plug it back in. I'm using the original USB cable from HTC. Everything pops up and shows like it's connected, except when I type in
Code:
adb devices
in the command prompt, then it just comes up blank. I've attached screen shots so you guys can see what I am talking about. If you have any ideas it would be much appreciated. I've attached some photos just to show that I've dotted all my i's and crossed all my t's as far as I can see. I also want to point out this is the second computer I've tried this on.
Click to expand...
Click to collapse
Might be a driver issues... Try those: https://www.dropbox.com/s/nr91z4bveeugaow/googleUSBdrivers.zip?dl=0
Sent from here
1) Unplug the phone from your computer
2) Uninstall anything related to HTC (drivers, sync managers..)
3) Reboot the computer
4) Install the latest (direct URL) HTC Sync Manager
5) I tend to uninstall the manager right afterwards (optional)
6) Reboot the computer & plug in your device
7) Report back
abyssis said:
1) Unplug the phone from your computer
2) Uninstall anything related to HTC (drivers, sync managers..)
3) Reboot the computer
4) Install the latest (direct URL) HTC Sync Manager
5) I tend to uninstall the manager right afterwards (optional)
6) Reboot the computer & plug in your device
7) Report back
Click to expand...
Click to collapse
Yeah that didn't work unfortunately
lukes91 said:
Might be a driver issues... Try those: https://www.dropbox.com/s/nr91z4bveeugaow/googleUSBdrivers.zip?dl=0
Sent from here
Click to expand...
Click to collapse
Yeah that didn't work, I even tried installing the USB Driver manually and that didn't work either. Still comes up as not connected, it's super frustrating.
Not sure if this helps but for some reason my Android Phone isn't showing up under Android phone in my Device Manager, it's showing up as Portable Devices. I don't know if this is an issue or not, anyone care to give an opinion?
reubendevries said:
OK using a windows 8.1 Pro laptop, ADB installed properly with HTC Sync Manager, both Windows, HTC Sync Manager and the Device Manager in the Control Panel can see my phone. I tick on USB debugging and then press revoke USB debugging authorizations. Unplug my phone and plug it back in. I'm using the original USB cable from HTC. Everything pops up and shows like it's connected, except when I type in
Code:
adb devices
in the command prompt, then it just comes up blank. I've attached screen shots so you guys can see what I am talking about. If you have any ideas it would be much appreciated. I've attached some photos just to show that I've dotted all my i's and crossed all my t's as far as I can see. I also want to point out this is the second computer I've tried this on.
Click to expand...
Click to collapse
check and unchecked camera under USB settings when its plugged in
reubendevries said:
Not sure if this helps but for some reason my Android Phone isn't showing up under Android phone in my Device Manager, it's showing up as Portable Devices. I don't know if this is an issue or not, anyone care to give an opinion?
Click to expand...
Click to collapse
That's normal as the phone is using MTP, the Android Phone entry only appears once the drivers are installed. It's definitely a driver issue but as to what I can't say as I have no issues on my 8.1 Pro laptop
I think I figured something out, just flash CM 12 - (God it's amazing. ) and now I can see my phone on ADB, so whatever ****ery was going on I am blaming it on HTC stock rom.
reubendevries said:
I think I figured something out, just flash CM 12 - (God it's amazing. ) and now I can see my phone on ADB, so whatever ****ery was going on I am blaming it on HTC stock rom.
Click to expand...
Click to collapse
is cm12 worth the hassle?
Sorry for the necrobump, but I ran across this thread while researching the same issue on my M8 and wanted to save anyone else the trouble if they also stumbled across this same issue.
Though the solution discussed would likely work, if you don't want to hassle with a new ROM, it is possible to fix it on your existing ROM provided you have root.
[SOLVED] ADB 'unauthorized', no RSA prompt, and no 'Revoke USB debugging' option
NFSP G35 said:
Sorry for the necrobump, but I ran across this thread while researching the same issue on my M8 and wanted to save anyone else the trouble if they also stumbled across this same issue.
Though the solution discussed would likely work, if you don't want to hassle with a new ROM, it is possible to fix it on your existing ROM provided you have root.
[SOLVED] ADB 'unauthorized', no RSA prompt, and no 'Revoke USB debugging' option
Click to expand...
Click to collapse
Thanks for this guide you put up. Interesting that there was no option for you to revoke USB authorization. My device is S-ON and have been using Viper for a while with the option available. Same for HTC stock. Good for you getting that fixed. Had a similar issue on a different device months ago.

Categories

Resources