[Q] ADB problems on CM7 - Droid Incredible Q&A, Help & Troubleshooting

Hey Guys,
Does anybody know how to actually use ADB on cyanogen? I can't seem to find my device when I call "adb devices" in command prompt. I have the android debugging enabled but it just won't pop up on the computer.
I was developing with eclipse and using adb to push my program to the incredible with skyraider for testing but with CM7 it just can't find the device for some strange reason.
Mods: Please feel free to move to Q & A if it's not appropriate for the section.

Solved:
Not sure if it was cyanogen (assuming it was because it wasn't working after I installed this rom).
Noticed a driver wasn't being found in computer manager. Right clicked the unknown device > update drivers > browse computer > have disk > went to sdk drivers and forced adb install.
Finally found in adb devices on command prompt.
Hope this helps someone in the future.

Related

New to ADB and have a few questions I can't find the answers to...

Now, I have figured out that I have to actually be in the android-sdk-windows\tools folder for ADB to work, but when I type adb devices it just says List of devices attached but doesn't list my Evo.
I have USB debugging on.
An Android ADB/rooting noob guide would be very helpful right now.
criccio said:
Now, I have figured out that I have to actually be in the android-sdk-windows\tools folder for ADB to work, but when I type adb devices it just says List of devices attached but doesn't list my Evo.
I have USB debugging on.
An Android ADB/rooting noob guide would be very helpful right now.
Click to expand...
Click to collapse
Does it have anything there when you type adb devices? Should come up with a HT and some numbers after it....being your device, EVO.
Actually, there is a step by step Guide for EVO root, and a ADB Guide for Beginners
Your device isn't being recoginized check the driver if u r in windows.
Ok, I managed to figure out the cryptic SDK installer and download the USB driver package to android-sdk-windows\usb_driver. I used Device Manager to install the driver and I pointed it to that folder and I get the "Windows was unable to install your ADB".
Are you already Rooted? as for the Drivers, when I plugged in my EVO via USB, it installed drivers...I also copied the HTC Sync that came on the SDCard w/phone, onto my pc. But I did not have to do anything further.
Can I ask what you are trying to do in adb? and is this for the EVO?
use the cd command to make sure you are in the android sdk tools folder
if you want adb to work
what i do
1. use the cd command to go to the directory where my sdk is located which for example is c:\androidsdk\tools
2. there you go
3. if you want shell make sure your device is connected
"adb shell"
and have htc sync from evo's sd card installed
http://myevo4g.net/main/?p=83
Sent from my HTC EVO
download htc sync and install that. i was having the same problems and apparently the usb drivers that get installed with that app are the ones that worked like a charm for me.
Try
Code:
./adb devices
Instead.
--> try" adb start-server "
If your HTC dont show up, it's usually because the ADB server isnt running. Hope this helps =]
I've rooted a hero before and felt pretty confident with android sdk, usb drivers, etc. After spending an hour trying to get it to work on my win 7 64 bit system, I thought it might save someone some time if I posted what finally allowed me to get adb to work.
My problem was the computer wouldn't recognize the EVO as a device. Even after I installed the usb drivers through android sdk. I tried to manually update them through device manager (pointing it to the usb drivers directory) and still no luck.
As the video linked above showed, the missing piece for me was installing htc sync. use the version that comes on the phone. So connect the phone to the computer, mount it as a drive from the phone menu, then copy over the htc sync directory to your computer, then run it. The version on my phone was 2.031. THEN the computer will recognize it with usb debugging turned on and I'm able to adb to the phone through the command prompt.
Hope that helps someone. Sean

[Q] Almost there w/adb

After struggling for two days to get adb up and running, I finally got the cmd window up and able to get to adb shell. After running daemon it returns-
error: device not found
sh-3.2$
So are my drivers missing or not in the right place? any help greatly appreciated.
xD lol get the universal naked drivers from efrants thread . Then with the phone plugged in go to device manager and uninstall the drivers... then unplug the phone, install the drivers put the phone in fastboot mode (volume up + volume down + power) and plug it in again... enjoy
Sent from my GT-P7500 using xda premium
When installing the drivers, with the GNex connected, go to the Device Manager in windows. Right click the unknown device that appears on your list and right click to update the driver. Select browse (as opposed to automatic driver lookup) and navigate to the folder where you have the modified driver extracted to:
http://github.com/gu1dry/android_winusb/zipball/master (this modified driver comes directly from the CyanogenMod wiki)
this should solve your problem.
type on the cmd: adb devices
and if any device actually shows up, then you have installed drivers successively.
IonAphis said:
When installing the drivers, with the GNex connected, go to the Device Manager in windows. Right click the unknown device that appears on your list and right click to update the driver. Select browse (as opposed to automatic driver lookup) and navigate to the folder where you have the modified driver extracted to:
http://github.com/gu1dry/android_winusb/zipball/master (this modified driver comes directly from the CyanogenMod wiki)
this should solve your problem.
type on the cmd: adb devices
and if any device actually shows up, then you have installed drivers successively.
Click to expand...
Click to collapse
I followed the steps in your post to the letter and drivers seem to display properly in Device Manager but I still get the sme message displayed in cmd window.
diver47591 said:
After struggling for two days to get adb up and running, I finally got the cmd window up and able to get to adb shell. After running daemon it returns-
error: device not found
sh-3.2$
So are my drivers missing or not in the right place? any help greatly appreciated.
Click to expand...
Click to collapse
You cannot use adb commands within a shell..
Sent from my Galaxy Nexus using Tapatalk 2

[Q] Getting the Note 2 working with Eclipse

I have decided to start with making apps for Android, and I've downloaded the Android ADT package, got it all set up in Eclipse and everything. When I go to try and run the default "Hello World" app, I click 'Run' and nothing happens. Nothing at all. My phone is plugged in with USB, it allows installation of non-market apps, it's got USB Debugging on in the Developer Options, and I've added "android:debuggable="true"" to the Android manifest file. The only thing I haven't done is installed the OEM drivers. I go to the Samsung downloads thing that I'm directed to from here: http://developer.android.com/tools/extras/oem-usb.html#Drivers , but it doesn't seem to have my phone, even when I type in the model number.
So what am I doing wrong?
Thanks in advance.
adb devices
make sure that the adb daemon is able to detect your device by typing 'adb devices' at the command prompt while your phone is connected.
I ended up using the Note 2 toolkit from XDA and installing the drivers that way, then I had to manually set up my device in Eclipse, it didn't detect it automatically.

[Q] "adb devices" command not listing my Nexus 7 (2013) !

When I try to run the "adb devices" command in the cmd prompt, its is just saying "List of devices attached", but the device Nexus 7 (2013) itself is not been listed. I am able to Kill and start the server. "adb reboot" command not working.
I checked the Device manger; It is listing the device as "Google Nexus ADB Interface" !
Also the "USB Debugging" is checked along with "MTP Device"
What could be the problem?? Any issue with drivers. I have already downloaded the adb and fastboot tools in the drive and running the cmd prompt from that path.
??
Tech2Yantra said:
When I try to run the "adb devices" command in the cmd prompt, its is just saying "List of devices attached", but the device Nexus 7 (2013) itself is not been listed. I am able to Kill and start the server. "adb reboot" command not working.
I checked the Device manger; It is listing the device as "Google Nexus ADB Interface" !
Also the "USB Debugging" is checked along with "MTP Device"
What could be the problem?? Any issue with drivers. I have already downloaded the adb and fastboot tools in the drive and running the cmd prompt from that path.
??
Click to expand...
Click to collapse
It's driver related, install these, then reboot the PC, then with the device plugged in, delete the Google Nexus ADB Interface from within device manager, delete the driver from system if prompted, and leaving the device plugged in, reboot the device, it should redetect the device properly, wait for it to boot up all the way, then unplug the device and plug it back in, and test, you will want to do this for every mode combination, as per my post found here: http://forum.xda-developers.com/showthread.php?p=50253887#post50253887
The important part is making sure the device is plugged into your PC and set to the mtp/ptp/debug mode you want detected when you reboot the device after deleting the driver from device manager.
mdamaged said:
It's driver related, install these, then reboot the PC, then with the device plugged in, delete the Google Nexus ADB Interface from within device manager, delete the driver from system if prompted, and leaving the device plugged in, reboot the device, it should redetect the device properly, wait for it to boot up all the way, then unplug the device and plug it back in, and test, you will want to do this for every mode combination, as per my post found here: http://forum.xda-developers.com/showthread.php?p=50253887#post50253887
The important part is making sure the device is plugged into your PC and set to the mtp/ptp/debug mode you want detected when you reboot the device after deleting the driver from device manager.
Click to expand...
Click to collapse
Thank you for helping out. I found what was wrong. The drivers were ok. I had ticked the MTP device option earlier. When I ticked the Camera (PTP) instead, the ADB commands started working. I even rooted and installed custom recovery through adb interface.
Thank u once again.
Tech2Yantra said:
Thank you for helping out. I found what was wrong. The drivers were ok. I had ticked the MTP device option earlier. When I ticked the Camera (PTP) instead, the ADB commands started working. I even rooted and installed custom recovery through adb interface.
Thank u once again.
Click to expand...
Click to collapse
You're welcome, fwiw, if you follow my suggestions, you can make it so adb works in ptp and mtp, but if it's not important to you, then it's not dire.

[Q] Driver install problem w/ Mac

I'm having some trouble and I think it might be related to drivers. I'm on Mac OSX 10.8.5 so I downloaded the LGUnitedMobile_Mac_Driver_Ver_4.22 from here:
http://www.andromods.com/download-files/latest-lg-g4-drivers-usb-adb-win-mac.html
I installed, restarted computer. When I plug in the G4 via USB I don't get the popup requesting ADB access. (I've got USB debugging on in Developer Options and it shows as on in Developer Options as well as a notification in the pulldown menu). If I tap on the notification from the pulldown for MTP options I'm asked if I want to install the drivers. So, I do that too and wait for it to complete. Still no ADB popup. If I open the Debloater tool, no welcome popup and the "device connected" light is red.
I tried toggling between MTP and PTP and still nothing. Tried unauthorizing my computer in Developer Options, unplugging, and waiting. Tried restarting phone.
Further, if I open Android File Transfer I get a message "No Android device found" whereas before trying to install the driver it found the G4 just fine. Ran the uninstall script from the LG driver software and Android File Transfer then CAN see the phone.
Any ideas? Any help would be appreciated - I'm trying to run the Debloater tool (which can't see the G4 either no matter what I try).
creaky said:
I'm having some trouble and I think it might be related to drivers. I'm on Mac OSX 10.8.5 so I downloaded the LGUnitedMobile_Mac_Driver_Ver_4.22 from here:
http://www.andromods.com/download-files/latest-lg-g4-drivers-usb-adb-win-mac.html
I installed, restarted computer. When I plug in the G4 via USB I don't get the popup requesting ADB access. (I've got USB debugging on in Developer Options and it shows as on in Developer Options as well as a notification in the pulldown menu). If I tap on the notification from the pulldown for MTP options I'm asked if I want to install the drivers. So, I do that too and wait for it to complete. Still no ADB popup. If I open the Debloater tool, no welcome popup and the "device connected" light is red.
I tried toggling between MTP and PTP and still nothing. Tried unauthorizing my computer in Developer Options, unplugging, and waiting. Tried restarting phone.
Further, if I open Android File Transfer I get a message "No Android device found" whereas before trying to install the driver it found the G4 just fine. Ran the uninstall script from the LG driver software and Android File Transfer then CAN see the phone.
Any ideas? Any help would be appreciated - I'm trying to run the Debloater tool (which can't see the G4 either no matter what I try).
Click to expand...
Click to collapse
You won't get the adb popup until you run an adb command in terminal. for example adb devices command is what triggered my popup.
uly609 said:
You won't get the adb popup until you run an adb command in terminal. for example adb devices command is what triggered my popup.
Click to expand...
Click to collapse
Thanks for the response. Tried that (typed adb devices in Terminal) and got this: -bash: adb: command not found
Not sure what I'm doing wrong here.
Do you have installed the android sdk?
creaky said:
Thanks for the response. Tried that (typed adb devices in Terminal) and got this: -bash: adb: command not found
Not sure what I'm doing wrong here.
Click to expand...
Click to collapse
If I remember correctly you need to download the android sdk and install the sdk and platform tools. When you do this make sure you make a folder on your desktop and name it whatever you want, and when you install the sdk make sure the install path goes to the folder you made. Then open a terminal window and navigate to the folder you installed the sdk to.
Then run the adb command, but it will be slightly different:
./adb devices
uly609 said:
You won't get the adb popup until you run an adb command in terminal. for example adb devices command is what triggered my popup.
Click to expand...
Click to collapse
wadamean said:
Do you have installed the android sdk?
Click to expand...
Click to collapse
I had to reinstall - that was the problem. Thanks!
uly609 said:
If I remember correctly you need to download the android sdk and install the sdk and platform tools. When you do this make sure you make a folder on your desktop and name it whatever you want, and when you install the sdk make sure the install path goes to the folder you made. Then open a terminal window and navigate to the folder you installed the sdk to.
Then run the adb command, but it will be slightly different:
./adb devices
Click to expand...
Click to collapse
Thanks again for the help. Problem solved.
Hey so then you were able to root using your mac? what variant g4 do you have? Could you please message me what steps you did to get successful root? i would really really appreciate it. its very rare to find mac users.
wadamean said:
Hey so then you were able to root using your mac? what variant g4 do you have? Could you please message me what steps you did to get successful root? i would really really appreciate it. its very rare to find mac users.
Click to expand...
Click to collapse
Not root, used Debloater tool to block updates. Would love to see a Mac root method released.
oh i see then. i will keep patiently waiting for a simpler root method. this one is already but for sure there has always been even more simpler methods surfaced.

Categories

Resources