Thanks to screaminbug for clue about udev rules. On Android 2.x modified adb file may be no longer needed, 1.x probably does still need it though - try without changing adb file first.
1. Download and unpack somewhere Linux SDK: Android SDK | Android Developers and install Platform Tools with SDK Manager that you can run in terminal with
Code:
tools/android
(there should be some way to install them in console with that tool, can't check it out now since I'm not on Linux at the moment... try 'tools/android help')
Replace /home/user/android-sdk-linux_x86 with your sdk directory path.
6. Log out&in to the terminal/start new terminal window if in X. Everything should work now.
Code:
sado@sado-pc ~/ $ adb devices
List of devices attached
I7500T9UxvXGy9F device
sado@asdf-pc:~$ fastboot devices
???????????? fastboot
Last edited by sado1; June 17th, 2011 at 11:57 AM.
Reason: fastboot link fixed, new adb/fastboot location fix
The Following 2 Users Say Thank You to sado1 For This Useful Post:
Yes as per directions above even tried 666 all permissions
Take a look:
Code:
[root@p185191 tools]# chmod 666 adb
[root@p185191 tools]# ./adb
bash: ./adb: Permissão negada
[root@p185191 tools]# chmod 755 adb
[root@p185191 tools]# ./adb
Android Debug Bridge version 1.0.20
-d - directs command to the only connected USB device
returns an error if more than one USB device is present.
-e - directs command to the only running emulator.
returns an error if more than one emulator is running.
-s <serial number> - directs command to the USB device or emulator with
the given serial number
-p <product name or path> - simple product name like 'sooner', or
a relative/absolute path to a product
out directory like 'out/target/product/sooner'.
If -p is not specified, the ANDROID_PRODUCT_OUT
environment variable is used, which must
be an absolute path.
devices - list all connected devices
device commands:
adb push <local> <remote> - copy file/dir to device
adb pull <remote> <local> - copy file/dir from device
adb sync [ <directory> ] - copy host->device only if changed
(see 'adb help all')
adb shell - run remote shell interactively
adb shell <command> - run remote shell command
adb emu <command> - run emulator console command
adb logcat [ <filter-spec> ] - View device log
adb forward <local> <remote> - forward socket connections
forward specs are one of:
tcp:<port>
localabstract:<unix domain socket name>
localreserved:<unix domain socket name>
localfilesystem:<unix domain socket name>
dev:<character device name>
jdwp:<process pid> (remote only)
adb jdwp - list PIDs of processes hosting a JDWP transport
adb install [-l] [-r] <file> - push this package file to the device and install it
('-l' means forward-lock the app)
('-r' means reinstall the app, keeping its data)
adb uninstall [-k] <package> - remove this app package from the device
('-k' means keep the data and cache directories)
adb bugreport - return all information from the device
that should be included in a bug report.
adb help - show this help message
adb version - show version num
DATAOPTS:
(no option) - don't touch the data partition
-w - wipe the data partition
-d - flash the data partition
scripting:
adb wait-for-device - block until device is online
adb start-server - ensure that there is a server running
adb kill-server - kill the server if it is running
adb get-state - prints: offline | bootloader | device
adb get-serialno - prints: <serial-number>
adb status-window - continuously print device status for a specified device
adb remount - remounts the /system partition on the device read-write
adb root - restarts adb with root permissions
networking:
adb ppp <tty> [parameters] - Run PPP over USB.
Note: you should not automatically start a PPP connection.
<tty> refers to the tty for PPP stream. Eg. dev:/dev/omap_csmi_tty1
[parameters] - Eg. defaultroute debug dump local notty usepeerdns
adb sync notes: adb sync [ <directory> ]
<localdir> can be interpreted in several ways:
- If <directory> is not specified, both /system and /data partitions will be updated.
- If it is "system" or "data", only the corresponding partit
Device(s): t-Mobile G1
Cyanogen Mod 4.2.12.2 BFS + RAM Hack
Carrier: Not Provided
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by turkievicz
Did you try as root ?
root:~/android-sdk-linux_86# cd tools/
root:~/android-sdk-linux_86/tools# chmod 755 adb
root:~/android-sdk-linux_86/tools# chmod 755 fastboot
root:~/android-sdk-linux_86/tools# ./adb
bash: ./adb: No such file or directory
Last edited by o2cool; January 11th, 2010 at 03:14 PM.
Device(s): t-Mobile G1
Cyanogen Mod 4.2.12.2 BFS + RAM Hack
Carrier: Not Provided
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by o2cool
root@Elite:~/android-sdk-linux_86# cd tools/
root:~/android-sdk-linux_86/tools# chmod 755 adb
root:~/android-sdk-linux_86/tools# chmod 755 fastboot
root:~/android-sdk-linux_86/tools# ./adb
bash: ./adb: No such file or directory
this might be a dumb question but i am running a 64bit OS. i have multilib support so it shouldn't matter
Last edited by o2cool; January 11th, 2010 at 03:14 PM.
It's possible, someone somewhere posted exact commands to untar the odin files directly.
Where? When? How?
OK. Ignore second and third one. Was it on this forum? Can you remember? Maybe you have it in your browser history somewhere? I was searching the web, but couldn't find it anywhere. I've searched entire Internet.
If this is possible it would be great to know how.
Device(s): Samsung i7500 Galaxy, JB2 firmware and Drakaz Recovery 4.6.1
Carrier: Not Provided
Thanks: 4
Thanked 3 Times in 3 Posts
There is a lot of variation in the steps to follow, even in this thread. Can you be more specific about what you actually did and at what points you are having troubles?
Well, this binary was in this howto before the new SDK release which was supposed to have Galaxy detection problem fixed. Sometimes it worked for me, sometimes not - it's possible that it worked on 1.5 Galaxo and didn't on 2.1 GAOSP and 1.6 Galaxo (it doesn't work in 4.6 and 5.0 recovery too, but fastboot is ok). Anyway thanks for the clue as it works for me now at 1.6 Galaxo updating howto.
oh wait, it's only supposed to print something if the phone is in recovery mode, right? i do get the ????? response shown in the first post if i have booted in recovery mode.
Sorry to bump an old thread, but this howto doesn't seem to work for the Epic 4G. Does anyone have adb/fastboot working for this phone? My distro is Debian sid. adb works great under OS X, btw.
Device(s): Samsung i7500 Galaxy on GAOSP 3 with Gingerbread and LG Optimus One :p
Carrier: Not Provided
Thanks: 8
Thanked 71 Times in 67 Posts
Another job for DaSchmarotzer (do your magic).
Btt, sorry friend can't help you there, this IS a Galaxy I7500 thread and I'm sure that no one here has the same phone like you (I'm sorry, if I guessed wrong). Maybe someone on Epic 4G part of the forum can help you. Try your luck there.
Awesome! Thanks for posting this, I was going insane. The "no such file" error is very misleading, that wasn't the problem at all. Just goes to show you, you can't trust the machines *glares at computer*.
Did some googling and found a post on an ubuntu forum that had fastboot in a post. Worked on my Mandriva 2010 install. Only problem now is adb devices sees my phone but fastboot returns nothing, no errors, not nothing. Any ideas? Thanks.
$ adb devices
List of devices attached
HT0ALHJ11526 device