Monday, May 1, 2017

usb debugging - 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 the same machine that just re-flashed that Nexus S a couple weeks ago, I booted the Nexus 5 into fastboot mode, flashed ClockworkMod onto it and re-unlocked the bootloader. However, when I tried using ADB to push the CyanogenMod image over, I got error: device not found. Sure enough, adb devices fails to detect the device, even though USB debugging is enabled.


I decided this was just an issue with L, so I used Google's flash-all.sh script to give me a stock KitKat install. This worked fine, since it's pushing the image via fastboot. However, I still can't get the device to show up to ADB. When I enable USB debugging with the phone plugged into my computer, I don't get a fingerprint confirmation dialog, and no icon notification appears to indicate that it's connected to a computer. I've tried 2 different OSes (Windows 7 and Linux Mint 14) on 3 different computers with 4 different USB cables.


I've tried installing Google's USB drivers, and I have this problem with both fresh installs of the Android SDK and time-tested ones. I've already got 0x18d1 in my adb_usb.ini. On my Linux system, the output of the lsusb command gives identical output whether the phone is connected (with USB debugging enabled) or not. When it's in fastboot, it shows up as Bus 001 Device 069: ID 18d1:4ee0 Google Inc.



The phone seems to work perfectly fine in every other respect. I'm pretty happy with vanilla KitKat, but I'd be happier at least knowing I had the option to use something else. I also like having access to adb shell now and then.


I've seen plenty of people having issues with ADB before, but never without also having fastboot problems. Any ideas what might be going on? I'd prefer a Linux solution, but I can also work with Windows if needed.




Update: I was able to get the appropriate files into /sdcard/ by simply downloading them with a web browser, then flashing them with ClockworkMod. I'm now running CM 11, and the ADB problem hasn't gone away. Whatever is causing this, it persists through complete ROM replacements. I'm now curious as ever to know what could be causing this.




Update 2: Upon further communication with the ebay seller, it turns out this phone had been the subject of water damage prior to being listed for sale. The device booted and appeared to work fine, but in addition to this strange ADB issue, it also couldn't recognize a SIM card. It seems like this was some one-of-a-kind hardware damage, so I doubt there's even a solution.


I ended up returning the device, so there's no way for me to test anything else on it, but if anyone's able to come up with an explanation for why Fastboot can communicate with the device but ADB can't (again, probably due to a hardware fault), I'll accept that as an answer.




No comments:

Post a Comment

samsung galaxy s 2 - Cannot restore Kies backup after firmware upgrade

I backed up my Samsung Galaxy S2 on Kies before updating to Ice Cream Sandwich. After the upgrade I tried to restore, but the restore fails ...