yashsingh1/xdaforums huggingface dataset:
[Touch Diamond, MDA Compact IV ROM Development] haroldbkk:
UPX compressor

Since this is a good learning thread I'd like share UPX compressor for use when cooking.

It will compress DLL and EXE files. I just picked the first one I found (www.upx.org), there are others available, but this one works.

Be careful about being over zealous on compression - especially system type files!!! Application files seem to compress just fine.

Make sure you have HardSPL to recover your phone if you compress the wrong files!!!

Reminder:

1. To Enter Bootloader so you can reflash if phone it won't start up properly: Press Vol Down and Soft Reset Buttons. This will get you to the Tri Colored screen. Then you can attach USB cable and then run the RUU to reflash. Just proceed in the screens and it will flash.

Does anybody know of any downsides to compression?

- Slower load speed? Slower execution speed?

- Does it expand in memory and take up more space then original file?
[Touch Diamond, MDA Compact IV ROM Development] l3v5y:
There is a thread for it: http://xdaforums.com/showpost.php?p=2272588&postcount=1

The Office EXEs (Pxl.exe, ppt.exe and pword.exe) can all be compressed using UPX on maximum compression.

You save up to 2/3MB on office alone! :)
[Touch Diamond, MDA Compact IV ROM Development] Dpakrawal:
Thanks for the links and all the info.. I'm gonna my hand at this.. Just one small noob question (just to confirm that am gettin thins right).. The WinCE CAB manager... lets you modify the contents, installation folder, etc of the cab files (ONLY !!).. where as the package maker tools, converts these cab files to OEM packages.. RIGHT !?!?!?
[Touch Diamond, MDA Compact IV ROM Development] haroldbkk:
That's Right

Package maker is for converting CABs for use in the ROM.

I've seen that in the ROM the Opera install is still a CAB file (not converted into a package). If you find any info on how to put CABs in the ROM for installation please share that.

It might be just simply putting in a CAB file, but I haven't taken time to try it out yet.
[Touch Diamond, MDA Compact IV ROM Development] adwinp:
Here are some cooking lessons:

http://www.xdasite.com/forumdisplay.php?f=46

Enjoy.
[Touch Diamond, MDA Compact IV ROM Development] Dpakrawal:
Sorry dude... Even I was tryin to get a hold of that.. But havent been able to figure it out yet.. I tried just placing the cab file in the ROM.. But nope.. it does not work.. I think some sorta "commad" (somethin like the initflashsiles.txt, used to copy files from one location to the other) has to be given to execute the cab file.. Anyways.. Will keep you posted, in case i get hold of anythin !!
[Touch Diamond, MDA Compact IV ROM Development] adwinp:
You can either make yourself a UC ompliant ROM or add your package to initflashfiles and configap
[Touch Diamond, MDA Compact IV ROM Development] ady_uaic:
please, can you provide a link with package creator 2.7?
[Touch Diamond, MDA Compact IV ROM Development] Dpakrawal:
Thanks for the info.. But could you explain what you mean by "adding package to initflashfiles and configap ?? ".. As I'm a bit confused.. I understand that configap is a like a "command" to execute the cab files.. So isint that just enough !?!.. how does "initflashfile" help !?!?..
[Touch Diamond, MDA Compact IV ROM Development] l3v5y:
To install cab files, you need to find a "Config.txt" (there may be others like "config_pt.txt") file in the ROM, and add (at the beginning will work best!):

CAB: \Windows\CABNAME.cab

And, on startup, this cab will be installed.

Opera stores some data in \Application Data, so turning that into an OEM pack is actually inefficient, as all te data gets stored in \Windows (uncompressed, whereas cabs have it compressed) and is copied via the initflashfiles.dat to its set location.

EDIT: There is a wiki page on AutoRun here.
[Touch Diamond, MDA Compact IV ROM Development] Dpakrawal:
Thanks.. So If I wanna install some other applications as cab.. and not as packages to the rom.. i just need to use the config.txt file.. right !?!?..

initflashfile, is just to copy the cab (or any other file to the a location) right !?!?!..

(JUST CONFIRMIN, WHAT I CAN GATHER.. :D.. )
[Touch Diamond, MDA Compact IV ROM Development] l3v5y:
Correct!

:)
[Touch Diamond, MDA Compact IV ROM Development] Dpakrawal:
Thank You.. :D :D
[Touch Diamond, MDA Compact IV ROM Development] lolek74:
Package creator

You can download Manilla cab HERE :)
[Touch Diamond, MDA Compact IV ROM Development] ady_uaic:
thx a lot for package creator. what's manila?
[Touch Diamond, MDA Compact IV ROM Development] l3v5y:
Manila is TF3D!
[Touch Diamond, MDA Compact IV ROM Development] EgOrus:
Anyone, can help me with such a problem:

I cooked clean Rom (w/o any changes, deletions or addons) and flash it on my device, after that Diamond cycle for reboot after 1st spash (Touch diamond), then I upgrade HardSpl from my 1.40.olinex to 1.93.olinex unsigned and flash my ROM once more, after that I have red text message: "Your OS ROM isn't customized for your hardware. Please reflash the proper ROM code or contact the service center." As I think my device don't want CID from cooked ROM, and I don't understand why? HardSPL must solve this problem, but its not. And it's strange that all others cooked ROM from famous Cookers works well.

I try to use another Rom builder tool: NBH Utility 0.92 which sign ROM with default certificate, and try update HTC Rom tool from kitchen, no result.

I try to cook my ROM from official "RUU_Diamond_HTC_RUS_1.93.411.2_Radio_Signed_Diamond_52.29.25.12_1.00.25.05_Ship" and my device is O2 XDA Diamond.

Now I try to download native rom for my Diamond from O2 German and see what CID it have, after that I change CID in my cooked ROM.
[Touch Diamond, MDA Compact IV ROM Development] haroldbkk:
CAB file installation

Thanks for this info!

I also found this program on the site called Pandora Preconfig Launcher (search for Pandora and it should come up).

It seems to work the same way, you need to create a CABS.txt file and that has the same syntax as the config.txt

Question: if installing a CAB file via the config.txt file, is there a double use of storage? (CAB file + extracted files)
[Touch Diamond, MDA Compact IV ROM Development] l3v5y:
There will be a double use of storage, but if the cab needs to place files somewhere other than windows (like Opera storing some files in Application Data), then a CAB is better because a cab can be (and is) compressed.
[Touch Diamond, MDA Compact IV ROM Development] salada2k:
It sounds like you need to CID unlock your device?

http://xdaforums.com/showthread.php?t=414835
[Touch Diamond, MDA Compact IV ROM Development] EgOrus:
salada2k

ok. But all others cooked ROM works fine on my device... I think that the problem in baseROM which I use to cook my own ROM.

So Russian Shiped Rom 1.93 not supported by HardSPL, that's the problem. If i cook from suported ROM (download from tutorial link WWE ROMs) all work fine.
[Touch Diamond, MDA Compact IV ROM Development] GriFolle:
Hi all,

I want try to rebuild for myself panosha's last rom (shine on 1.5). Mind that this rom is unprotected as he said before in another thread.

The matter is that "shine on" is not compiled as any other traditional cooked rom: there are just two files componing it, the .nbh one (but with a different name from RUU_signed) and a .exe rom updateutilty. All others files shown in the second image of this tutorial (rapitool/modelID.fig/RUUResource.dll/...) are missing.

Two question:

- Have I rename the .nbh file to "RUU_signed" before clicking on begin to let the kitchen work?

- Wat about the missing files? It's a problem or I have just put the .nbh and the .exe into the base rom folder? Or maybe just the .nbh..?

I'm sorry but I'm really really noob...

Regards.
[Touch Diamond, MDA Compact IV ROM Development] l3v5y:
The RUU used is different, but for cooking, the only important file is the *.nbh file. Rename it to ruu_signed.nbh, and then put it in your kitchen, and you should be good to go!
[Touch Diamond, MDA Compact IV ROM Development] GriFolle:
thank you! So, if I've understood, I have just to put in the folder the .nbh renamed file, right?
[Touch Diamond, MDA Compact IV ROM Development] signs2006:
Let's bring it to a next level.

I'm building my own rom right now. So i removed some unnecessary programs.

Now i want to tweak a little bit. Like registry tweaks etc.

So how can i do this ? Is it just flash my device with my rom then do the reg tweaks, dump the rom, done ?
[Touch Diamond, MDA Compact IV ROM Development] kourampies:
forgive me if thats a stupid question, but what happens when editing a locked rom? program says that is impossible, or everything seems ok, and when i flash it i kill the phone? :p
[Touch Diamond, MDA Compact IV ROM Development] etenx500:
It is depend on the "rom". Some you can not dunp the rom. Some you can dump and flash but it will stuck at Diamond splash screen (swiftBL's rom). Hope this hepl
[Touch Diamond, MDA Compact IV ROM Development] fabe-rza:
Hello,

i try to cook my own rom but i have a question :

- can i change WM Calendar by ThumbCall? i would kown if i can delete the files in "calendar.exe"(SYS/BaseApps) and put ThumbCal in this folder? (rename = Calendar)

Sorry for this stupid question but i'm really novice in coocking rom... and i want change this f...king WM Calendar...
[Touch Diamond, MDA Compact IV ROM Development] etenx500:
Hi there. Just a question. How do we insert some registry into the rom kithcen. THX SO MUCH
[Touch Diamond, MDA Compact IV ROM Development] fabe-rza:
can somebody help me?

i try to cokk a rom and read the first page and i make all write... but when i finish and i flash my diamond... it freez on "Touch Diamond" ( the first screen with the radio...)

how i can resolve them???:confused:
[Touch Diamond, MDA Compact IV ROM Development] fabe-rza:
My Diamond doesn't boot on Window...
[Touch Diamond, MDA Compact IV ROM Development] GriFolle:
Mmm...I am not so expert ("au contraire!") but I think that:

- Or something was going wrong during flashing procedure

- Or, if you've flashed your "own made custom rom", something was going wrong when you've cooked it.

In my noob opinion you have to enter in boot mode, connect your device to pc, and reflash a "secure" rom downloaded from this forum, maybe dutty's, panosha's, bepe's, swto's...

Anyhow, good luck
[Touch Diamond, MDA Compact IV ROM Development] fabe-rza:
Thanks but i can't enter in boot mode! only hard reset mod...
[Touch Diamond, MDA Compact IV ROM Development] GriFolle:
After you've power off your device...follow theese instructions:

http://xdaforums.com/showpost.php?p=2524879&postcount=8

Let me know...
[Touch Diamond, MDA Compact IV ROM Development] fabe-rza:
ok it's all right... i'm stupid anxious boy! :p
[Touch Diamond, MDA Compact IV ROM Development] fabe-rza:
i think when i've cooked something was wrong but i don't know what? i go to search...
[Touch Diamond, MDA Compact IV ROM Development] GriFolle:
I'm happy that you solved it!

Ciao
[Touch Diamond, MDA Compact IV ROM Development] GriFolle:
Please, please, please...somebody can help me with theese issues?!

1) How to cook Manila?!

First of all I was not able to find an oem pack of the "fully animated version" (the .30 one), I've just found the cab file made by tlr and trying to repack it with the erviu's package, but it cant do that...so HOW CAN I DO? Moreover I know that's difficult to cook manila: i tryied with an oem pack of another version..it seems all ok, but when I look for it in the home setting of the phone there's no the TF3d today plugin...I can also run manila as a standalone app launching it from the .exe file...

2) How to update OS and XIP?

Simply removing the old ones and putting in newer?

3) How to make my personal tweaks to the registry?

4) How to change the splash screen?

And also...how can I change the WM6 default theme?

5) What about Opera?

I've heard that's a "strange way" o cook it and moreover I don't know how to link manila internet tab to it...

6) There's a way to let my rom "UC Capable"?

I've puted into OEMAPPS folder the SDConfig.exe file (foun on a thread of this forum), and I've modified the config file to run it instead the reset...but it do not want to work. I think the problem is that into the Diamond the usually called "Storage Card" in reality is named "Internal Storage". Is it possible? In this case, what can I do?

MANY THANKS TO ANYONE WHO WANTS TO REPLY...
[Touch Diamond, MDA Compact IV ROM Development] kourampies:
nice knowing that, i was planning to remove manilla from swiftbl and flash it today. thanks :)
[Touch Diamond, MDA Compact IV ROM Development] Nemo0815:
I tried that too, but it didn't seem to work:(

I extracted the 1.93 offical ROM to the kitchen, and started with !BEGIN.

Then i put the 20*** OS (os.nb) from the other thread here into the "ROM" folder and deleted the other one which was extracted from the 1.93 ROM (however, the 20*** OS seems to be significantly smaller than the original os.NB file, 70 vs 115 MB?)

After cooking everything it still shows OS version 5.2.19965 (Build 19965.1.2.3) so still seems to be the old one :(

Or is the version number somewhere else in those extracted files? Or did i do something completely wrong??
[Touch Diamond, MDA Compact IV ROM Development] GriFolle:
And what about cooking manila?

Did you tried it?
[Touch Diamond, MDA Compact IV ROM Development] alncool:
Hum, i played with package creator and had some bug with a lot of cab files so ... i searched for help i found that the version you have linked if outdated. So here is the last one :

http://xdaforums.com/showpost.php?p=2089816&postcount=11

Before asking my question i'd like to thanks l3v5y because of sharing his experience with novice one (like me ^^). For sure you guy, have already answered a lot of my questions with your answers. Please continue :D

Well i would like to know how to update NETCF2 to NETCF3.5 and the same for SQLCE. I know there are OEM package in this forum but not in french so i have to start from scratch.

I have downloaded NETCF3.5 & SqlCE3.5 from Microsoft and installed them. With a search i found the .CAB file in Program Files. Now i can start playing...

From now, should i convert them to package and remove the old ones - or - should i just overwrite files from the cab to the existing folders in Kitchen\SYS\ and modify .rgu?
[Touch Diamond, MDA Compact IV ROM Development] l3v5y:
Since the 1.93 ROM is also for Diamond, you can just swap all the relevant folders around.

You need to replace the 19965 ROM\XIP folder with the newer one, and also the SYS folder with the newer one.

The change in OS.nb file size is most likely caused by removing some OEM packs/rubbish when you cooked the ROM, although it's possible that the cooking process reduced the file size a bit.
[Touch Diamond, MDA Compact IV ROM Development] l3v5y:
I'd suggest removing the SQLCE2.0 folder and the NetCF folder from the SYS part, and replace those with the newer ones.

Convert both the cabs to OEM packs, and replace the old ones.

If you get an error when BuildOS runs involving "... already exists!", make sure you removed all of the old packs.
[Touch Diamond, MDA Compact IV ROM Development] l3v5y:
The TF3D as a today plugin is created by the "PT_Manila_reg.cab" installer, that installs the relevant registry keys. Make sure you have that, and that it is referenced in a config.txt file:

CAB:\Windows\PT_Manila_reg.cab

would do. (it shouldn't matter if the cab is installed twice, so having it in multiple Config.txt files is not an issue.)

As I just posted, you'll need to replace the OS.nb file, and the ROM\XIP folder. Also, if you want to have a newer SYS build, you'll need to copy that over the old one (if it's from the Diamond, if it's not, you'll have to port it.)

Simplest way is to create a new OEM pack.

Using Ervius package creator, you can "complete an OEM pack" using a new folder (one with nothing in it), and then in the created RGU file (open it in notepad), you can add lines to install registry tweaks.

REGEDIT4
[HKEY_LOCAL_MACHINE\SYSTEM\GDI\GLYPHCACHE]
"limit"=dword:32768

would increase the glyphcache.

The splash screen is "welcomehead.192.png", and is in the SYS (can't remember which pack, but a search should find that...)

The theme can be changed using AutoRun.

The last commandhere should help with that.

Opera is installed via a CAB file using autorun.exe. It should get linked into manila as it'll become the default browser.

In theory, UC should detect that, but it may not... Might be an idea to post in the UC thread about it.
[Touch Diamond, MDA Compact IV ROM Development] l3v5y:
To all people having an issue with there ROMs not booting, one potential cause is that modules are overlapping in the file system, and so cannot run.

Make sure you run GReloc prior to building the ROM! (may be automated by the kitchen, but I'm not sure...)
[Touch Diamond, MDA Compact IV ROM Development] haroldbkk:
Here's what I did to cook old version of Manila
[Touch Diamond, MDA Compact IV ROM Development] GriFolle:
@L3v5Y

I love you! your reply was FAST, COMPLETE, CLEAR, GENTLE...I really don't know how to say THANKS, but I think that alla the english words I know are not sufficient to show you my gratitude! Maybe I will try in Italian, but probably you will not understand anything ;)

So, another one time, THANKS!!!

@haroldbkk:

I have to say thank you to you too. Because in effect following L3v5y'words now I can run TF3D as a today plugin (I've putted the PT_Manila_reg.cab into \SYS\OEMAPPS and run it from the config.txt situated in \OEM\Extendedpkg) but unlukly now, when I launch manila, my screen stay looped sayng "tap here to launch TF3D" and "Launching TF3d"...but: NOTHING SEEMS TO HAPPEN.

I'm going to try your way...

Thanks to people like you, thanks to a forum like this...sincerly...
[Touch Diamond, MDA Compact IV ROM Development] alncool:
@l3V5Y

Thanks for your advice !

I'm still working on NETCF upgrade but i have a problem for creating a Package from Microsoft cab file. It uses a setup.dll file to install correctly the CF on the device. Well i don't really know how to extract registry modification from it...

Any idea ?

Maybe can i use the same RGB file provided by the english version in this forum... dunno
[Touch Diamond, MDA Compact IV ROM Development] l3v5y:
One thing you could do, is install the cab onto your device, and then search the registry for "GAC" or "NETCF", and then dump that bit of the registry.
[Touch Diamond, MDA Compact IV ROM Development] tararura:
Thanks Haroldbkk

After reading your post I did the following;

1. I dumped CT's Lite 5.0 Rom (thanks a lot CT, very good rom) into my kitchen.

2. Packaged the tlr.manila.

3. Copied DSM and RGU files from CT's Rom Manila to tlr.manila package.

4. Copied the files from Gold-Jewelery theme to tlr.manila Package.

5. Replaced CT's original Manila package with my tlr.manila Package.

6. Cooked without any problem.

7. Came up with a beautiful rom having the best Manila with Gold Jewelry icons and animations from manila.30.

Another tip is to use SASHIMI. Its a great program. You can put all the cabs, Reg, exe files in Auto mode and after every new install you just run it and it will install all the cabs etc in one go. very kool.

I have a big problem. If I want to add any other Packages (created with package creator), at the end of the cooking it gives error that it can not find/create system.hv and user.hv. Any ideas? I already did a lots of search but with no real solution.

Thanks a lot in advance..........
[Touch Diamond, MDA Compact IV ROM Development] alncool:
Yes it's a solution too .. I'll give it a try !

Thanks again L3v5y
[Touch Diamond, MDA Compact IV ROM Development] s1rl4ncel0t:
From my experience, which is not that much, I'm affraid of, that happens when there are erros inside the registry key...

Go through the log.txt inside temp folder and have a look in the very end of the fiel, in which rgu is the error and see if you can correct it.

I don't know if these errors come because of the package creator, or if they were there since the beginning...

I'm having many problems of those as well, namely with Google Maps and Opera, which I can't integrate in a rom that I'm preparing...The common problem in them both, is a "%%1" inside some reg lines in the rgu...at leats that what the log.txt tells me...

I would also like to learn how to make a auto-install, to add to those already running when the device starts the first time (after the pop-up tell that installation will start within 3 seconds).

One last question would be, which are the dependancies of the PHOTO CAMERA? I removed some things from the rom, and now the camera doesn't work...I'm affraid I removed somenthing that she needs to work with... :(

HastaSSSS
[Touch Diamond, MDA Compact IV ROM Development] l3v5y:
If you get an error finding Default/user HV files, try working out what OEM pack they are in, and then building the DSM. Also, make sure the rgu files don't contain strange characters.

Opera (mobile at least) is best installed as a CAB file when AutoRun runs. edit any of the files similar in name to "Config.txt" (eg "config_pt.txt"), and add "CAB:\Windows\cabname.cab" near any existing "CAB" statements.

The camera needs things like Direct Show, and some other OEM packs. What doesn't work with the camera?
[Touch Diamond, MDA Compact IV ROM Development] Dpakrawal:
Hay I did the samethin as you for the NETCF.. I wanna change the cabs to packages, but I have found like alotta cabs in the PROGRAM FILES FOLDER (on my computer)... Which do i need ??.. Or do i have to convert all of them ??
[Touch Diamond, MDA Compact IV ROM Development] s1rl4ncel0t:
Just replace the folder inside SYS with this folder, and everything should be ok ;)

In the mean time I've sorted out by myself those issues with Default /User HV

Regarding the camera, I removed Sensor SDK and was what was causing the problem. I wanted to remove it to check if it interferes with the GPS lag that I'm experimenting...I think that a bad calibration of the G-Senor could have something to do with it...But I couldn't figure out how to remove the sensor SDK without interfering with the camera...

But now I have a question: which are the performance implications of having applications installed through the Auto-Run instead of cooked directly inside the ROM as all other aplications?

HastaSSSS
[Touch Diamond, MDA Compact IV ROM Development] l3v5y:
There should be no performance differences for the applications, although the ROM will have less space, and the ROM itself may respond slightly slower...
[Touch Diamond, MDA Compact IV ROM Development] s1rl4ncel0t:
So, the ROM could respond slower if I install the aplications through the Auto-run, or is it the other way around?

BTW: I'm having a problem that I just can't figure out why I'm having one of those default.hv errors...

I built a reg trick with the following key:

[HKEY_LOCAL_MACHINE\Software\HTC\SUPL AGPS]

"EnableAGPS"=dword:0

"GPSMode"=dword:1

But the log is thelling me that a have a problem on the last line "GPSMode"=dword:1...I don't understand why...

And another thing: when I write "dword", how do I know if it's implementing a a decimal or a hexadecimal value????

HastaSSSS
[Touch Diamond, MDA Compact IV ROM Development] Dpakrawal:
Thanks dude.. But I was looking for a english version.. :).. Any link to that ??
[Touch Diamond, MDA Compact IV ROM Development] s1rl4ncel0t:
Don't worry...it's in english... ;)

I cook everything in english :D

HastaSSSS
[Touch Diamond, MDA Compact IV ROM Development] Dpakrawal:
looool.. thanks dude.. ;)
[Touch Diamond, MDA Compact IV ROM Development] tararura:
Does anyone know , where is the information about favourite People saved and how can I cook it in my own Rom. or is there any registry file I can save and then put on the new Rom.

thanks a bunch
[Touch Diamond, MDA Compact IV ROM Development] GriFolle:
If I understand what you mean:

I don't think there is any registry "place" where these informations will be save...maybe in some app (look into the oem folder) as, i.e., outlook...but I'm not really sure you can do that.

But wait for someone more expert than me;)