[Android Software/Hacking General [Developers Only]] blas4me:
ADB & FASTBOOT Help: Updated 6/6/12

WORKS FOR x86 VERSION OF 12.04 - 12.10 TO MAKE IT WORK FOR x64 FOLLOW LINK BELOW, THEN COME BACK HERE AND FINISH SETUP. I ALSO ADDED A VIDEO, CHECK IT OUT

1. You must have java installed before you start set up.

http://askubuntu.com/questions/131207/android-sdk-cant-be-installed-on-ubuntu-12-04-64

I know if your new the other instructions can be confusing, so I kinda know what you guys are looking for, just a basic breakdown, I remember when I started playing around with 9.04, the adb setup had me stuck, Ubuntu used to frustrate me, because I didn't understand Unix based systems, but you catch on, especially if your a android user.

JUST A TIP: I make my SDK folder androidsdk, for simplicity and that's how I learned to install. so I'm just showing you the way I learned. I have rooted over 20 different Android devices, and I've installed this method on multiple Linux distros without a problem. For those of you that are new to Linux, know that Linux is hardwired for Andorid devices, same kernal and all, and that's why it's wise to do all things Android on Linux machines, I try to anyway

RECENT CHANGES TO SDK: updated 11/1/12: Just installed on Ubuntu 12.10, and the Linux adb installer is no longer needed, when I ran adb command after copying SDK to my /usr/local/ directory, my device showed up. Some resent changes to the SDK, also changed the way you set up, but not very much. The SDK provides all the files you need to set up, including fastboot.

NOTE: Once you've finished the setup, know that you push & pull right from your home folder, no need to put things in the tools folder like Windows, same thing when you pull, look for the files in the home folder.

1. Go here for the latest SDK

http://developer.android.com/sdk/index.html

(once download, double tap and extract right to home folder, rename to androidsdk)

a. Make android file executable

2. Open teminal.

a. Navigate to your SDK directory

cd /home/username/androidsdk/tools

you should get [ $ ] at the end of your path.

b. Type

./android

your SDK Manager should start.

ADVICE: I suggest you only download tools and platform-tools to make the setup quick, you can go back later and install what you need

NOTE: For development purposes you need a copy of ADB & Fastboot in your tools folder, Eclipse looks for ADB in the folder, so if you plan on developing, then you'll need those files there.

3. Open home folder, press ctrl & H to show hidden files, find bashrc

a. Paste in terminal from your document after you input your user name:

#AndroidDev PATH
export PATH=${PATH}:/androidsdk/tools
export PATH=${PATH}:/androidsdk/platform-tools
export PATH=${PATH}:/home/*********/androidsdk/tools
export PATH=${PATH}:/home/*********/androidsdk/platform-tools

4. Paste in terminal from your document after you input your user name:

export PATH=$PATH:/androidsdk/tools
export PATH=$PATH:/androidsdk/platform-tools
export PATH=$PATH:/home/*********/androidsdk/tools
export PATH=$PATH:/home/*********/androidsdk/platform-tools

NOTE: For this part you'll need your devices id, here's a list, if your devices id isn't here, use code below.

Acer 0502

ASUS 0b05

Dell 413c

Foxconn 0489

Fujitsu 04c5

Fujitsu Toshiba 04c5

Garmin-Asus 091e

Google 18d1

Hisense 109b

HTC 0bb4

Huawei 12d1

K-Touch 24e3

KT Tech 2116

Kyocera 0482

Lenovo 17ef

LG 1004

Motorola 22b8

NEC 0409

Nook 2080

Nvidia 0955

OTGV 2257

Pantech 10a9

Pegatron 1d4d

Philips 0471

PMC-Sierra 04da

Qualcomm 05c6

SK Telesys 1f53

Samsung 04e8

Sharp 04dd

Sony 054c

Sony Ericsson 0fce

Teleepoch 2340

Toshiba 0930

ZTE 19d2

In terminal type:

lsusb

and that will give a list of all USB devices attached to your machine.

a. In terminal, type:

gksudo gedit /etc/udev/rules.d/51-android.rules

b. Add these lines, put your device ID between quotations, then save

SUBSYSTEM=="usb", ATTRS{idVendor}=="HERE", SYMLINK+="android_adb", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="HERE", SYMLINK+="android_adb", MODE="0666"

c. In terminal type:

sudo restart udev

5. Download the Linux ADB installer zip, extract to your home folder, make script executable and to run with auto prompt (plug your phone in if it isn't already) then just double click and choose run, then let it do it's thing Takes a second, and it should ask for permissions = user password

NOTE: When you run nautilus your going into file system directory as root, so proceed with caution, and back up any file you plan on editing. Installing SDK doesn't make a folder in /usr/local/ any more, so you'll have to copy SDK to that directory as root.

6. Open terminal, type:

sudo nautilus

a. Go to :File system /usr/local

b. Copy and paste a copy of your SDK folder there

c. Close root session

d. Close terminal

7. Open terminal, type:

adb devices

you should see your device, then type fastboot devices it should just go to the next line, you have to be in fastboot to see your device

Now you should have ADB & Fastboot on your beautiful Ubuntu machine!!!!!!!!!!

With narration

http://www.youtube.com/watch?v=HsCd1nMywR8&hd=1

Without

http://www.youtube.com/watch?v=IGAiHkPuhg8

Extra goodie (Aero Snap Windows.) Extract and follow intructions. Enjoy!!!!!!!!!

TIP: For trigger delay, the lower you set it the faster your widows will resize, and I have mine set for left & right edge. Having it set @ right & left is a headache because every time your pointer touches left or right side of the screen , widows resize. So, having them set to the edges works for me.