yashsingh1/xdaforums huggingface dataset:
[Touch GSM ROM Development] Noonski:
Damn

Here's what i just did.

I edited a Registry setting using PHM reg edit.

It was the setting that tells what to run in the HTC home Pug in.

Will have to look at home but i think this registry setting is also present in a provxml file when cooking. After reset it froze on third Boot.

Going to try and reproduce this step now.

Not cooking issue but still important and interesting i thinks

It was HKLM\Software\HTC\HTCHome\Launcher\5\Path=

**** i could not reproduce it.

Second attempt, again it did not freeze.

So it looks freeze can still happen with new HTC home. I could try and replace the files with original DUO Touch dll and exe files that have 6 tab standard.

Maybe i need to restart faster after reg edit.
[Touch GSM ROM Development] mzmiric5:
Hey Noonski count me in.

Vista fix is working, and to save time to other people i uploaded edited batch folder(link in my sig).

Could we add Touch configuration to the Kitchen and include RUU too, coz Artemis RUU doesn't work.
[Touch GSM ROM Development] mzmiric5:
OK, ppl i found a software that enables you to remap all buttons(hardware and software buttons) on the phone. Could someone figure out how to use this to preconfigure the buttons in rom? I tried to make OEM but can't find what goes where in registry and it seams that the program needs to be loaded all the time.
[Touch GSM ROM Development] iii_see_tagpi_run_iii:
re

i guess ill try to do that... another noobie problem is, how do i enable the overwriting of files from the windows folder in an already working rom from a phone? the latest rom released would not enable this function.. thanks for the help.:D
[Touch GSM ROM Development] Noonski:
Clarify do you want to overwrite after flashing or before cooking?
[Touch GSM ROM Development] Noonski:
Yes that is normal.

50MB is the absolute minimum.

The bootloader has a specic amount of memory assigned for this.

So nothing you do in NBH file will change this.
[Touch GSM ROM Development] iii_see_tagpi_run_iii:
after flashing. im really sorry for all these questions.. atleast i now know several things important in cooking roms:)
[Touch GSM ROM Development] iii_see_tagpi_run_iii:
thanks so much.. i really thought this had something to do with the filesize.. would it be possible remove apps within the rom and thus have a filesize of less than 50mb but inorder to fill up the space would it be possible to just include a file so as it would make it still 50 or more? say id make a tone with a file size equivalent to the size needed to make 50 mb?
[Touch GSM ROM Development] iii_see_tagpi_run_iii:
ignore the query... it works i just added additional tones to complete 50 mb minimum... now i have the rom i really wanted.. thanks to this thread ive learned a lot.. now running on my own rom! i just wish i knew what to set before flashing inorder to enable overwriting after the flash..:D
[Touch GSM ROM Development] Noonski:
You can't overwrite these files then.

The files aren't actually in the Windows folder.

These are fake sort of.

The files are in the ROM part which you actually don't see or ever delete.

The files in windows are sort of links.

That's why when you would use initflashes.txt to copy a file to a different directory tey still are in Windows folder. But the file in the folder where you copied it over to can be deleted.

You can overwrite a file in windows folder but it will take up more space since you are actually adding it to the Ram part of the memory. The original file will still be in Rom only the reference will change. That's why modifying files allready present in the ROM/windows folder will slow down the device.

Yes they are the same size and amount but Opening Windows also means that all the changed references have to be read. And you get a very long opening time of the windows folder.

I hope all of this wasn't to confusing.

But i think a lot of people think that the files Cooked into windows are actual files.

But again i might be explaining it wrong.
[Touch GSM ROM Development] vippie:
First of all I want to thank Noonski for this thread. Trying to cook a little for fun and it's going really well because of the info in here.

Got some questions:

- I'm a bit confused about the XIP section of the rom. I understand it's like the language independent core of the ROM. Is the OS version inside the XIP? Is it possible to take the XIP from another elf rom to update the OS version?

- Did someone find a tutorial on how to change version numbers like the ROM version?
[Touch GSM ROM Development] Noonski:
Yeah i know it's poddible to use a different XIP.

Some do this when using a Artemis Rom to port it to Elf.

Haven't done this but i'm pretty sure there's a tutorial some where (ELF WIKI Extract ROM is only a part of it)

I haven't got the registry keys here. But you can start in the OEMVersion folder. Open the XML file.

Here's a Vanilla Based on 2.2 os 5.2.1933

You can extract the Rom and recook it.

4MB PP

It's 50.1 MB 62.63 Storage It's Nice and Neat.Everything not in it can be found in repository.

(The only thing i forgot is to remove the ZIP link)
[Touch GSM ROM Development] vippie:
Thanks.... will use that one as a basis!
[Touch GSM ROM Development] iii_see_tagpi_run_iii:
help pls?

how do i install those oem applications youve posted about some htc duo applications? at which part of cooking must they be added? are there things i need to know first and not just be adding those files on the sys/oem folder prior to cooking? ive seen htc album working from the cube and id like to make one also myself, i plan to use the older versions of rom as base and not the newly released rom (2.20.707).. and again, thank you for all those things you have shared with us.:o
[Touch GSM ROM Development] pkoper:
The ROM version number ( that what is displayed ) can be changed in the default.hv file ( convert to .rgu and back when finished).
[Touch GSM ROM Development] Xtriny:
You mean OS version? Rom Version can be changed in OEMVersion folder. Simply open .xml file in Notepad and you can change it, but changing OS version only with ovewrite values in .hv file isnt fair for other users.
[Touch GSM ROM Development] tschan:
The guide is only cover extract and customize ROM. What about next step, build ROM after customized? Can anyone provide us the guide?
[Touch GSM ROM Development] crazy_m:
Open OS.nb file with Hex editor (I use HxD), goto 37b55A (default offset), and :

for 4MB put 10

for 6MB put 18

for 8MB put 20

Trick is, 10(hex) is 16(dec) so 16/4=4, 18(hex) is 24(dec) so 24/4=6, 20(hex) is 32(dec) so 32/4=8 ...

So these hex numbers,converted to decimal, divided with 4 gives you a size of page pool in MB. :-D

I have tried this with my own cooked ROM (thanks to Noonski and people in this thread) and it's working perfectly ...

Best
[Touch GSM ROM Development] Xtriny:
I tried it in "old" 2.20 ROM, and it didnt work. After flash I got about 26MB RAM, but after first softreset it goes back - free RAM is only 20-21MB. Try it ;)

Btw, we have new 2.20 ROM version, with known pagepool values, so it doesnt matter yet
[Touch GSM ROM Development] Aspirina750:
Noob question :)

First, I just extracted and built a new rom, everything went well, so thanks for all this guides and tips :)!!!

Now, I have a doubt, I tried to cook a new rom adding a package, the shutXP one. When I built the OS it gave an error, that

PowerOfWarning.exe was already there, so I went to OEM/OEMAPPS and deleted the PowerOffWarning.exe over there, is that correct? Should I do anything else?

Thanks!!!
[Touch GSM ROM Development] Xtriny:
No, you're right. You have to run buildOS and wait, if it will show error. If not, it is ok. If so, you have to delete file in OEMAPPS (or anywhere), but not in your new OEM Package. You probably use Noonski's shutXP, which replace original PowerOff.

In the attachments you can get shutXP, which doesnt replace original PowerOff
[Touch GSM ROM Development] Aspirina750:
Yup, got the error, so I deleted the poweroffwarning from the OEMAPPS and built the os.

Got something strange, this new ROM with the shutXP is the same size as the one with the original poweroffwarning. Weird:confused: :confused:

I'm gonna dump the new rom and check the size of the poweroffwarning.

Thanks!!!

BTW, I based this rom on the Spanish 2.20 ESN and changed the pagepool from 20 to 10, is that correct or it's something else?

Thanks!!!
[Touch GSM ROM Development] Xtriny:
Forgot anything about size with or without. You can add 5 new OEM packages and the size will be the same, or you can add only 1 and it can be bigger or smaller - forgot it - flash it ;)

And that value about pagepool will not work - you can flash it, but you will get free RAM like without any changes. Like Noonski said - there are some errors in this ROM - the pagepool size cannot be changed in this version
[Touch GSM ROM Development] Aspirina750:
Doing a backup of my system and I'll flash, crossing my fingers ;)
[Touch GSM ROM Development] Xtriny:
me to..... ;)
[Touch GSM ROM Development] Aspirina750:
Flashed and working so far ;)

Thanks!!!

Now I only need to learn how to clean up a ROM!!!

Any guides around ;)

Thanks!
[Touch GSM ROM Development] Xtriny:
Congratulations, man

I think you can find some guide, but the best thing is to try. If you will delete anything from ROM, in the same folder will be .rgu file. Open it in Notepad, find that app you've just deleted and delete it from rgu file too - but be very, very carefull here.

You will have to try it. You will get a lot of errors, but at the end you will get your own ROM and that's it.
[Touch GSM ROM Development] Aspirina750:
Thanks!

Will try and report back ;)

Report back all my errors ;) lol :D

Edit:

BTW in the optimise option in the kitchen what folders should I put in the original folder?

Thanks!
[Touch GSM ROM Development] crazy_m:
I used RUU_Elfin_DOPODASIA_WWE_2.20.707.1B_4.1.13.51_03.07.90_BLUE_Ship_Reduced.exe to cook and it's working, even when I read this value directly from flash, it doesn't change the size.
[Touch GSM ROM Development] pkoper:
1933 midlet issue

Trying to cook my own rom at the moment and ran into the "java not working" issue.

I tried the 2.20 "vanilla" ROM posted by Noonski as well as Xtriny's V3.

Is this some issue with this particular build? Everything else works, just not the java bit.

Thanks
[Touch GSM ROM Development] Xtriny:
Hi,

I got the same problem.You have to replace it with another MidletManager - maybe Noon have deleted anything of it. I've replaced it, copy backn some important files from original ROM and it works now
[Touch GSM ROM Development] pkoper:
Which are the important files?
[Touch GSM ROM Development] Xtriny:
Put back all folders from OEMAPPS from original ROM. Dont know, which is important for midlet manager, but it works for me. You have to take a look in rgu file in OEMAPPS and serch for midlet and java. Compare it with rgu from original. I cant remember it.
[Touch GSM ROM Development] pkoper:
Will try this evening. Thanks!
[Touch GSM ROM Development] Aspirina750:
Back with more questions ;)

I tried to create a package with the Touch calculator skin by nanoflower.

My problem was that there where no registry entries to put into the rgu, so I created a blank one and added a blank line. Is that correct?

Then I used the BuildDSM and got the dsm file.

I'm uploading the package I created, could you guys check it?

Thanks!

Edit: New package added in another post
[Touch GSM ROM Development] Xtriny:
It is wrong. you have to install your app to the device like cab, and export registry entries. This entries you have to put to rgu file.
[Touch GSM ROM Development] Aspirina750:
Ok, but the entries should show on the XML file inside the cab no? And how do I check what entries changed? Any recommendations?

Thanks!
[Touch GSM ROM Development] Xtriny:
Yes, registry entries is provided in xml file. You can "translate" them to rgu file, or export entries with CeRegEditor directly from device and copy them to rgu file. You have to try this and learn how to do this.
[Touch GSM ROM Development] Aspirina750:
The problem with this cab is that there were noreg entries in the xml ;)

What should I do?
[Touch GSM ROM Development] Xtriny:
If there are no registry entries, try to cook it without any rgu file, and if it will not eork, do what I said - install cab and export entries from the device. That's it.

Cheers
[Touch GSM ROM Development] Aspirina750:
Done!

It only found this:

[HKEY_CURRENT_USER\Software\SpbCalcTemp]

"FileType"="gif"

So I added it to the rgu, added the regedit 4, and built it with the BuildDSM.

lol, Thanks again!
[Touch GSM ROM Development] Noonski:
Almost perfect.

But add this key to to be on the safe side

[HKEY_CURRENT_USER\Software\Spb Software House\Spb Calculator]

"FileType"="gif"

And the RGU was Saved as ANSI. ussually that results in hive creation errors with me. So save as Unicode.

And the Graphics aren't actually real Gif Files.

They are PNG files with Gif extension.

When you build the DSM file always remove Initflashes.txt and Option.xml first.

As these won't go into the Rom.

Good Job Grasshopper.

You now know the Way Of the Crouching DSM ;)
[Touch GSM ROM Development] Xtriny:
Noon, he's right with file type. I have two Spb calc OEM packages with png or gif.
[Touch GSM ROM Development] Noonski:
I know but the Gif has a PNG file heaader (not that i checked)

But the simplest test is opening Gif file in FireWorks.

It will give an error about the filetype being incorrect.

Not a biggy.

It's a very silly workaround. Somtimes no matter what you do when you save a gif file the quality gets awfull anyway. So you save the high quality PNG file with a gif extension. It works on a lot of ocasions.
[Touch GSM ROM Development] Noonski:
Some files get compressed some allready are.

The file size in Windows Folder might be the same as OG. But the file in actuall ROM is compressed.
[Touch GSM ROM Development] Aspirina750:
Thanks! Well, this supposely was an easy one:p , I'll start working on other useful apps I use:rolleyes:

Now, one thing I was thinking, would it be possible to create a master list of things that can be removed safely from the ROM?

Thanks again!

Edit:

Noob ataaaaaack ;)

1 more question, if I remove something from the OEM/OEMAPPS folder for example the 1-nature_15fps.mp4 I check the RGU to see if there's any associated registry entry or something else no? If there was I should grab the folder and rebuild the DSM. Is that correct? If there is a registry entry deleting the entry and the file should do the work no?

Thanks!
[Touch GSM ROM Development] pkoper:
it could be not fair, because you could change it to whatever you want. But most people would probably just like to see their handles somewhere. Don't think many would fake a version.
[Touch GSM ROM Development] iii_see_tagpi_run_iii:
rgu/reg?

i kinda cooked a rom and everything goes sweet from the cooking till flashing until its already working when installed on my touch but im having difficulty figuring or looking for anything which may point out as to how i can enable actions where i want to delete some apps on the /widows/startup folder but an error always pops up. ive seen it enabled with no problems on those other cooked roms... any help pls?:( :confused: :
[Touch GSM ROM Development] Noonski:
The problem when you want to recreate OEM DSM is that the module folders (folders called like the files inside them) Won't be included into the buildDSM. Resulting still in a mess.

Don't worry to much about missing files from OEM folders.
[Touch GSM ROM Development] Noonski:
Very Unclear Whta you mean.
[Touch GSM ROM Development] iii_see_tagpi_run_iii:
ooops sorry i just wanted to ask if there is something i need to edit within the rom or sys folder before cooking so that when its already finished and flashed, it would be possible to delete some application shortcut located at the startup folder.
[Touch GSM ROM Development] vippie:
You can prevent the rom from copying links to the startup folder in initflashfiles.dat.
[Touch GSM ROM Development] iii_see_tagpi_run_iii:
thanks

ummm may i ask what folder is this file located? thanks
[Touch GSM ROM Development] zeflash:
Not sure if this has been reported before or not, but it got me confused the first fiew times I cooked my roms (just starting) with the hypercore kitchen:

In the folder Hypercore/tools/RUU, after the first rom has been flash I believe the kitchen renamed the previous ROM to old_ruu_signed.nb, and puts the new one as ruu_signed.nb.

Well, on my OS, Elf_RUU.exe picks up the old one all the time!

I was wondering what was going on for a while, my changes not being there until I flashed it again ...

IF that can save some trouble ...
[Touch GSM ROM Development] Noonski:
the easy way would be to just delete the files from the rom indeed.

But the correct way would be to edit initflashe.dat in OEM_LANG to.

You need to remove the lines containing your removed files.

But after editing be sure to open the .dat file in winhex and remove the first to Bytes (4 chars) and resave.

Some good Text Editors don't have this issue. but normal notepad does.
[Touch GSM ROM Development] Pharaohnough:
I think I may have a similar issue... Once I've created a ROM, how do I "clean" my Hypercore-based kitchen so I can create other ROMs? I've had the problem that a new ROM will still be flashed to my device as the previous one I was working on... Any help will be very much appreciated.

The way I'm doing it now is that I delete and entirely re-create the C:\Core directory structure when I start cooking a new ROM

I'm very close to publishing my first ROM to XDA. This forum is absolutely wonderful and the support is admirable. I am trying to master my ROM so that when I do upload it, the quality really is up to par with the rest of the stuff being produced by the XDA community...
[Touch GSM ROM Development] Aspirina750:
Hi guys! I'm back with more OEM Packages problems ;)

I built an OEM package from a HTC Task Manager cab, but when I try to build the OS BuildOS guives me an HV error????

Any ideas?

BTW, Could it be possible to have the original cab from the posted packages, so we can compare and learn a bit from there?

Thanks!!!
[Touch GSM ROM Development] Xtriny:
If it gives hv error, you have something wrong in rgu file. Why dont you use existing OEM packages, and waste your time with making anything, what allready exist? You can fin all-in-one package here on xda

for example here: http://rapidshare.com/files/65449450/OEM_Pack_v1.2.zip.html
[Touch GSM ROM Development] Aspirina750:
Hehehhe, I'm just looking for some practice, I actually downloaded the OEM pack from the Dev forum, I don't know if it's the same one from your link, but I'll DL that too. Anyway, I'm just trying to learn it the hard way ;)

Cheers!
[Touch GSM ROM Development] crazy_m:
Can someone tell me how to integrate HTC Home Plug found here: ftp://ftp.xda-developers.com/Uploads/Elf/Cooking Class/OEM Packages into ROM?

When I put it in the ROM, and flash ROM, HTC Home wont show up, just blank space on it's place at home screen.

And if someone have working HTC Home Plug OEM (backlight fix, standard icons, 6 tab, tab settings ...) please, share it. I've tried every package found here on forum and none of them are not working (backlight error, missing weather icons, no tab settings ...).

Thanks.
[Touch GSM ROM Development] Noonski:
Did you also add package for Clock Graphics?

Look for Reg setting in rgu file

"tabsettings"="1,3,4"

And change to

"tabsettings"="1,2,3,4,5,6"

Backlight is working as it uses original dll for that function.
[Touch GSM ROM Development] Noonski:
RGU wasn't saved as Unicode in 2.0 version
[Touch GSM ROM Development] crazy_m:
Oh my God, I can't believe I missed that. Thank you Noonski.
[Touch GSM ROM Development] Pharaohnough:
Any help? Anyone?
[Touch GSM ROM Development] evermick:
Hey Xtriny, which one is new 2.20ROM? Noon's one?

http://rapidshare.com/files/68804210/RUU_signed.zip <==?
[Touch GSM ROM Development] vippie:
I'm doing the same thing. It's faster than deleting files.
[Touch GSM ROM Development] totalcmdext:
Hi,

I have the following problem.

When i try to put a new OEM packages or change an existing the BuldOS.exe finished without any problem and always crash the BuildIMG.exe.

Because i use CreateOS.bat the new OS.nb file always create even if the crash the BuildIMG.exe

Please help me because i cannot make any ROM!!!!
[Touch GSM ROM Development] baituo:
You can check the log file inside temp folder.

I encountered this error due to rgu errors.
[Touch GSM ROM Development] pkoper:
missing rgu files

PKG tool is reporting several rgu files missing. The rom does not recompile correctly, ie hangs on first bootscreen.

Because this is a working rom the registry changes would have had to be

done elsewhere, I figured.

Other roms I looked at do not have the rgu file in question, but PKG tool runs fine and the rom works.

Is there something simple I am missing?
[Touch GSM ROM Development] Noonski:
I always use numbering codes in all my modified OEM packages.

And try to break apart all graphical elements into seprate OEM packs.

So when i start a new ROM i start clean and copy all my modified Old OEM packs into new kitchen.

Then i start removing doubles.
[Touch GSM ROM Development] Noonski:
Do you have a package to check and are you on vista?
[Touch GSM ROM Development] Noonski:
Which Rom are you using as a Base?

And which RGU is missing so whe can check what it's for.

Is the RGU in the missing folder?

And when you just flash the Rom is the RGU in the windows folder?
[Touch GSM ROM Development] Noonski:
That alone says it all.

When you extract an allready custom cooked rom the DSM files don't always get repopulated.

In a way that doesn't matter for flasher.

the DSM tells BUILDOS where and wich files are in the ROM and where to put them.

Not rebuilding the DSM files will safe some files in Windows folder.

I'm trying to rebuild my DSM files as much as posible

(i take out iniyflashes.txt and option.xml first, Then empty the information in the DSM file, then drop the Package folder onto BUILDSM.exe)

But it becomes a problem because you can't do this with Package folders that contain Modules (Folders with the name of the files inside them, ussually dll or exe files)

So you miss out on some important registry settings. It's best to work from a stock base ar the vanilla i made specificly to not get missing files after re extracting.

Or you can ask Swiftblade to rebuild the DSM files.

But it's best to get in the dirty and start from scratch and own you ROM.

Search for packages and make your own.

So the missing files are from added or modified Packages for his rom.
[Touch GSM ROM Development] evermick:
Advise please... anyone?
[Touch GSM ROM Development] Noonski:
Jep My version is the newest one.

But it's based on Xtriny's full version but i don't believe he actually posted it to a full thread yet. it's os 5.2.1933.

Big difference is that HTC now has found new ways to force some stuff starting up on us without using the StartUp folder. In a way it's safer also.
[Touch GSM ROM Development] tiggerbcn:
Has anybody put in a rom the program PocketCm Keyboard?, I have tried to put it in the rom that I am cooking but there is no way, not if it is necessary to do any modification in the registry that it is not known since in the alone cab of installation there is a key of registry that is this:

[HKEY_CURRENT_USER\ControlPanel\Sip]

"SuggAutoCorr"=dword:0

and putting it it does not leave in the SIP to be able to choose this keyboard.

Thank you
[Touch GSM ROM Development] pkoper:
Thats ok. The Vanilla works fine for me, I will stick with that one.

Can you recommend some reading on porting to another language? As the base stays the same, it would just be some files that need replacing??????
[Touch GSM ROM Development] pkoper:
Is this something one would do everytime when adding something to the rom? Even with ready made downloaded packages?

thanks
[Touch GSM ROM Development] evermick:
cool thanks