[Thunderbolt Android Development] qwirked:
Hopefully his isn't totally redundant or horribly written, MODS feel free to do what you will with it. This is just me trying to give back to the community that's giving so much to us.

This is for the ubuntu/linux user that has never setup or succesfully set up the android sdk and adb but does know what terminal is and is fairly computer literate.

AKA: I couldn't Find the guide I'd been looking for so I decided to write it myself.

Credit goes to s3gfault for getting me thru this process and having the knowledge, this guide is based off the steps that he guided me thru and I recorded over a chat log. This guide is written for someone who has no idea where to start or what to do or has tried and failed to get adw/sdk fully functional on their linux/ubuntu box.

Step 1) Create a folder named "ANDROID" in your home folder

Step 2) Download the Android SDK for Linux(i383) from here: Android dev site and place it in the newly created ANDROID folder

Step 3) Right click on "android-sdk_r10-linux_x86.tgz" (the file you just downloaded and moved to the ANDROID folder) and select "Extract here"

Step 4) Open the Ubuntu Software Center. Select Edit-->Software Sources (at this point it will ask for your sudo/root password)-->Other Software. Checkmark "Canonical Partners" then Close

Step 5) Right next to the "Get Software" in the left hand list column in the Software center you will see a arrow/indicator. Ckick on that to expand the list and then select "Canonical Partners" Look thru the list on the right and find "Sun Java(TM) Development Kit(JDK) 6" and click "more info." In the "Add-Ons" section* checkmark the (sun-java6-javadb) package and (sun-java6-source) options. Click "Apply Changes," and accept the License Agreement. Exit the Software Center after install.

*honestly the extra add-on packages may not be needed (I honestly don't know) but unless you're hurting for bandwidth I can't see them hurting.

Step 6) Start a terminal session and input

sudo vi /etc/udev/rules.d/70-android.rules

Terminal will then ask for your password, then will output something that should look like this:

~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
"/etc/udev/rules.d/70-android.rules" [New File]

once it does, close the terminal window.

Step 7) Start a new terminal window and input

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

This will open the geditor. Once it does paste

SUBSYSTEM=="usb", SYSFS{idVendor}=="0bb4", MODE="0666"

INTO the GEDIT file, Save and Exit. Exit terminal.

Step 8) Navigate back to your "ANDROID" folder. open the file folder that you exctracted, multi-select the contents of the entire folder (folders add-ons, platforms, tools and a readme.txt) and cut/paste them directly into the ANDROID folder where the .tgz file is. Delete the now empty shell folder. Navigate to ANDROID/Tools/ find the file named "android" and double click on it. A pop-up box will appaer asking you what you want to do. Click "Run". At this point the Android SDK and AVD Manager will open. in the left navigation pane select available packages. IMPORTANT: If you're in a hurry or low on bandwidth you can expand Android repository--> and just select "Android SDK Platform-tools, revision 3" as that is where ADW is located, otherwise you may want to go ahead and install everything. Your choice.

Click "Install Selected"-->"Install" after download pop-up about ADW, select "Yes" watch the dialogue for a succesful kill/restart of ADW and then hit "Close" and exit the SDK Manager

Step 9) Open a terminal session and type

cd /home/*****/ANDROID/platform-tools

where ***** is your ubuntu username, in the case of my laptop, loganmobile.

Protip: navigate to the adb file and right click-->Properties copy/paste path after cd command in terminal.

Step 10) On your Android phone: Menu-->Settings-->Applications-->Development: USB Debugging. Make sure it is checked on. Connect your phone via usb to your computer, DO NOT mount as sdcard.

Step 11) Back in terminal type in

./adb devices

it should now list your phone! huzzah!

Step 12) And you thought you were done? A few more things to wrap everything up all nice and tidy.

Open a new terminal instance and type

gedit ~/.bashrc

and add this line to the bottom of the file:

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

where once again ***** is your Ubuntu username. Save and exit the file.

Reboot your machine and verify that ADB still works afterwards via the same

cd /home/*****/ANDROID/platform-tools
./abd devices

winning

***DISCLAIMER***

I am by no means an expert and s3gfault is not at fault if you blow something up, he coached me thru this and it worked for me on both my desktop and laptop running Ubuntu 10.10. I provided this write up in hopes that it helps someone who was/is in the same boat I was in; somewhat lost and very frustrated as to why their adb didn't work right. Please add critiques and suggestions, or just flame me.

Thanks go out to andrew8806 for helping root my thunderbolt the first go around, jcase for helping me reroot it after it somehow messed up (and being an awesome dev) and s3gfault for handholding me thru the process of getting adb permanently working.