Phone not recognized by ADB in Ubuntu - LG Optimus 2x

Hi Guys
I am trying to learn android programming and my pc running ubuntu 12.04 is not recognizing the p990 on cm 10.1. I remember that the phone used to be detected while running official ICS.
I used to get around this problem by using ADB over wifi to access the device.
But after the cm10.1 update to android 4.2.2 adb over wifi is not working anymore.
i tried adding entries to 51-android.rules file. But that doesn't work either(I think adding the rules only work if the device is listed using the lsusb command. In my case it is not listing as a usb device).
Charging is working fine BTW.
I am currently running cm 10.1 feb -19 rom with kowalski 100p3 kernel and old bootloader
Please help....

do you have installed Android-SDK? This is recommend

yes, i can connect nexus 7 without any problem.

Did you try start adb as root on your Linux box? Mine only works as this.
Sent from my LG-P990 using xda app-developers app

No, I will try that.
But i think it has to do with the new confirm prompt for debugging that was introduced in 4.2.2. It doesn't appear when I try debugging over WiFi. Any idea how i can override that prompt or add my PC to the adb white-list

Adb should not be starting as root. Please don't do this. What you need is properly configure udev rules to recognize your device and set the proper rights for device node in /dev.

Keltek said:
Adb should not be starting as root. Please don't do this. What you need is properly configure udev rules to recognize your device and set the proper rights for device node in /dev.
Click to expand...
Click to collapse
May I ask why? I'm using it for years like this. And it's fine.
Sent from my LG-P990 using xda app-developers app

Keltek said:
Adb should not be starting as root. Please don't do this. What you need is properly configure udev rules to recognize your device and set the proper rights for device node in /dev.
Click to expand...
Click to collapse
Thanks . that is what i am trying to figure out.
i need to clarify a couple of things though.
1) Does udev rules work even when the device is not listed using 'lsusb' command?
2) i think the manufacture id for lg is 1004. but i am not able to find its product id.Does any one have an idea.?
also it would be nice if somebody could share the complete rule. I believe it is usually added to '51-android.rules' file.
Thanks in advance .

Re: [fixed]Phone not recognized by ADB in Ubuntu
A complete wipe and re install of the latest nightly fixed it. The phone was detected in USB mass storage mode.
Updating here so that any body who come across three same issue might find it helpful.
Sent from my Nexus 7 using xda app-developers app

Related

[HELP]cmd adb error msg...

I already have my pc setup with adb. It appears to be working just fine. I'm trying to setup adb on my laptop and is running into all types of problems. I've downloaded the sdk and ran the sdk setup.exe and downloaded all the latest files, and of course the usb driver. I was able to successfully install the driver and was able to connect my G1 for file transfer. I've followed the guide info to the letter but for some strange reason I get the following:
Code:
* daemon not running. starting it now *
* daemon started successfully *
error: device not found
I've already tried uninstalling the newest driver and installing the working one from my pc, then I tried downloading a driver that was listed by a user in this thread. Still no luck. Any advice would be greatly appreciated!
SG_Shadow said:
I already have my pc setup with adb. It appears to be working just fine. I'm trying to setup adb on my laptop and is running into all types of problems. I've downloaded the sdk and ran the sdk setup.exe and downloaded all the latest files, and of course the usb driver. I was able to successfully install the driver and was able to connect my G1 for file transfer. I've followed the guide info to the letter but for some strange reason I get the following:
Code:
* daemon not running. starting it now *
* daemon started successfully *
error: device not found
I've already tried uninstalling the newest driver and installing the working one from my pc, then I tried downloading a driver that was listed by a user in this thread. Still no luck. Any advice would be greatly appreciated!
Click to expand...
Click to collapse
plug your phone in
get working drivers
install linux, it works better
I already have my pc setup with adb. It appears to be working just fine. I'm trying to setup adb on my laptop and is running into all types of problem
Click to expand...
Click to collapse
[*]plug your phone in
[*]get working drivers
[*]install linux, it works better
Click to expand...
Click to collapse
u forgot a step.
[*]post in the correct forum
Firerat said:
plug your phone in
get working drivers
install linux, it works better
Click to expand...
Click to collapse
1) Done [Don't insult me!]
2) Tried 3 different drivers. All allowed me to connect my G1 to transfer files, but not ADB.
3) ...shouldn't have to install linux. My pc (running windows abviously) works just fine. My laptop, running windows, should work the same.
Thanks for the assistance though...
Daneshm90 said:
u forgot a step.
[*]post in the correct forum
Click to expand...
Click to collapse
Fail!
SG_Shadow said:
1) Done [Don't insult me!]
2) Tried 3 different drivers. All allowed me to connect my G1 to transfer files, but not ADB.
3) ...shouldn't have to install linux. My pc (running windows abviously) works just fine. My laptop, running windows, should work the same.
Thanks for the assistance though...
Fail!
Click to expand...
Click to collapse
read the adb for dummies thread, post in that thread...........................
and
your welcome.
would you like me to wipe your nose as well?
This IS in the wrong forum.
Moved.
Firerat said:
read the adb for dummies thread, post in that thread...........................
and
your welcome.
would you like me to wipe your nose as well?
Click to expand...
Click to collapse
I really wouldn't except this behavior from you, but I see we all fall from grace every now and again. I've posted in that thread already, no one can seem to come up with an intelligent response. I followed all the instructions in both adb help threads for proper installation on my laptop. If you don't know the answer to what I'm seeking, I would honestly prefer you not to reply at all. Don't assume I'm the typical xda idiot, assume I'm the most intelligent person you've ever spoke to, then go from there with your next reply.
SG_Shadow said:
I really wouldn't except this behavior from you, but I see we all fall from grace every now and again. I've posted in that thread already, no one can seem to come up with an intelligent response. I followed all the instructions in both adb help threads for proper installation on my laptop. If you don't know the answer to what I'm seeking, I would honestly prefer you not to reply at all. Don't assume I'm the typical xda idiot, assume I'm the most intelligent person you've ever spoke to, then go from there with your next reply.
Click to expand...
Click to collapse
you posted a couple of hours ago, duplicating posts might be considered spam
you didn't really give any useful information in your post(s)
and if I were to assume your were, then this is just some boring role play thing at a job interview or something, as you wouldn't really need anyones help on this.
Everyone, Chill it.
We don't need a flame war.
Check your firewall. Make sure it's not blocking the connection. Also, are you using the same USB cord on both machines?
ivanmmj said:
Everyone, Chill it.
We don't need a flame war.
Check your firewall. Make sure it's not blocking the connection. Also, are you using the same USB cord on both machines?
Click to expand...
Click to collapse
Thank you for trying to "actually" assist me. I am using the exact same usb cable on purpose to rule that out as a reason. I've also recently update both computers to the latest norton antivirus. Like I stated the drivers install on the laptop and I'm able to connect the G1 for file transfers, so I assume the driver is working but when I type in adb device or adb shell in cmd, I get the no device msg. I'm really stumped with this one...
*Update* My norton did remove adb.exe from windows\system32 on both computers, but I was able to restore that file on both. Like I said, my pc works just fine, laptop no good...
And point 3
Install linux ( ubuntu 10.4 )
Just give it 10gb
It will eliminate hardware faults as being the problem
The android developer has a tutorial for 10.4, so it should be easy
( no need for drivers, aparently 10.4 ships with the android udev rule )
the driver for file transfer isnt the same as the driver for adb....so your logic is flawed
seriously tho, use linux...wubi is pretty good now and u only need 4-10gb if u are only using it for android stuff
in my experience, windows, especially where norton is used, randomly breaks adb
The file transfer is done using the standard windows mass storage driver, not an android specific driver. Even if it's the same norton, try disabling it and see what happens. Also, trying removing the driver completely and reinstalling it again. I've had the issue happen also only when in windows and it's always something random.
virtualbox _should_ ( I think ) let you 'see' the Android Phone regardless of the drivers being installed on the Windows host
But, I have not tested that
Did you ever get this to work, I have the same issue?
I'm having the same issue, I'm trying to use ADB with my TF300T from a Windows 7 64 bit system. Always get the error adb error.
I have a couple of questions will this work correctly with a 64bit O.S?
Also the part of the instructions that reference SDCARD are they talking about the directory on my ASUS /sdcard/ or are they talking about the physical card?
Just need to know does it require you to have a sdcard in the ASUS to use adb?
May sound like fundamental questions to a lot of you, however I have combed through these forums as well as others all over the web, and the majority of instructions seem to be lacking the basics.
Thank you,
I have Ubuntu at work should I run ADB through this?
I have Ubuntu at work
It's a bit of a process according to the instructions that I have on the
screen right now to setup ADB through this, is there any gotchas that I should
know about before attempting this?
This is running on a VM on one of my servers. What I'm looking for is any known compatibility issues with versions of ADB and the Asus TF300T running .26
Thanks in advance.
Nordis

ADB not showing up??

Sorry guys, I am new here and am having a problem getting ubuntu to work on my NC. I am trying to get it to boot using adb but it will not show up on my PC. I have tried 3 different PCs (2 win7 64bit and 1 vista 32bit), installed the nook drivers but it will never show up in the command prompt. I have tried enabling and disabling development mode and I disabled USB mount. I don't know what else to try. I am on 1.1.0 of the system software if that matters. I got ubuntu to work once using terminal emulator but am having problems getting the script to work. But my main objective is getting adb to see my nook. If you could help, I'd appreciate it. Thanks
I dont follow you very well, what's your problem? Your PC doesn't see NC or something else?
Sent from my HTC Vision using XDA App
ADB does not see it is what I'm saying. I will say that I am not using the stock USB cable that came with the nook as I don't have that cable anymore. Could it be that the cable I'm using doesn't work properly? It see's everything fine when I tell it to mount the SD card. I just using a froyo card in it and adb saw it although it said offline. Could the cable be a reason why it wouldn't work?
It's possible, but not likely as I am using diiferent cable for communication between PC and NC all the time... My original is connected to a charger from the purchase of NC...
did you install the right drivers for it? It depends which OS flavor you have on your nook. Honeycomb uses different drivers vs Froyo
edein said:
did you install the right drivers for it? It depends which OS flavor you have on your nook. Honeycomb uses different drivers vs Froyo
Click to expand...
Click to collapse
I'm having the same issues. I'm on a Windows 7 Box and I can not see the NC.
In Device Drivers under <Other> I find the NC but the driver is invalid. I have DL'ed the Android SDK with the USB drivers and I have tried pointing to the driver manualy. No Joy.
Any Help would be greatly apreciated.
TY
-NJ
have you tried this? http://forum.xda-developers.com/showthread.php?t=882751 ...run the .bat and follow it's instructions.
Also: it's very important that you reboot your Nook at least once after your first OS installation.

[Q] No adb access.....

Once i got my new nook color i rooted it with auto nooter, and im running 1.0.1, on my previous nook i rooted it and adb worked right then, now i cant get adb access, im using the same computer and everything, all thats diferent is its a new nook. I have full root access and can install apps and everything. Any help?
Seems to be a common problem. You can launch NookColorTools and fix it temporarily. Go to "Development" and then unchecked and then recheck the USB Debugging box.
Ok I've been doing that for a while and finnaly got the message that USB debugging is only for development. It works now......
Sent from my LogicPD Zoom2 using XDA App
Get ADB wireless, it works great.
I've had zero luck using usb adb, but adb wireless works great!
I was having similar issues so after many many attempts I just decided to go with adb wireless and would definitely recommend going that route if you can't get it working over usb.
Yeah, getting ADB to work requires a lot of uninstalling/reinstalling drivers and unplugging/replugging the device, it's very temperamental.
can someone link me to a link on how to use/setup adb wireless
beezy69 said:
can someone link me to a link on how to use/setup adb wireless
Click to expand...
Click to collapse
https://market.android.com/details?id=siir.es.adbWireless
it's free in the market and once you download it set up is easy. i've used it through my mac terminal as well as through ubuntu. like the posters above i had the hardest time getting adb to work via usb.
chemical1der said:
https://market.android.com/details?id=siir.es.adbWireless
it's free in the market and once you download it set up is easy. i've used it through my mac terminal as well as through ubuntu. like the posters above i had the hardest time getting adb to work via usb.
Click to expand...
Click to collapse
is there any tutorials on how to use it and what commands i need to install apps?
beezy69 said:
is there any tutorials on how to use it and what commands i need to install apps?
Click to expand...
Click to collapse
once you've installed adb on your computer type "adb" at your terminal prompt and you should list of commands there.
here's the link to Android Developer's ADB website (this also lists commands):
http://developer.android.com/guide/developing/tools/adb.html
files and installation directions can be found here:
http://developer.android.com/sdk/index.html
Good luck!
Ok so me being my dumb self forgot to install the adb drivers for the nook....... im dumb haha, but i cant get them to install, every time i uninstall the mass storage driver so i can install the proper driver it automatically re-installs it....... HELPPPPPPP
Is there any way to download this to the SD and install it from there? I've upgraded to a version of froyo, which doesn't have the market, and my command line won't work after swapping nooks.
I can't seem to get mine to work with either adbwireless or via usb.
Using USB I get this:
C:\android-sdk-windows\platform-tools>adb devices
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
List of devices attached
C:\android-sdk-windows\platform-tools>
Here is what I get if I try to connect using adbwireless:
C:\android-sdk-windows\platform-tools>adb connect 192.168.2.4:5555
already connected to 192.168.2.4:5555
C:\android-sdk-windows\platform-tools>adb devices
List of devices attached
192.168.2.4:5555 device
C:\android-sdk-windows\platform-tools>
But it doesn't show a serial number like all the HowTo's says it should. What am I missing?
EDIT: HALLELUJAH!!
I fixed it. Actually I didn't fix it, I just followed some instructions from another user that was having the same problem and finally figured out the very weird thing that installing the drivers did. Anyway, here is the solution from hacku:
Originally Posted by hacku View Post
Thanks for this...
EDIT 1:
I followed your instructions to a T and I still can't get ADB to see my NC. After uninstalling all instances of Nook in my device manager, unplugging it and plugging it back in, it adds all the same devices:
Under Disk Drives it lists B&N Ebook Disk USB Device (twice)
Under Portable Devices it lists MyNookColor
Under USB Controllers it lists USB Mass Storage Device
My PC is Windows 7 Ultimate 64bit. Running Nook Color 1.1.0 rooted and overclocked to 1.1Ghz. Any help will be greatly appreciated.
EDIT 2:
So I decided to pull the MicroSD card to simplify things. Uninstalled all instances of Nook from Device Manager and scanned for new hardware. This time I noticed that Windows detected it as a Nook, but then would install the drivers and it would show the same USB Mass Storage Device and the two instances of B&N Disk USB Device. I also noticed that by uninstalling the driver of the USB Mass Storage Device automatically deleted the other two instances under Disk Drives. So I updated the USB Mass Storage Device driver and this time I was able to install the drivers provided, but now it only shows up as an Android Phone > Android ADB Interface (not Composite), but I'm still not able to see it under adb devices.
Help?
EDIT 3:
GOT IT WORKING!!!
For those of you having this same problem this is what I did:
1. Right Click Android ADB Interface (it won't say Composite)
2. Select Update Update Driver Software
3. Click on Browse My Computer For Driver Software
4. Click on Let me pick from a list of device drivers on my computer
5. In the box that pops up click on USB Composite Device
6. Click Next
It now installed the USB Composite Device driver and changes your Android Phone to Android Composite ADB Device.
Open up Command Prompt and type adb kill-server then adb devices and your Nook Color will now show up.
Hope this helps some of you out.
This thing really needs to be pinned somewhere, preferably with IOMonster's first post. There's so many of us starting on this from scratch not able to get adb to see the device. har02's crosspost of hacku's post is what finally got it to work for me. there's a ton of junk out there that just doesn't make sense, and the installing the second driver on the "android interface" is a step that is completely missing from just about every post on this topic.
Aside from that, this forum is what got me buying a nook and happily learning all sorts of cool new things!
THANK you so much har02052, this marks the end of a 6 hour nook-fixing marathong....ahhhhh

Problem Connecting to Computer

I'm having a problem while trying to root my nexus. I'm trying to use the WUGS-Nexus root toolkit and my computer is not registering my nexus as an ADB device. I removed the original drivers from my computer and installed the drivers from the toolkit but that didn't help. I was trying to install the android SDK (just got a new computer so nothing is installed yet) but I was having problems with that as well. It said that the Java JDK was not installed even though it is. Is the reason its not registering as an ADB device because ADB isn't installed? And does anyone know about the JDK issue? Thanks in advance!
Sent from my Nexus 7 using xda app-developers app
http://www.authorcode.com/forums/to...dk-not-found-during-android-sdk-installation/ may fix the sdk problem.
For the adb problem try opening device manager on windows and see if it shows a new device,
Sent from my Transformer while the N7 is lost in the Play Store Black Hole.
16gb N7 UK ordered 3rd July.
Make a Folder on the root of your hard drive typically C:, name it Java Install Java to this folder. (not in the programs folder) Set environment variables..(leave the system variables alone)..name it JAVA_Home...location C:/Java.
Sent from my Nexus 7 using xda premium

[Q] Nook HD cm10.1 ADB

Just one more problem. (I hope) Maybe I'm missing something obvious, but I've been unable to figure out ADB drivers for a cm10.1 Nook HD. I've only been able to find ones for stock. Where would these be found/how would I get this to work?
Ardent_V said:
Just one more problem. (I hope) Maybe I'm missing something obvious, but I've been unable to figure out ADB drivers for a cm10.1 Nook HD. I've only been able to find ones for stock. Where would these be found/how would I get this to work?
Click to expand...
Click to collapse
You really don't need to use ADB USB with CM10.1. You can go to developer options and enable ADB over network and you can use wifi to connect with ADB. Just type adb connect xx.xx.xx.xx:5555 in your PC prompt, where the x's is your Nook IP address.
Sent from my Galaxy Tab 2 using XDA Premium
Thanks, but adb over wireless seems to require authorization over USB. If it is supposed to be able to do that over wifi, I haven't been able to start it. I do have the latest abd, but it hasn't helped.
Aha! I've got both USB and wireless adb working. It was quite annoying, so I made a step-by-step guide in General-here.

Categories

Resources