[Android Software/Hacking General [Developers Only]] napster007:
1.Get root permission.

2.Install x32 libs if you are running on a x64

apt-get install ia32-libs

3.Install sun JDK - Aprox 25 mins in 56k line

apt-get install sun-java6-jdk

4.Install eclipse -Aprox 1hr in 56k line

sudo apt-get install eclipse

5.Now open up Eclipse, and go to:

Help Menu -> Install New Software

* Add:

https://dl-ssl.google.com/android/eclipse/
http://download.eclipse.org/datatools/updates
http://download.eclipse.org/webtools/updates/
http://download.eclipse.org/modeling/emf/updates/releases/
http://download.eclipse.org/tools/gef/updates/releases/
http://dl.google.com/eclipse/plugin/3.5

Install these packages, and then you can install adt plugin as well.

6.Download Android SDK from

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

7.Now open a terminal again and go to the directory where you've saved the Android SDK

cd /home/*username*/Desktop

8.Uncompress it.

tar xvfz android-sdk_r12-linux_x86.tgz

9.Delete the archive file to save some space :)

rm android-sdk_r12-linux_x86.tgz

10.Move extracxted file to your home directory.

mv android-sdk-linux_86 /home/*username*

11.Make and edit /etc/udev/rules.d/##-android.rules

sudo gedit /etc/udev/rules.d/##-android.rules

## = 50 if you are running Gusty/Hardy/Dapper (50-android.rules) or with the number 70 if you are running Karmic Koala/Lucid Lynx/Maverick Meerkat(70-android.rules)

12.in ##-android.rules Add line as follow

For Gusty/Hardy:

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

For Dapper:

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

For Karmic Koala:

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

For Lucid Lynx:

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

For Maverick Meerkat:

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

**NOTE: In the above lines the code ”0bb4″ refers to a HTC device. If your phone is from a different manufacturer, replace the code with the appropriate

Acer - 0502
Dell - 413c
Foxconn - 0489
Garmin-Asus - 091E
HTC (Older Phones) - 0bb4
HTC (Newer phones) - 18d1
Huawei - 12d1
Kyocera - 0482
LG - 1004
Motorola - 22b8
Nexus One/S - 18d1
Nvidia - 0955
Pantech - 10A9
Samsung - 04e8
Sharp - 04dd
Sony Ericsson - 0fce
ZTE - 19D2

**NOTE: If you copy one of the lines mentioned above, make sure you replace the quotation marks with the ones in your keyboard, as these have different display code and it might give you a “no permissions” error.

13.Execute ##-android.rules:

sudo chmod a+rx /etc/udev/rules.d/70-android.rules

14.Reboot

**To run ADB you need to add an environment variable to your bashrc file.

15.Open a terminal window and type:

sudo gedit .bashrc

16.Add the following line at the end of the page:

export PATH=$PATH:/home/grainier/android-sdk-linux_x86/Platform-tools

17.Save and close

18.To make sure everything works perfect, type adb devices in a terminal window with your phone plugged in.

If you see a serial number pop up that means you are done. Should look something like this:

List of devices attached

HT99PHF***** device

**If for some reasons when running adb devices gives you a “no permissions” error, try typing the following in terminal

adb kill-server

adb start-server

18.Finally open up Eclipse and Go to Window > Preferences. Select Android, and add the SDK Location: /home/*username*/android-sdk-linux_86

19.Click the Apply and then OK.

**Everything is ready to go.. rest is up to you** ;)