[LG Optimus Me P350] nerotNS:
Hi guys, this is my second tutorial and in this one I will show you every thing you need to do to flash a custom ROM on the LG-P350. So let's get started.

DISCLAIMER: This is tampering with the system itself and if done incorrectly a simple factory reset will not fix it. It is YOU who is doing this on your phone and I am in no way responsible if any damage happens to your device. (tough it shouldn't if you follow these steps carefully) You have been warned!

WHAT WE NEED :

1.An LG-P350 running stock Froyo

2.LG mobile united drivers, get them from here https://docs.google.com/file/d/0B7Faau7Enf-Bc1hhbWRtTkczNEE/edit?usp=sharing

3.A PC running Windows (can be done on linux too but this guide is based on Windows)

4.A microUSB data cable.

5.The official Android SDK obtained from http://developer.android.com/sdk/index.html Make sure you select the version for your OS (32-bit or 64-bit)

6.USB debugging to be on. Go to Settings>Apps>Development>Turn on USB debugging

7.ADB to be properly set up.

8.Patience to read this thread carefully :)

1. Root

Ok so what is root? Well simply said rooting gives us the permission to modify parts of the Android system itself. Normally when you try to tamper with it it would simply say that either you don't have the privilege to do so or it would fail. When we have root permissions then you can change anything you want.

Note: Be careful tough, removing or modifying some parts of the system can damage the system and prevent it from working/booting. Always make a nandroid backup (will talk about this later) before editing anything in the system.

Now for the rooting itself.

Most versions of the software for the P-350 can be rooted using gingerbreak, which can be found here http://xdaforums.com/showthread.php?t=1044765 Get the newest version, copy it and install it on your phone and follow the instructions on screen.

For those who prefer some other root method you can also use z4root which can be found here http://xdaforums.com/showthread.php?t=833953 or superoneclick which can be obtained here http://xdaforums.com/showthread.php?t=803682 (For superoneclick you need the USB cable and drivers installed)

2.ADB

Ok so what is ADB? ADB is a short term for Android Debug Bridge. It is one the most essential tools in the Android world and is used for a number of things such as sending commands (which can do anything you imagine with the device), getting various log data etc.

To set it up you will have to get the latest version of the official Android SDK (look for the link in the Introduction). Once you've downloaded the sdk you will get a .zip file you need to extract. I extracted mine to C:\Program Files (x86)\Android\ (so this guide is based on that) but it can really be anywhere. If you decide to put a different directory then adapt the guide to it. Once extracted you will get two folders. Here we only use the sdk one, the other one is for the Eclipse plugin used for application development. Open up the cmd from the start menu and then input these codes.

cd C:\Program Files (x86)\Android\sdk\platform-tools\ (you adapt this to your case if you didn't extract it there)
adb shell

Do this with your device connected otherwise it's pointless.

NOTE1: In order for adb to recognize your device you must have the drivers installed.

NOTE2: If you are too lazy to type all this every time you can make a .bat script. Open up notepad and copy/paste these codes

cd C:\Program Files (x86)\Android\sdk\platform-tools\ (adapt to your location)
adb shell
pause

After that just click on File and click Save as. In the window that opened, under file type select all files and on the file name save it as adb.bat

Now whenever you want to use adb you can just double click on the script you made and it will open up adb instantly leaving out the hassle of typing in commands every time.

3.Recovery

Now that we have root it's time for the recovery module.

The recovery allows us to modify parts (or even the entire) system by "flashing" (installing) .zip files prepared by our developer. They can be tweaks,fixes, additional features or even a completely new version of Android. There are a couple of ways to do this and the choice is yours.

Before you do this you need to get a recovery image. We have a couple of them for our device:

1. AmonRa-The very first recovery for our phone. It is outdated and generally not recommended for use. If anyone wants it you can get it here http://xdaforums.com/showthread.php?t=1080911

2. CWM (clockwork mod recovery)- One of the most popular recoveries around. It is a well made piece of software which will make flashing simple and fast. We have a couple of versions for our phone and the links are here:

http://xdaforums.com/showthread.php?t=2075797&highlight=recovery ClockWorkMod 6.0.2.7

http://xdaforums.com/showthread.php?t=1768895&highlight=recovery ClockWorkMod 6.0.1.4

You will also need a flash_image file gotten from https://docs.google.com/file/d/0B7Faau7Enf-BTURDQmp1OWIzVGM/edit?usp=sharing

Method 1: cmd

Ok so this tutorial is from a developer who has retired and who made the original recovery our phone. All credits for that go to him.

Also note that it is recommended to reboot the device prior to flashing to increase the RAM.

1.Copy the .img file and copy the flash_image file to the rood directory of your sd card NOT in some folder. If you got your recovery in a .zip then extract the .img file from it and copy it and the flash_image file to the root of the sd card.

2.Using ADB shell copy these commands into the cmd :

$ su
# mount -o remount,rw -t yaffs2 /dev/block/mtdblock1 /system
# cat /sdcard/flash_image > /system/bin/flash_image
# chmod 755 /system/bin/flash_image
# sync

3.Now flash it:

$ su
# flash_image recovery /sdcard/*insert image name here*.img Here you should put the name of your .img file without the starts ofc :)
# sync

4.After that if no error occurred you can type this in

reboot recovery

WARNING: If some sort of error showed up DO NOT type in reboot recovery. This could brick your device. Instead restart the phone and start over.

Method 2: Venkat's toolkit RECOMMENDED

This toolkit does the same from above but it does it automatically without the user having to do anything. You can get it from here http://xdaforums.com/showthread.php?t=1948326 It can also be used for rooting.

It is also recommended to make a nandroid backup of your current system in case you want to go back. Nandroid backup is a complete copy of your system as it is when the backup was made. It backs up EVERYTING not just apps and data, so it is a perfect thing to have if a ROM or a tweak you are trying render the phone unbootable since you can just restore the backup you made and no harm done.

That is recovery. Now you can use it to flash whichever ROM for our device you choose. You can boot to it either by typing in adb/terminal reboot recovery or by pressing the following buttons when the device is turned off: Power + Call + Volume Down. Also don't worry if the touchscreen doesn't work in the recovery. That is normal use the volume up and down buttons to navigate menus and either the menu button(for amon ra) or the call (CWM) to confirm your choice.Use the back/power button to cancel/go back.

4.Flashing

Flashing is a process where we install the entire system or its parts contained in .zip files from the recovery module.

NOTE When you get a flashable .zip package DON'T extract it to the sd card. Copy it as you got it to the root of the sd and then continue.

Now that you've gotten the ROM you desired the process is pretty straight forward. Copy the .zip file you got to the root directory of your sd. Once you've done that, reboot to recovery and make a nandroid backup (if you haven't done so already) and go to the option install zip from sd card. Then choose the .zip you copied and confirm. After it says install complete you can reboot your device.

NOTE 1: Flash only things that are either universal or made for this device. Flashing stuff not made to work on this device could damage it.

NOTE 2: When flashing new ROMs you MUST wipe Dalvik cache,cache and data partitions. It is also recommended to wipe Dalvik cache when flashing kernels.

Those are pretty much all the basics you need to get into the flashing stuff :) You can find loads of ROMs and other tweaks on the official P-350 forums here on xda http://xdaforums.com/forumdisplay.php?f=1769

You can also find info and development support on our Facebook page https://www.facebook.com/groups/p350development/