FORUMS

Enable Multi-Window Mode on M Developer Preview

What was not mentioned in yeterday’s keynote was Android M’s multi-window … more

I/O Summary: Google Cardboard Virtual Reality

One year ago, Google introduced cardboard. Amazingly enough, that was all it took to fire … more

Android M Preview Images – XDA TV

Android M preview images are available. That and much more news is covered by Jordan when he … more

I/O Summary: How Android M Handles Power And Charging

In the spirit of improving the core Android experience, Google is changing Android … more

[Q] Linux ADB and my GT 7+

Thanks Meter: 1
 
By lilott8, Junior Member on 5th January 2012, 03:57 AM
Post Reply Subscribe to Thread Email Thread
For whatever reason, my GT 7+ is showing: ????????? offline/device when I run adb devices. I've tried running adb kill/start as root, still nothing. I've cycled "USB debugging". I'm running ubuntu 10.10. Every thing but adb is working but adb

Any insight or help would be helpful.
 
 
5th January 2012, 02:42 PM |#2  
garyd9's Avatar
Recognized Developer
Flag Pittsburgh, PA
Thanks Meter: 2,228
 
More
udev.

See: http://wiki.cyanogenmod.com/wiki/Udev
The Following 2 Users Say Thank You to garyd9 For This Useful Post: [ View ]
5th January 2012, 09:57 PM |#3  
OP Junior Member
Thanks Meter: 1
 
More
Answered
Here's the rule I put up in /etc/udev/rules/98-android.rules:
Code:
SUBSYSTEM=="usb", SYSFS{idVendor}=="04e8", MODE="0666" #all samsung devices
Then restart udev and then restart adb and it's up!
10th January 2012, 06:05 PM |#4  
Member
Thanks Meter: 8
 
More
This method is hard to remember. You can also start adb as root with:
adb start-server
and it should work that way, at least until adb is closed. You do not have to do all the adb commands as root, only the start.
10th January 2012, 08:08 PM |#5  
Senior Recognized Developer
Flag Owego, NY
Thanks Meter: 25,264
 
Donate to Me
More
Quote:
Originally Posted by Jason_25

This method is hard to remember. You can also start adb as root with:
adb start-server
and it should work that way, at least until adb is closed. You do not have to do all the adb commands as root, only the start.

Why do you need to remember it? Create a udev rule once and you never have to deal with it again.

Running things as root should be avoided if possible.
10th January 2012, 08:21 PM |#6  
garyd9's Avatar
Recognized Developer
Flag Pittsburgh, PA
Thanks Meter: 2,228
 
More
I have found that there may be an issue with ubuntu 10.10 and this tablet. For me, it seems that the MTP crud is interfering with adb. If I freeze the MTP application on the tablet, I have no problem.

...and now it gets even stranger: If I boot ubuntu 10.10 in a virtual machine (vmware 8.x), its fine even with mtp enabled.

I haven't had any issue at all with my gentoo boot. (However, I've been trying to do the android development with ubuntu as it appears to be directly supported by google.)

(This really isn't an issue for me, as I actually prefer to keep MTP disabled so I don't get popups.)
10th January 2012, 08:48 PM |#7  
Member
Thanks Meter: 8
 
More
Quote:
Originally Posted by Entropy512

Why do you need to remember it? Create a udev rule once and you never have to deal with it again.

Running things as root should be avoided if possible.

Because I work on computers other than my own?
Because I have more than one computer?
Because I sometime reinstall the OS?
Because I don't have magical fail-proof hardware?
Because udev gets messed up and apt-get replaces the rules file?

This method is simpler for new users. The adb tools are straight from google so can be trusted and the udev approach just adds a lot of complexity.

edit:
Quote:
Originally Posted by garyd9

I have found that there may be an issue with ubuntu 10.10 and this tablet. For me, it seems that the MTP crud is interfering with adb. If I freeze the MTP application on the tablet, I have no problem.

I do not seem to have any problem using 64-bit debian, which you probably know Ubuntu is based on. I have even built the AOSP with it without much trouble. Though, deploying it to a device is a different matter for me.
Last edited by Jason_25; 10th January 2012 at 09:02 PM.
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes