[P3400 ROM Development] BesFen:
Cooking course class

COOKING COURSE CLASS for NOOB Chef

As request from some people to make a tutorial in cooking a ROM, I open a “COOKING COURSE CLASS” to fulfill that request, everybody can joint my class here.

Before you joint to my “COOKING COURSE CLASS”, the most important thing you must do is “Download my 23017 Kitchen”, then make sure you already install DotNET 2 or above and Visual basic redistribution 2008 in your PC, you can download it at Microsoft Site.

Extract my Kitchen and you will see the folder:

- EXT\Packages (Some Custom app)

- OEM (Driver and Default Device app)

- RELEASE (The result of the ROM)

- Removed (Some folder that I don’t use to build ROM)

- ROM (contain of XIP of NEW GENE & OLD GENE)

- SYS (OS)

- TOOLS (some app to build ROM)

If you already have that you ready to follow my class, the registration fee is USD 1000 (Just Kidding…..:D:D:D)

Here is the Course Module:

Lesson 1: How to use my kitchen

It very simple to use, go root of the kitchen, you will find a bat file there. If you have OLD GENE (OG) click “build_OldGene.bat”, and if you have New GENE (NG) click “build_NewGene.bat”, and the process will run automatically, the result of your ROM is in “RELEASE” Folder, the file name is “RUU_Signed.nbh”

Lesson 2: How to build a Newer ROM with my kitchen.

You have to download the SYS and Xip of the new Build.

SYS:

SYS contain several folders, basically it can be grouped as: Common SYS, Language, DPI, and Resolution. And for GENE you should have the Common SYS, DPI_96, and resh 240*320. For language use it as you want, default is 0409 (US English).

Remove everything inside my SYS Folder, and then put the new SYS.

XIP:

The Component of XIP are:

1. LangDB

2. OEMXIPKERNEL

3. WinCENLS_WWE

4. MSXIPKernel

5. MSXIPKernelLTK

1,2, and 3 are device related, 4 & 5 are OS related, so if you want to build a newer ROM, replace the content of 4 & 5 inside ROM\ XIP_OLD and inside ROM\ XIP_NEW

How if you can’t find MSXIPKernel & MSXIPKernelLTK from the new Build?, very simple, some people only provide with xip.bin, download that file, and dump it with XIPPort.exe, here is the tools.:

http://www.4shared.com/file/125449740/a1b9e454/XIPPort.html

Now, put the attached file and the xip.bin in the same folder, then run XIPPort.exe, click “dump xip.bin” and wait until folder “OUT” appear, then click “make pkgs”, close the XIPPort.exe. go to folder “out” and you will find “Files and Modules” folder, inside each folder, you will find folder 1,2,3,4, & 5, take only files and module in folder 4 & 5, and put it in ROM\ XIP_OLD and inside ROM\ XIP_NEW. And don’t forget to delete any *.txt file inside that folder.

Now you have a XIP from new ROM.

Lesson 3: How to make a custom app

Prepare your cab or package of the app. If you use cab file you must convert it first, use this tool to do it:

http://www.4shared.com/file/125449769/ea533e72/Package_Creator.html

Put the cab in the same folder with this tools and click “cab2newkitchen.bat”, it will transform cab to new kitchen.

After that put the packages inside folder EXT\Packages of my kitchen.

Lesson 4: How to make a shortcut to the app and group it in specific folder

In the each package app folder, you will find file “app.dat”, open it by notepad, than you will find line like this:

Directory("\windows\start menu\programs"):-File("BlackMe.lnk","\windows\BlackMe.lnk")

It mean, the shortcut of Blackme will be putted in programs folder, so you will find it in stat menu.

If you want to group it app, for example in folder “Utility” in the start menu, that it very simple, just change the value of the above to:

Directory("\windows\start menu\programs\Utility"):-File("BlackMe.lnk","\windows\BlackMe.lnk")

After that, save your file, click menu file, save as. In the save as type column choose “All Files, In the Encoding Column choose “ANSI”,

Lesson 5: How to change the app icon

In the each package app folder, you will find file “app.reg”, open it by notepad. If you want to assign the .png file as an icon of Blackme app, then write this value:

[HKEY_LOCAL_MACHINE\Security\Shell\StartInfo\Start\Utility\BlackMe.lnk]

"Icon"="\\Windows\\Your_PNG_File_Name.png"

"Group"=dword:00000000

Take a look to the bold word, you need to write “Utility” because your shortcut in the Utilities Folder, if it not in Folder, just remove “Utility” from there.

After that, save your file, click menu file, save as. In the save as type column choose “All Files, In the Encoding Column choose “Unicode”,

Lesson 6: How to get a more phone storage

There are some trick to get more phone storage.

1. Use a light app

2. MMS, for this time, we almost never use MMS, email is more powerful than MMS, so you can use the older version of this MMS app, you will get more phone storage and more RAM.

3. Remove module/folder inside SYS. If you don’t use some app inside sys, you can remove it.

4. The default installation of CAB is in Program Files folder. So if you directly convert the cab to packages, the file of app will be put in program files folder and in the windows folder, so every file of the app will have clone, it will waste your phone storage. My suggestion, avoid to put app in the program files folder, put it in the windows. Before you convert the cab file, you can edit the cab by “WinCab Manager”, and then change the installation directory to windows, save the cab and convert it, back to lesson 3.

Lesson 7: I am forget what else, I will add some tip if I remember…..:D:D:D, If you have some trick post it in my thread and i will update The module in my “COOKING COURSE CLASS”