yashsingh1/xdaforums huggingface dataset:
[General Topics] ibeqa:
No, you cannot restore symbian backu file to WM. What you can do is borow a symbian device, syncronise it with outlook (if you need contacts) that those contacts from outlook you can put to WM.

Cheers
[General Topics] the-equinoxe:
Moved -> General

Since SE also has a WinMo device (X1) don't they have a migration tool?
[XPERIA X1 ROM Development] Lokatho:
Nice work!! Downloading at the moment, and see what your guide brings me
[XPERIA X1 ROM Development] neock:
wow,that's what i'm looking for!

thanks for the work
[XPERIA X1 ROM Development] damskie:
How to cook rom 101.. This is what i've been looking for.. Thanks TS.
[XPERIA X1 ROM Development] i_am_jon:
Brilliant, someone should sticky this.

Been wanting to try cooking my own rom for a while but didn't know where to start. Your example is pretty much exactly what i've been looking for in a cooked rom, strip out all the media junk but not mess with anything else.

What do I have to do to get UC working, is it just a case of having SDConfig.txt on my storage card or do I need to add something to the rom?

Any chance of a part 2 for how to add cab's to the rom? I would like to add a few light weight essentials such as blackstone dialer, fm radio & volume control to mine.
[XPERIA X1 ROM Development] MykeChester:
Nice Thread...I will try it later after work...:D

"Make config.txt writable and delete

"XML: \WINDOWS\fileoperations.xml" line and Make the file read only again.

Delete all files that are larger than 22 KB except "Xperia Black.tsk", because i like Xperia black theme."

One question...what do you mean "make config.txt writable?"
[XPERIA X1 ROM Development] quinstar:
In file properties, untick "read-only"

Q
[XPERIA X1 ROM Development] stellaryt:
a good guide.Thanks!
[XPERIA X1 ROM Development] 341840633:
thank you very much
[XPERIA X1 ROM Development] htainlin:
Actually, I have never tried to use UC yet. I just install whatever I want manually. Using UC should be quicker to install things. Great chefs like ITJE and Jack should know better. Please search their threads for UC stuffs.

For putting the cab files should be relatively easy. We can do reverse exactly how we stripped them out.

For example , you can do the following if you want to put FM Radio panel back or any other cabs you wanted to include in the rom.

But for me, I want the rom as light as possible and to get the largest storage space, I don't bother to put them in the rom. If I want them, I just install them manually.

Step1:

Put the line in Config_AP.txt the line "CAB: \WINDOWS\FM-Radio_Panel_MR1_R19_32318_signed.CAB" . It has to be exactly as the cab file name that you are going to put in the OEM folder.

Step2:

Make 2 folders "PACKAGE_Kovsky_FMRadioPanel" and "PACKAGE_Kovsky_FMRadioPanel_0409" in the OEM folder. Put your cab file in the first folder.

And now you are good to go.

Step3:

Open KovskyKitchen.CMD and start the procedures "Step 4: Building OS "from my guide.

**********************************************************

Step 4: Building OS

1. Go back to CMD window and

2. Type "C" cook a rom.

3. Type "A" if you want to use the old BuildOS.exe (I can't figure out the second one)

4. BuildOS windows will appear.

5. Just click on green "Play" icon and It will start building our rom. Wait until it finishs and closes the "Build OS" window.

6. Go back to CMD windows again and wait until you see "press any key to contine".. press any key..

7. It will do some stuffs and you will see os-new.nb in the kitchen folder.

8. htc rom tool windows will appear.

Go to Rom Builder TAB. Choose Kovsky * in device. It will fill all the infomation in other fields. Just change the version to anything you like.

9. Choose "os-new.nb" in the OS field. and click on "Build" button.

10. Save it as "RUU_Signed.nbh" in the kitchen folder. A new window appear and it will quit itself.

11. Now. you will see "RUU_Signed.nbh" in the kitchen folder.

12. An Hexa Editor windows will appear. Just close it.

13. You can close CMD window now.

**********************************************************

Hope this help. :)
[XPERIA X1 ROM Development] ianl8888:
@htainlin

Thank you greatly for these posts - they are very clear and concise.

Most of all, they are explicit and very helpful. Trying to obtain a "road map" of ROM cookery is very frustrating - it's all a "big secret", where you are advised to read and read etc, but the multifarious references are truncated, incomplete, chaotic and contradictory. You've helped enormously in cleaning up this mess.

Straightforward now - generic RA3 versions will turn up sometime.

Re UC:

I use this to re-install most apps after a new ROM flash (see Jack Leung's thread for my posts). The only real hassle for UC are those apps that splatter files on installation to both the SD card and Storage. There is a huge thread on UC with most questions answered in one fashion or another, but it takes patience to sort through it. Having done it once, you need only update your sdconfig.txt as you add/remove apps over time.
[XPERIA X1 ROM Development] fards:
Nice post!

However if you really want to make a streamlined rom use Ervius Visual Mulitlang Kitchen

http://xdaforums.com/showthread.php?p=3147148#post3147148,

The GUI is pretty neat, and it uses Bepe's new kitchen system to get rid of extra gumpf in the roms (such as dsm files).

this then optimizes it a bit as /windows has less files in it. Ergo it does things faster.

this will also work with the newer format roms coming I think.
[XPERIA X1 ROM Development] fards:
There's no "big secret" the reasons you've stated are the reasons people tell you to read. If there was one post to point people to then don't you think people would have done it?

It takes a lot of time to do the work that htainlin did, which is why most people dont get around to doing it all.

htainlin stick it in the WIKI.
[XPERIA X1 ROM Development] jackleung:
Very rom cooking guide for beginner

Nice work. I did something similar for Asus P525 long time back and I know it's takes a lot of effort to bring everything together, and explain the subject clearly for beginner.

This is a very good starter "re-cooking" document for beginner. There is no "big secret" for rom cooking. All you still need to do is research and read a lot more to do some hardcore stuff for the next level. e.g. remove unnecessary driver/service/registry Welcome center / Customer Satisfactory ...etc, replace driver w/ other device to get more functionality. Then XIP/Sys port .....etc
[XPERIA X1 ROM Development] htainlin:
Thanks guys. I am not really into cooking.

My goal is to take the "Unwanted Stuffs" out from the rom so that the storage will be larger and just a small guide to everyone who wants to make their rom lighter. Everyone should be able to do it themselves for their likings to any future rom versions.

There is "NO BIG SECRET" for rom cooking. But for beginners, it is really hard to figure out how to use "Kovsky Kitchen". Once you are experienced, it's quite easy.

But for advanced stuffs as Jack mentioned.. we need more research and skills. I might write a detailed guide later, how to edit registry and replacing better dlls and applications.

Everyone has his/her own preferences and I just want to show them even a beginner could do themselves.

Windows mobile is the best ever mobile os for me so far and you can modify anyway you like. Thanks to many developers who created kitchen and make things easy for us. :)
[XPERIA X1 ROM Development] twisted:
how to's...

here are some of the how to's i stumbled on ppc geeks. hope this enlighten some in modding/customizing roms:

1. how to's for developing

2. adding registry entries (rgu method)
[XPERIA X1 ROM Development] htainlin:
Thanks for the links. Very good.
[XPERIA X1 ROM Development] griffin9k:
There is no need to do such a hard job - to extract & rebuild all the ROM file.

Just take HTC Rom Editor, open your ROM there, clear all useless stuff and correct files

config.txt

config_AP.txt

config_operatior.txt

config_SP.txt (if exist)

fileoperations.xml

runlua.cc

Then save your rom and flash it. Easy way.

PS: My custom rom with cleared "stuff" (even SE Dialer) and some features is about 65MB, and makes about 360+MB free memory.
[XPERIA X1 ROM Development] harveydent:
Great job! Big help to us new to WM and ROM cooking. Thanks, mate!

+1 to make this thread sticky
[XPERIA X1 ROM Development] c_legaspi:
great write up. got a couple questions tho.

what effect does deleting the \windows\fileoperations.xml have on:

ringtones? will you have to maually load your ringtone, like for my alarm, notifications (mail, sms)

internet explorer start page?

startup animation?

panels? will i still have the se1 and 2 panels? how about the today panel?

thanks,

claudio
[XPERIA X1 ROM Development] htainlin:
1. Fileoperations.xml will put all SE's movies, songs, movies, ringtones and other things from ExtendedPkg folder. You can edit to choose which ones to put in the rom but for me, I don't want any of those. It will take a lot of time to edit fileoperations.xml as it is pretty big.

2. You will have windows standard ringtones and notifications only by deleting fileoperations.xml . If you want them, you can edit fileoperations.xml and leave the lines you want for ringtones and sms notifications.

3. I usually have my own internet explorer start page. You can edit fileoperations.xml for that too.

4. For startup annimation, you can put back mainsplash.nb and subsplash.nb when you build rom with htc rom tool but it seems like you can only put one splash.nb at one time according to htc rom tool. But it will make the phone longer to load.

5. If you don't delete "PACKAGE_Kovsky_GenericPanel" and "PACKAGE_Kovsky_GenericPanel_0409" in OEM folder, you will get SE panel 1, 2 and 3D fish panel will be installed. I like them so that I don't delete those folders.

6. You will get today panel and panel button will be working if you don't delete " PACKAGE_Kovsky_PanelManager" and " PACKAGE_Kovsky_PanelManager_0409" folders in OEM folder.

Note:

1.You can put your own ringtones in "My Documents/Rings" folder for phone ringtones.

2. SMS and other notifications, you can put any *.wma" songs in "Windows" folder in your device

Hope this help :) .
[XPERIA X1 ROM Development] c_legaspi:
ok thanks. thats what i thought.
[XPERIA X1 ROM Development] ianl8888:
I have to disagree with the first point. I've been cooking simple, basic ROM's for about 2 years now (started with Eten X500's and progressed through Polaris to X1), but I was never completely sure of the process repeating itself reliably ... I've pointed out, accurately, that delving into the various threads across the forums (which I've done assiduously for over 3 years) still leaves incomplete, confusing and contradictory information.

htainlin's post was the first to delineate the simple cook process clearly and completely. And I have sincerely congratulated him for it. I have genuine admiration for the clarity of his post.

I agree htainlin's post could properly be in Wiki. An excellent suggestion.

The forums are littered with direct questions on the process with answers persistently along the lines of "read and read ... etc". I've listed some of the results of that above. htainlin simply answered the questions.

The "secret" I was referring to stems, maybe, from various chefs' earlier unpleasant experiences where unscrupulous people were re-packaging their ROM's and touting for donations without acknowledging their contribution - hence, perhaps, the advent of "all packages to one" and other protections. Certainly, a famous chef (Bepe) makes no apologies for this.

The Polaris sub-forum actually contains deliberately unprotected ROM's from several chefs, challenging others to do the same and dispense with the "secrets". (Read their posts !!) This is obviously a very grey area, with acknowledged chefs in conflict.

Upgrading XIP's is maybe a next step - I've tried this twice, with the last one failing for reasons I haven't found yet. Still, hope springs ... etc

Later edit: also meant to say that the reason I don't use Bepe's new PackageBuilder kitchen setup is because the resultant ROM's are not able to be pulled apart ... much prefer to extract them 1st (after build) prior to flashing to check for obvious errors. That said, this thread is extremely interesting :)
[XPERIA X1 ROM Development] Rudios:
I've tried this guide and i'm very supprised by the size of the NBH file after cooking.

Mine is only 87 MB, while the original is +200MB

I only remain with one question:

What is the application MxP_R19_MR1_RC2_32367_signed.CAB you are deleting from the package folder.
[XPERIA X1 ROM Development] htainlin:
"MxP_R19_MR1_RC2_32367_signed.CAB" is media panel. It's a pretty large file (9MB). Therefore, I didn't want to leave it inside the rom, I copied it to somewhere and installed it manually.
[XPERIA X1 ROM Development] ianl8888:
Sorry for the late reply, I missed this post before.

I get about the same figures as you quote - I "disembowelled" GENERIC NAM X1a R2 about 4 weeks ago and rebuilt it without almost everything I could think of. Wasn't sure it would work, of course but so far ... OK

I install NETCF35 and Office off CAB's after flash because they'll install to the SD card; saves Storage and increases device responsiveness. The only CAB I add in the Extended ROM is the SD card utility by tnyynt - this is brilliant in my view.
[XPERIA X1 ROM Development] griffin9k:
I've cleared:

All media content (video, mp3 and other)

All panels except SE 1&2 (i killed my fish ;) )

SE Dialer

All SE CAB files (Opera,mediapanels, games)

All unwanted (in ROM) stuff like html help pages, icons, links.

Cleared Windows Live! Service (and all things connected with it, we don't use it)

I put it :

Softtouch tweak for better response on touch screen

SD tnyynt Tweak for better performance

SDK Certificates

SD Autorun file for ability to run unattended setup file from SD card.

Little UI modifications for better usability

I keeped MS Office in ROM, not sure to delete it or not

And tweaked some registry items (but i've got troubles with it now, they aren't installed during customisation).

All this stuff was made on original SE ROM, not from the kitchen. And i still suppose that it's a little bit easier way to customize ROMs.

My final version (for now v2.12) is 70Mb, with this ROM i can get about 380MB ROM from which ~365 free and 17% RAM load (about 30Mb).The litest stable version i was able to cook from original ROM is about 59Mb with almost no additional stuff, it gives almost 375Mb free. It's possible to get a little bit lighter version, if you use english rom.
[XPERIA X1 ROM Development] ianl8888:
Your selected quotes above:

[I removed all the stuff you listed as removable and more - eg. no Panel files at all, including Panel Manager :)]

Yes, I include the sdkcerts CAB, but how do you include SDAutorun.exe ?

There is a CAB file for Office 6.1 around that installs on the SD card - when used with SD tnyynt, I cannot tell the difference from install on Storage for speed of use, but it saves ~3Mb in Storage ... hell, the SD cards are 16Gb now, with 32Gb maybe 6 months away, why not use this marvellous space ?

NETCF35 installs on the card (you can anyway force this by editing the CAB in CECabs) and again with SD tnyynt, speed of use is indistinguishable to me from Storage

RAMdisk (used by JackL in his ROM's) is useful if you use Opera for browsing a lot, but the 2 files needed can be installed later if you need. Most programs I use are RAMdisk-unaware, so it makes very little difference

Now the next trick, I think, is replacing XIP and SYS with newer builds. XIP upgrades in particular can really improve the speed of the device.
[XPERIA X1 ROM Development] jackleung:
The problem w/ the "SD Card of every program" approach is that if you want to open a doc/mp3/movie/picture (especially w/ a huge file that's bigger than yr 512mb storage size) on yr friend's micro SD, you will run into issue since the program is on your own micro SD and the data is on yr friend's. And why border since I can never use up my 300mb+ storage on X1 w/ just programs?
[XPERIA X1 ROM Development] ianl8888:
Thanks Jack. I'll treat these as questions (?)

1) my device is a practical work machine, so the frivolity of movies is rare to non-existent for me. The cards are FAT32 so their file size limit is 4Gb (I often use the SD card like a USB flash drive to transfer large >3Gb 4Gb< data files from a field PC to my office PC or vice-versa). The Storage limit of 512Mb is obviously not part of this equation. If a colleague needs one of these large data files on his SD card, we simply copy though a PC - if unavailable, a later email series or more likely zshare-type dump series

2) Unhappily, there are still a very good number of large proprietary survey/mapping programs where the exe's are hard-coded to install on Storage (palaeolithic, but there it is). A number of large medical programs still do this (I suspect because the market demographic is so small, there is no incentive to recode). Using say, CECabs to try and alter install paths doesn't change the exe's. So I keep the crap in Storage to an absolute minimum to allow for this - most users won't have this problem, but then I fail to grasp why some people consume 70% of the Today screen real estate with a pretty single-day calendar !!
[XPERIA X1 ROM Development] gizmo1908:
thnx for the guide its awsome

i use vodafone nl rom and when i cook the rom it goes fine (vista ultimate 64b)

but when i flash the phone and i start it i follow the procedure for the screen and everything and after that it installs the rest but it keeps on "running autover.exe"

i hear a bleeb and then is does nothing anymore

am i doing something wrong??

sorry for my wors english
[XPERIA X1 ROM Development] Rudios:
OK,thanks

Then I will remove it too.

Still remains me some confusion.

If i export from the R2A010 Generic UK rom which is around 204 MB and after exporting start coocking without removing ANYTHING from ANY directory, I end up with a file around 176 MB which I find a little strange.

Is there an explanation for this?
[XPERIA X1 ROM Development] sve1313:
It is a very nice guide. I will try how it works at this time.

Thanks
[XPERIA X1 ROM Development] htainlin:
Well, original stock rom has different parts, "spl, main splash, sub splash, radio and os". We only need to edit "OS" and put it back to the rom so that the size will be smaller ofcourse.
[XPERIA X1 ROM Development] Rudios:
Ok, got it.

but what is the exact function of the Radio part that is installed on the device. I see various threads and posts about changing Radio's and which one is ok which isn't, but what does it exactly do?
[XPERIA X1 ROM Development] htainlin:
Radio rom is for your phone's radio operation system. It runs separately with your other pda functions. Therefore, you can flash it separately from PDA os.

It's all about how your smart phone deal with radio signal such as bands, lock or unlock radio network and 2 G, 3G etc... I think it also handles bluetooth and wifi too but I am not sure about it.

By upgrading radio rom, you can get a better signal or some extended features such as 850 MHz and so on.

I have no idea why they put radio stuffs in separate partition of the phone. What I think is to improve the stability and performance of the phone. Or they don't want people to hack the radio stuffs.

I hope it helps. :)
[XPERIA X1 ROM Development] Typako:
Well, I have found tones of useful info in this site and this post is def one of the best. Many thanks htainlin.

I am currently trying to apply your instructions on the latest official Greek ROM and have a couple of q's.

I see some warning messages during ROM extraction (see attachment). Does anybody know what are about? Can I safelly ignore them?

Which folders should I delete from SYS to get rid of SQLCE, so I can manually install newer version afterwards?

SQLCE

sqlCeMobile

sqlCeMobile_Lang_0408

SQM

Thanks once more to htainlin and this amazing site.
[XPERIA X1 ROM Development] htainlin:
1. I also did get those warnings when I cooked WWE rom but not as many as your Greece rom. But I think it's ok to ignore them. Kitchen programmer and great chefs like Jack and itje should know better about it.

2. For SQL, SQLCE, sqlCeMobile and sqlCeMobile_Lang_0408 should be removed I think. SQM (System Quality Metrics) is for customer feedback stuffs and you can not simply remove it according to some posts.
[XPERIA X1 ROM Development] Rudios:
I've tried to add some additional applications (youtube, totalcommander) and followed the steps above.

Folders are called PACKAGE_Kovsky_Youtube & Totalcommander, and also added the _0409 to the secondary folder.

But when I extract my cooked rom, I don't get the folders in my extracted OEM folder in my Kitchen.

I do see that there are some .dsm files on the newly created folders.

Am I forgetting some step??

Additional info.

This evening I've tried to flash my X1 with my own cooked rom with severa additional packages.

When the phone boots for the first time and runs the customization I see all the CAB files that I putted on the OEM directory, but none of the applications are installed after the reboot of the device. I don't receive an error what so ever.
[XPERIA X1 ROM Development] Typako:
Thanks again for the reply. My bad; of course SQM has nothing to do with SqlCe and I'll leave it there :confused:. I'll finish the job at the weekend and report back the results of my 1st custom ROM ever. Who knows? it might even be able to boot :)

If it works fine and after some testing, I think of sharing the resulting ROM with the Greek Xperia community, giving of course credits to kitchen authors, htainlin and this site. Is this OK with the rules?
[XPERIA X1 ROM Development] norti:
SQLCE is needed for system database operations, but you can safely remove sqlcemobile (both dirs). Removing sqm is a little tricky, but there is the answer on xda ;)
[XPERIA X1 ROM Development] Rudios:
Anybody got an idea what's causing my problem?
[XPERIA X1 ROM Development] htainlin:
Please check the followings:

1. Did you put your cab file name : CAB: \WINDOWS\xxx.CAB in config_AP.txt?

2. Did you change config_AP.txt's attribute back to read only?

3. The cab file name in config_AP.txt must be exactly the same with your cab file name in OEM folder.

4. Did you get any error when you build OS?

Personally I don't like putting cab files in the cooked rom because they use your storage space twice. Cab file + extracted files after installation will be occupied your storage.

You can use CAB to OEM package conversion program and put it in the OEM folder. You can get all the necessary information here . The tutorial may be outdated, someone please help if you have a better one.
[XPERIA X1 ROM Development] avenger2005:
This way is not for cooking apps into rom,besides optimizing rom,it 's to installl apps automatically after a hardset.

Is that right?
[XPERIA X1 ROM Development] mike-biker:
I progressed according to directions on the 1st page. Extracted Kovsky. But the OEM folder was not created. The folder ConfigAP does not exist as well.

This point 4. Wait until you see "Press Any Key to continue...." was not appeard. Only this one:
[XPERIA X1 ROM Development] vickybiswas:
Patience mate...

It will take sometime

Vicky Biswas
[XPERIA X1 ROM Development] jiwon21c:
sometimes, vaccine program could stop the program operation to generate OEM and SYS folder.
[XPERIA X1 ROM Development] hhx:
thank you for the guide .I can try it ,too:)
[XPERIA X1 ROM Development] vkrugl2000:
diffrent size original and now

Hi htainlin,

Thanks for your simple and a very clear scenario.

I'm try to cook rom a first time, so I found your tutorial is a very much useful to me, but I facing some interesting result, would you please look and give your suggestion, if possible.

I did as your scenario except one things!

1. I took original ROM, the size is 242Mb

2. Unpaked it as you scenario

3. Not modified anything

4. Pack it back

5. the size of a new RUU_Signed.nbh now is a 210Mb

Is it a kind of a normal behavior? What is the secret?
[XPERIA X1 ROM Development] hhx:
Thanks for your simple and a very clear scenario.

:D