[LG Optimus Me P350] cybojenix:
rewrite of post 2

I've rewritten the entire second post for you because I found many mistakes in it. Just hit reply, and copy everything

Setting Up Your Development Computer !!!!

​

After Getting Your Ubuntu Ready !! Now You need To set up Your PC for Android Development So Follow these Steps :

Python Setup: First Of all Open Terminal.

Hit ctrl + alt + T

or you can go through your applications to open it

Now You Need To Copy and Paste this Commands At Terminal :

sudo apt-get install build-essential gcc
cd Downloads
wget http://www.python.org/ftp/python/2.5.6/Python-2.5.6.tgz
tar -xvzf Python-2.5.6.tgz
cd Python-2.5.6
./configure --prefix=/usr/local/python2.5
make
sudo make install
sudo ln -s /usr/local/python2.5/bin/python /usr/bin/python2.5

Note: You may be asked for password when you do sudo make install

Now Python Is configured !!!!

TIME FOR SUN JAVA 6 JDK.

CODES TO EXECUTE IN TERMINAL :

Note: This doesn't work on Ubuntu 12.04

sudo add-apt-repository ppa:ferramroberto/java
sudo apt-get update
sudo apt-get install sun-java6-jre sun-java6-bin sun-java6-jdk

If You Are Using Ubuntu 12.04 you must do this instead:

first we download the required binary:

wget --no-check-certificate --no-cookies --header "Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com" "http://download.oracle.com/otn-pub/java/jdk/6u45-b06/jdk-6u45-linux-x64.bin"

then we need to run the binary, and move it to a shared location

chmod +x jdk-6u45-linux-x64.bin
sudo ./jdk-6u45-linux-x64.bin
sudo mv jdk1.6.0_45 /usr/lib/jvm/

finally, all the needed java binaries need to be installed, and given the highest priority. This will override any other java versions you have

sudo update-alternatives --install /usr/bin/java java /usr/lib/jvm/jdk1.6.0_45/bin/java 1
sudo update-alternatives --install /usr/bin/javac javac /usr/lib/jvm/jdk1.6.0_45/bin/javac 1
sudo update-alternatives --install /usr/bin/javaws javaws /usr/lib/jvm/jdk1.6.0_45/bin/javaws 1
sudo update-alternatives --install /usr/bin/jar jar /usr/lib/jvm/jdk1.6.0_45/bin/jar 1
sudo update-alternatives --install /usr/bin/javadoc javadoc /usr/lib/jvm/jdk1.6.0_45/bin/javadoc 1

now check that jdk1.6.0_45 is selected on these

sudo update-alternatives --config java
sudo update-alternatives --config javac
sudo update-alternatives --config javaws
sudo update-alternatives --config jar
sudo update-alternatives --config javadoc

Guys Now Java JDK 6 is Installed !

to check it is installed:

java -version

the output should be similar to this

java version "1.6.0_45"
Java(TM) SE Runtime Environment (build 1.6.0_45-b06)
Java HotSpot(TM) 64-Bit Server VM (build 20.45-b01, mixed mode)

NOW GNU Make :

Codes For Terminal :

cd
wget -o make.tar.gz http://ftp.gnu.org/gnu/make/make-3.82.tar.gz
tar -xvzf make-3.82.tar.gz
cd make-3.82
./configure
sudo make install

Now Make GNU is installed !!!

Now We are going to install some of the dependencies...

Codes For Terminal :

Apply First This Code In Every Ubuntu Version :

sudo apt-get install git-core gnupg flex bison gperf build-essential zip curl zlib1g-dev libc6-dev lib32ncurses5-dev ia32-libs x11proto-core-dev libx11-dev lib32z-dev libgl1-mesa-dev g++-multilib mingw32 tofrodos python-markdown libxml2-utils xsltproc gedit git schedtool
export USE_CCACHE=1

If You Are Using Ubuntu 10.10 Apply this Command too :

sudo apt-get install lib32readline5-dev
sudo ln -s /usr/lib32/mesa/libGL.so.1 /usr/lib32/mesa/libGL.so

If You are Using Ubuntu 11.04 Apply this command too :

sudo apt-get install libx11-dev:i386 lib32readline5-dev

If you are Using Ubuntu 12.04 Use Need To Use this Command too :

sudo apt-get install libncurses5-dev:i386 libx11-dev:i386 libreadline6-dev:i386 libgl1-mesa-glx:i386 zlib1g-dev:i386 lib32readline-gplv2-dev
sudo ln -s /usr/lib/i386-linux-gnu/mesa/libGL.so.1 /usr/lib/i386-linux-gnu/libGL.so

TIME FOR SDK and ADB

SDK (optional) :

download SDK for linux (i386) from this link

extract it to Home folder (or another folder as long as there are no spaces in any of the folder names)

When you have extracted it, change the folder name from "android-sdk-linux" to "sdk".

Open Terminal And Excuete This Code :

cd ~/sdk/tools/
./android sdk

When you run this, a window will pop up. You only need to install the packages "Android SDK Tools" and "Android SDK Platform-tools". Just check these two items and install them.And Let the process complete .

ADB:

install ADB using this command

sudo apt-get install android-tools-adb

NOW AFTER APPLYING THIS CODES IF U SEE THE OUTPUT AS BELOW GIVEN :

List of devices attached 0123456789ABCDEF device (SIMILAR TO THIS)

Well, if you do, yay you're done. You have working adb!

OR IF U SEE THIS TYPE OF OUTPUT THEN FOLLOW SOME MORE STEPS

List of devices attached ???????????? no permissions

THEN USE THIS:

Give Permission to the Device

Now, you create a file:

FOR CREATING OPEN THE TERMINAL AND TYPE DOWN GIVEN COMANDS

sudo -i
echo "SUBSYSTEM=="usb", SYSFS{idVendor}=="1004", MODE="0666"" >> /etc/udev/rules.d/51-android.rules
echo "SUBSYSTEM=="usb", SYSFS{idVendor}=="1004", MODE="0666"" >> /etc/udev/rules.d/99-android.rules
exit
sudo chmod a+r /etc/udev/rules.d/99-android.rules
sudo chmod a+r /etc/udev/rules.d/51-android.rules

Now you restart adb and udev service to make the change.

CODES TO EXCUETE IN TERMINAL :

sudo adb kill-server
sudo adb start-server

adb devices

NOW AFTER APPLYING THIS CODES IF U SEE THE OUTPUT AS BELOW GIVEN :

List of devices attached 0123456789ABCDEF device (SIMILAR TO THIS )

NOW YOUR ADB IS CONFIGURED. IF ANY PROBLEMS, JUST COMMENT HERE

Now your Computer is Ready For Android Development !!!

Optional extra

You can also install android fastboot using this command

sudo apt-get install android-tools-fastboot

Now We Download The REPO and Set it Up ​