View Single Post
Old January 2nd, 2010, 02:46 PM   #1 (permalink)
sado1
Member
 
Join Date: Nov 2009
Posts: 103
 
Device(s): Samsung i7500 Galaxy
Thanks: 2
Thanked 13 Times in 6 Posts
Default [HOWTO] Linux ADB, fastboot, mass storage

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
sado1 is offline  
Last edited by sado1; June 17th, 2011 at 11:57 AM. Reason: fastboot link fixed, new adb/fastboot location fix
Reply With Quote
The Following 2 Users Say Thank You to sado1 For This Useful Post:
edin1 (May 26th, 2010), timmydog (April 5th, 2010)