how to use adb tool on SAMSUNG GALAXY?

Common bugs/problems with the Android SDK the Emulator and the ADT-Plugin.

how to use adb tool on SAMSUNG GALAXY?

Postby skrj2e » Sun Jul 12, 2009 11:39 am

Hi
i got this new mobilephone this week in Germany, wanted to debug my
program on the device. but it doesn't work, "c:\> adb devices" lists
no device attached, though i have tried to change the
"android_usb.inf" in order to install the usb driver from SDK.
i added some entries as follows:
under
[Google.NTx86]

; HTC DREAM
...

; SAMSUNG GALAXY
%USB\VID_04E8&PID_6640.
DeviceDescRelease%=androidusb.Dev, USB
\VID_04E8&PID_6640
%USB\VID_04E8&PID_6640&MI_01.DeviceDescRelease%=androidusb.Dev, USB
\VID_04E8&PID_6640&MI_01
%USB\VID_04E8&PID_6640.DeviceDescRelease%=androidusb.Dev, USB
\VID_04E8&PID_6640

and [Strings]:

USB\VID_04E8&PID_6640.DeviceDescRelease="SAMSUNG GALAXY"
USB\VID_04E8&PID_6640&MI_01.DeviceDescRelease="SAMSUNG GALAXY
Composite ADB Interface"
USB\VID_04E8&PID_6640.DeviceDescRelease="SAMSUNG GALAXY Bootloader"

i got only one VID and one PID through
USBVIEW, though for HTC DREAM there are different PIDs used.
The adb interface got installed, but adb just didn't work.

later i also tried to use the device under linux, set up the device as in Dev guide:

If you're developing on Ubuntu Linux, you need to add a rules file:

1. Login as root and create this file: /etc/udev/rules.d/51-android.rules.

For Gusty/Hardy, edit the file to read:
SUBSYSTEM=="usb", SYSFS{idVendor}=="0bb4", MODE="0666"

For Dapper, edit the file to read:
SUBSYSTEM=="usb_device", SYSFS{idVendor}=="0bb4", MODE="0666"
2. Now execute:
chmod a+rx /etc/udev/rules.d/51-android.rules

"adb devices" listed nothing as well. : (

open a terminal on the device, with "ps", i guess the adb daemon "adbd" is running.
but the adb tool just doesn't work.

Can someone help?

thanks da
skrj2e
Once Poster
Once Poster
 
Posts: 1
Joined: Sun Jul 12, 2009 10:40 am

Top

Postby Incognu » Mon Sep 07, 2009 2:48 pm

Samsung have a different device id.

# cat /etc/udev/rules.d/51-android.rules
SUBSYSTEM=="usb", SYSFS{idVendor}=="04e8", MODE="0666"
# ls -al /etc/udev/rules.d/51-android.rules
-rw-r--r-- 1 root root 55 2009-09-02 15:39 /etc/udev/rules.d/51-android.rules


That works for me. But you need a patched adb.
I got mine from http://floe.butterbrot.org/external/adb.gz

You can probably google that link above, and find more information on why it needed patching (And in what version of the standard SDK it will work properly)

# file ~/bin/adb
/home/username/bin/adb: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.9, not stripped
# ldd ~/bin/adb
linux-gate.so.1 => (0xf7f47000)
librt.so.1 => /lib32/librt.so.1 (0xf7f1c000)
libncurses.so.5 => /lib32/libncurses.so.5 (0xf7eea000)
libpthread.so.0 => /lib32/libpthread.so.0 (0xf7ed0000)
libstdc++.so.6 => /usr/lib32/libstdc++.so.6 (0xf7de1000)
libm.so.6 => /lib32/libm.so.6 (0xf7dbb000)
libgcc_s.so.1 => /usr/lib32/libgcc_s.so.1 (0xf7dac000)
libc.so.6 => /lib32/libc.so.6 (0xf7c49000)
/lib/ld-linux.so.2 (0xf7f48000)
# md5sum ~/bin/adb
4459870b4be60af5eb83c13572c3e353 /home/username/bin/adb

Hope it helps.
Incognu
Freshman
Freshman
 
Posts: 2
Joined: Mon Sep 07, 2009 2:35 pm

Top

Return to SDK/ADT/Emulator Problems

Who is online

Users browsing this forum: No registered users and 3 guests