[LG Optimus Black] N00BY0815:
Hey guys, I am going to make a new thread about cooking, since I receive a lot of requests on HOW TO cook your own ROMs. I am always glad to help, but since those are always pretty much the same questions, I am going to gather all the information I have got about it in one simple thread, so everyone who is interested in cooking new ROMs for our device can get an easy start ;)

I wanna start with really basic stuff and slowly come to more and more "complicated"/detailed information. I am still pretty much at the beginning of cooking, especially when it comes to kernels and stuff, but I think I will learn from it as well :)

But first of all, where do you begin with?

Pretty simple, with either installing a stock ROM and make your own ROM directly from this, or simply download a .zip ROM of your choice.

Either you take CM or a stock ROM like V20n from the repack of my nandroid by Redy.

Maybe you also want an already cleaned/deodexed ROM to start with. Grab them HERE

But watch out, cause this MIGHT contain bugs.

You can also grab any other flashable .zip ROMs out there, that you wanna modify.

For the second possible startpoint, you already will need dsixda's Android Kitchen so grab it and set it up, cause you will also need it for more advanced cooking/and even already some very basic steps. The kitchen simply provides a lot of scripts, that allow you to apply tweaks/mods very easily, without having to do it all manually.

A guide of how to set up kitchen for our device, will come. But I think the one in the thread should be enough for now.

Then you wanna flash a stock ROM, like one of these: http://xdaforums.com/showthread.php?t=1480392

If you use other stock ROMs, you will need to root them, install ClockWorkMod and make a nandroid.

The Nandroid is, what you ll need to start. Copy it from your sd card (scard/clockworkmod/backup/THE-DATE-YOU-CREATED-IT) to your PC.

Then take system.ext4.tar/system.ext3.tar and boot.img and put it to your working folder of kitchen. Working folder path should be similar to this: C:\cygwin\home\USERNAME\kitchen\original_update.

Then start kitchen, by going to cygwin, cd (change directory) to the directory, where you can find the file menu.

Then type ./menu and kitchen will load.

1. Push "1" to set up the working folder.

2. Press enter, if you already added the needed files to working folder.

3. Select "1" again. Or if you already have got more ROMs in there, choose the one, you desire most. ENTER

4. Push "y" and give the folder a name, you will recognize, e.g. V20n if you cook a v20n ROM. ENTER

5. Chill ;)

5.1. DO NOT I REPEAT, DO NOT convert updater-script to update-script! Otherwise your ROM wont boot! So type 2 and hit ENTER.

6. Press "Enter"

8. Now you can enter your Working_Folder (in .../kitchen/Working_FolderName) and e.g. delete /apps, apply tweaks,...

7. Select "99" to build a new flashable ROM. (How to apply tweaks will come later)

8. Select "1" except you know, what you are doing.

9. You can already zipaligne the apk files, but since you wanna do some more modding, push n in order to save time.

10. Push "y"

11. Sign your ROM by pushing "y"

12. Rename it, in order to be able to identify it again, even if you cook more ROMs parallely, so push "y". And then enter the epic name of your ROM ;)

13. Find the ROM in: C:\cygwin\home\USERNAME\kitchen\OUTPUT_ZIP or whatever you called your folders.

Now it's time to get it on. First thing, most of you might wanna do, is to remove all the apps you dont need.

Find lists of removeable files HERE

or HERE.

In order to be able to remove them, you either need a packer like 7zip, but I always simply extract the .zip file, cause it is easier to operate and probably also faster. You will get the following folders:

-META-INF (Dont TOUCH IT! Except you know EXACTLY what you are doing

-system

-boot.img

In system folder, you can find the folder app. Here you can find all the files you wanna remove.

Next step will probably be, that you wanna add some tweaks and mods.

Therefor simply look around in the Dev section and choose whatever you like.

I ll list some of my personal favourites:

- Change the lockscreen: Either take one of these file or simply modify the build.prop, like Huexx found out HERE

- Add eRecovery by Huexxx

- Fix Audio Bug in CM

- Enhance Scores on benchmarks

- Add/remove build.prop tweaks

- Replace libsqlite.so BUT WATCH OUT, this breaks bluetooth file sending. If you only cook for yourself, extract the one from Zeus ROM, if you wanna release your ROM, ask Huexxx, before using his file.

Whenever you wanna try to flash your ROM, you ll first have to pack it and then sign it. Simply mark the folder system, META-INF and the file boot.img and click on add to .zip file. Best method to begin with is storage,because it "compresses" fastest. Then you already have a flashable .zip, but in order to flash it, you ll also have to sign it. Here is the simple way, I am doing it: http://xdaforums.com/showthread.php?p=6232592. Just set it up, like it is said in the thread. Then right click your .zip ROM and click on sign this file. Wait till a popup comes up that tells you the file has been signed and find the new folder. The folder is called "Signed files" and in there, you can find the signed version of your ROM.

Here is a second possible solution.

Now you can flash it and test your new custom ROM.

If your phone gets stuck in a bootloop, you ll have to unbrick it. Look it up in my noob how to do it, there are several ways you can do it. The most simple is to set up adb and simply send the command adb reboot recovery to the phone.

To be able to fix errors, I think it will be best, if you always only make one change at a time and flash it directly afterwards. Then you can

More coming ;) Have fun so far and if you experiance problems, while cooking, post it here, so I can correct the thread/add new cool stuff ;) dsixda's kitchen thread will be posted in the next couple of days. Also, how to add cust kernels. Maybe a dev can help me, on how to compile one's own.

Oh I almost forgot: I am not responsible, for any damage, you do to your phone, bricking, not waking up, because you messed the alarm clock, bad food you made yourself, smelling feet, wars, bad films,... :D