Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
Mookie_Jones
Old
#1  
Senior Member - OP
Thanks Meter 2
Posts: 206
Join Date: Sep 2009
Location: Detroit
Default eclipse using ubuntu

i cant get my eclipse to debug my phone

if i adb devices i get
??????????????? no permissions


ubuntu 10.4
Samsung Vibrant
LG Optimus G2X
HTC Sensation

Google Nexus
8GB Trancend Class 6 microSD
 
unforgiven512
Old
(Last edited by unforgiven512; 16th July 2010 at 11:13 AM.) Reason: It's quite evident.
#2  
unforgiven512's Avatar
Senior Member
Thanks Meter 127
Posts: 209
Join Date: Oct 2008
Location: Erie, PA

 
DONATE TO ME
You need to add the samsung USB vendor code into udev.

Press ALT + F2

In the run dialog, enter:
Code:
gksudo gedit /etc/udev/rules.d/51-android.rules
Enter your password when prompted.

Here is my configuration:

Code:
SUBSYSTEM=="usb", SYSFS{idVendor}=="18d1", MODE="0666"
SUBSYSTEM=="usb", SYSFS{idVendor}=="0bb4", MODE="0666"
SUBSYSTEM=="usb", SYSFS{idVendor}=="04e8", MODE="0666"
SUBSYSTEM=="usb", SYSFS{idVendor}=="22b8", MODE="0666"
18d1 = Nexus One
0bb4 = HTC (Dream/Magic/Evo/Hero)
04e8 = Samsung (Moment)
22b8 = Motorola (Droid)

Contained in italics are known phones for sure. I'm going to assume the Vibrant uses the same USB vendor code as the Moment.

ALSO, MAKE SURE THE VENDOR ID (i.e. 04e8) IS ALL LOWERCASE, UNLIKE THIS. I had severe issues figuring out why it still wasn't working after adding, and I found out it IS case sensitive.

Add the Samsung line to your file, and save it. Follow the following instructions.

Open a terminal (Applications -> Accessories -> Terminal).

Type:

Code:
sudo service udev restart
Then unplug and replug your phone.

In the terminal, type:

Code:
adb devices
It should return something like this:

Code:
unforgiven512@hydromorphone:~$ adb devices
List of devices attached 
HT9CZP805116	device
Enjoy!

EDIT:

It may have a different Vendor ID.

If so, in the terminal, type:

Code:
lsusb
It will return something like this:

Code:
unforgiven512@hydromorphone:~$ lsusb
Bus 002 Device 006: ID 046d:c222 Logitech, Inc. G15 Keyboard / LCD
Bus 002 Device 005: ID 046d:c221 Logitech, Inc. G15 Keyboard / Keyboard
Bus 002 Device 004: ID 0a12:0001 Cambridge Silicon Radio, Ltd Bluetooth Dongle (HCI mode)
Bus 002 Device 003: ID 046d:c223 Logitech, Inc. G15 Keyboard / USB Hub
Bus 002 Device 002: ID 046d:c50e Logitech, Inc. MX-1000 Cordless Mouse Receiver
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 013: ID 18d1:4e12  
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 13 is my Nexus One, so my vendor code would be 18d1. Substitute your result in and you shall achieve win!
PHONE: Google Nexus 4 [mako]
SOFTWARE: CyanogenMod 10.1 [nightlies]

TABLET: ASUS Transformer Infinity [tf700t]
SOFTWARE: CyanogenMod 10.1 [nightlies]

BITCOIN: 1LRfN37611eUMwcxdWV4hsvX2mbddK5BQT

Twitter: http://twitter.com/unforgiven512
Google Talk: unforgiven512@gmail.com
 
Post Reply+
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

report this ad
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Go to top of page...