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

Root (guide) reference HOW TO SET UP ADB AND FASTBOOT ON UBUNTU

asadullah

Android Enthusiast
Well I didn't see this anywhere so I figured I'd post it. I know it's not all fancied up with pics just yet but when I reinstall ubuntu again I'll take some snapshots.

first download the sdk from here Android SDK | Android Developers
now download fastboot from here HTC - Developer Center
optional install right-click terminal this is very helpful and allows you to open up a terminal without having to cd into the desired folder
open a terminal and type this
Code:
sudo apt-get install nautilus-open-terminal
killall nautilus
unzip the android sdk, rename it androidsdk, and move it to your home folder.
go into the tools folder of the sdk, open a terminal and type ./android
when the new window opens select available packages
in packages available for download click android repository and unselect everything except for Android SDK Platfform-tools, revision 4
click install selected
when it's done downloading go to where you downloaded fastboot and unzip it
move the fastboot file to androidsdk/tools
right click fastboot and select properties then select permissions. Check allow executing file as program
now go into androidsdk/platform-tools and copy aapt, adb, aidl, dexdump, and dx then paste them into the tools folder

Now go to your home folder and press ctrl + h to view hidden files and folders
open up .bashrc with texteditor and paste this at the top
Code:
#AndroidDev PATH
export PATH=${PATH}:/home/yourusername/androidsdk/tools

then open up the run command by pressing alt + f2 and type this
Code:
gksudo gedit /etc/udev/rules.d/51-android.rules

paste this into the file
Code:
SUBSYSTEM=="usb", SYSFS{idVendor}=="618e", MODE="0666"
SUBSYSTEM=="usb", SYSFS{idVendor}=="d00d", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="18d1", SYMLINK+="android_adb", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="d00d", SYMLINK+="android_adb", MODE="0666"
SUBSYSTEM=="usb", SYSFS{idVendor}=="1004", MODE="0666"
save it and close

close terminal and reopen a terminal and plug in your phone and type adb devices if you followed this guide it will show your phones serial number.
Now type adb reboot bootloader
your phone will go to a blue screen type fastboot devices
it will show something like this ?????????? fastboot
type fastboot reboot and your phone will reboot back into normal mode
all done
 
Back
Top Bottom