• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Root ADB with Linux

screaminbug

Well-Known Member
Hi everyone,

I had no luck with connecting to my Galaxy using adb under Linux. Has anyone manage to do that? There is an unresolved issue (issue 4635) on code.google.com, which states that adb won't connect to non-HTC devices under Linux (?). From my experience, that is certainly true for Galaxy. Please tell me that I'm wrong. :)

Debugging is on, and lsusb outputs
Code:
Bus 001 Device 004: ID 04e8:6601 Samsung Electronics Co., Ltd Z100 Mobile Phone
Edit: That is when debugging is off.. Here is what it prints out when it's on:
Code:
Bus 001 Device 005: ID 04e8:6640 Samsung Electronics Co., Ltd Usb Modem Enumerator
I've added the 51-android.rules file in /etc/udev/rules.d/ with this contents:

Code:
SUBSYSTEM=="usb", SYSFS{idVendor}=="04e8", MODE="0666"
and did


Code:
chmod a+r /etc/udev/rules.d/51-android.rules
Tried starting adb as root. Server starts ok, but it just doesn't see the device.
 
Yep. This works. Thanks Andronix. I don't know how I've missed it, since I've been reading that issue. I'll blame it on me being very tired. (it's always someone else's fault :) )

Timmydog, I can now run it successfully without the need of being root. (I left the rules as they were in OP)
 
I tried this with my Samsung Galaxy Spica i5700, but neither of the two adb binaries are able to list the device. Any ideas?
 
Hi,

I'm having the same problem, I very noob with the I7500 and Android, and returns the same "error: device not found"
I don't know if this is important but, my version is IK4 and my linux is Fedora x64

Made the same process, creating the files 50-android.rules, 51-android.rules and 90-android.rules that contain:
Code:
SUBSYSTEM=="usb", SYSFS{idVendor}=="04e8", MODE="0666"
I
with the comand:
Code:
chmod a+r /etc/udev/rules.d/50-android.rules
chmod a+r /etc/udev/rules.d/51-android.rules
chmod a+r /etc/udev/rules.d/90-android.rules
download the latest SDK (revision 4)
Unzip the adb.gz on the android-sdk-linux_86/tools
Put the phone on recovery mode (recovery V0.4.4)
Enable root
On the terminal of the linux, as root, I do:
Code:
chmod 755 adb
./adb shell
And return:

Code:
adb server is out of date.  killing...
* daemon started successfully *
error: device not found
 
I continue with this 3rd since i have the same problem....
Working on Ubuntu 10.04. Phone Samsung Galaxy S2. ADB installed and works fine on Eclipse. lsusb sees my phone "Bus 001 Device 007: ID 04e8:685e Samsung Electronics Co., Ltd" typing adb devices i get Permission denied. I followed some guides to create my udev rule, but everytime it was a little different.
Need help, please.
 
Back
Top Bottom