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

Root [HOWTO] Linux ADB, fastboot, mass storage

sado1

Well-Known Member
Nov 6, 2009
103
14
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')

2.Download fastboot for Linux: HTC - Developer Center and adb: http://floe.butterbrot.org/external/adb.gz. Copy adb&fastboot to the sdk/platform-tools folder; cd to that folder in terminal and add necessary permissions:
Code:
chmod +x adb
chmod +x fastboot
3. In folder /etc/udev/rules.d/ create files(don't forget to replace user with your username!):
50-android.rules
Code:
SUBSYSTEM=="usb", SYSFS{idVendor}=="18d1", MODE="0666", OWNER="user"
90-android.rules
Code:
SUBSYSTEM=="usb", SYSFS{idVendor}=="04e8", MODE="0666", OWNER="user"
4. Refresh udev rules:
Code:
reload udev
5. In file /home/user/.bashrc (replace user with your username) add line:
Code:
export PATH=${PATH}:/home/user/android-sdk-linux_x86/tools:/home/user/android-sdk-linux_x86/platform-tools
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
 
  • Like
Reactions: edin1 and timmydog
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
 
Upvote 0
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.
 
Upvote 0
I finally got around to playing with this. I have adb working (I think), but I can't get the recovery.img to flash.

Code:
./adb devices
identifies my phone, however
Code:
./fastboot flash recovery recovery.img
hangs on < waiting for device >, although my phone boots into fastboot mode without problem.

I have successfully gotten this to work on xp machines before. Currently using Ubuntu 9.10. Any ideas?


edit: I can successfully push/pull files as well.
 
Upvote 0

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones