Can i edit an existing rom? - 8125, K-JAM, P4300, MDA Vario General

Firstly apologies if this has already been asked in another thread, if so please point me in the right direction. However could anybody tell me if there is a way to edit an exisiting rom and remove programs and operator customisations? In other words to break it down into the basic components before cooking it? Any help would be appreciated. p.s im trying to edit a wm5 rom, and cant find a vanilla\clean one anywhere
Thanks
Gumibear

Yes.
That's what people are talking about when you see threads with the words "cook" and "kitchen". A kitchen ROM is one that has been extracted into several folders and usually also comes with the tools you need to rebuild it so you can flash it. You "cook" your own ROM by customizing it to your liking - removing what you don't want, adding what you do. Removing applications is as simple as deleting the folder for the app. There are lots of tutorials out there. Look for sticky threads in the Upgrading or Windows Mobile 6 sections with the words "kitchen" in it and you should be able to find everything you need.
For editing an existing ROM, you will probably need something like Hypercore. It has tools to dump an existing ROM into a workable kitchen. It has batch files that almost completely automate the process and makes it very easy to do. I highly recommend it.

Related

making roms

Hello All,
Firstly, I would like to say how great this website is and tip my hat off to all the people involved in maintaining this site.
I am very new to the whole XDA modification scene and have a ton of newbie questions. I know some of these questions have been asked before; however I still have not grasped the concepts fully. I have tried to restate the questions asked before so that I (and hopefully other newbie’s ) can fully understand how to modify XDA’s.
Any help anyone can provide will be greatly appreciated.
So here goes the questions:
When creating a customized ROM (using mkrom) my understanding is that one has re-create the initobj.txt and the Default.reg. Is it possible just to install all the applications you want, and then download the initobj.txt and the Default.reg and place them in the cfg directory for the custom ROM?
If this does not work, how does one know what to edit in these files?
When mkrom request a Rom image, is it requesting the backup ROM IMAGE? Will any image do?
When backing up a ROM, what option does one have to select to backup the operating system, settings and programs inside the ROM? Does CE do all of this?
What is CE, Boot, GSM stand for in the boot menu?
If one wants to just create a new boot image, what is the simplest way? Does one have to create a whole new ROM?
If one wants to just have the unlocking software, what is the simplest way? Does one have to create a whole new ROM?
When creating a Rom using RomKitchen, it asks you add Add your own ROM files? Is this your backup rom?
In RomKitchen one of the readme files asks for:
bootimage.bmp,_initobj.txt,_initdb.ini,_default.reg,xipchain
Is the default.reg and the initobj.txt in this directory have to be pre altered for the new programs one wants in the Rom like the way the mkrom wants them? Does the setup program create them for you?
Is the bootloader.nb0 file specific to the boot loader you have?
Very confused what is exactly needed in the /CFG directory.
In the CFG directory do you place your backup Rom dump?
Some ideas.
The most important issue is to know that you have to put the files you want to add int the folder files2 (up to 5 MB minus the amount in the folder directory) or in files1 (up to 900 KB).
The key is to manage default.reg (the registry of windows CE), you have to register the .exe's and dll's you want to use. It can be very useful for you the ssnap.exe (to show registry modifications by autoinstallabe programs) and a registry editor.
In initobj.txt, there are only links, but you should put links if you want to access to your programs in Start Menu-> Programs or in the Start Menu.
I suggest you to make different posts for each question, it would make easier to answer.
Regards.

Remove manila files!!!

Hi All,
I need your help, I'm using pcarvalho wm6.5 for polaris, and I like the rom too much, but I don't like the Manila screen, I need to remove all files related to manila from storage memory, so how to do it...
And please don't tell me that I need to remove from the ROM as I don't know yet how to cook my ROM, and I like the cooked rom tweaks,,,,
Please help!!!!!!
Thnx
files in rom can not be removed. there would be no point in being able to have a hard reset function to restore the rom to it's original state. HTC ROM EDITOR may work for your rom... maybe. but you need the nbf file on your pc, then you need to take the .hv files, convert them to reg or rgu and edit it so that manila wont try to start... and so on...
you can also overwrite all of the files with blank ones, but then you are just wasting space, slowing down your device and making things not work. basically, wasting time.
You are better off learning how to cook. because it is not so simple to just take out the files. there is a lot more to making a rom work. very detail oriented... and for someone who does not have the patience to learn to do it right, you will just [email protected](+ $#!+ up.
ask your favorite rom cook to make one without the programs you dont need... it would help to leave milk and cookies.
поонимаеш?
S.V.I said:
files in rom can not be removed. there would be no point in being able to have a hard reset function to restore the rom to it's original state. HTC ROM EDITOR may work for your rom... maybe. but you need the nbf file on your pc, then you need to take the .hv files, convert them to reg or rgu and edit it so that manila wont try to start... and so on...
you can also overwrite all of the files with blank ones, but then you are just wasting space, slowing down your device and making things not work. basically, wasting time.
You are better off learning how to cook. because it is not so simple to just take out the files. there is a lot more to making a rom work. very detail oriented... and for someone who does not have the patience to learn to do it right, you will just [email protected](+ $#!+ up.
ask your favorite rom cook to make one without the programs you dont need... it would help to leave milk and cookies.
поонимаеш?
Click to expand...
Click to collapse
I hate manila,,,,it's enough for me,,, i need to learn cooking now...
Thnx, balshoi spaceba

How-To's For Nubs

Hi guys, this is my first windows mobile ever, and i've come on here and looked at all these threads for around 2 weeks now and id really like to start doing things!
I've looked at the *Leo hints and tips* and downloaded Resco, so i now know how to edit values and things in the root folder, but what i'm unsure about, and i'm sure all the new people to windows phones are to, is where to start?
I mean the phone reads .cab files, but say I download a .cab file, do i download it on my pc and put it on the phone, if so where to? After that do i have to click it, run it, what? Do i download it off my hd2 and it'll run? which I have done, but after installation, where is it stored if i want to open the file? What happens if i install a .cab and don't like it? Where is it for me to delete and how do I go about this? how do I uninstall things i've installed?
What im asking is, if there is a starting tutorial for these things, can it be a sticky because there are hundreds of threads on here and the search tool and my searching isn't finding what I really want...essentially...'HD2 for dummies...' guide.
sorry if this has been said before, or i'm expected to know these things, but if someone could point me and many others in a direction, or a sticky could be made, then id be one happy welsh man!
Cheers guys.
The simple answer to your question about cab files is that they're installers, just like you have on your PC. When it's installed, you can (if you wish) delete the cab file. (I keep all mine so if I upgrade my ROM then I can install things again without having to find the cab files all over again.) There's also "remove programs" in the windows settings folder, and you can uninstall apps from there.
Think of it more like a PC than a phone and you'll get on with it a lot easier.
Also, if it's windows you want help with then there's dedicated windows folders on this forum. Windows isn't specific to the HD2, so you will usually get better help in the more specific areas.
Other than that, just play with it and have fun.
Hope this helps
To install a cab you just need to copy or download it to your phone and then click on it. An installation wizard will then appear to take you through the installation process.
right okay, so the .cab i can delete as if it was a .exe file, but where do i save it on the phone for it to run, which folder?
When using file explorer and tweaking and installing .cabs, thats windows though i pressume? Not htc...
matt_attack_2k1 said:
right okay, so the .cab i can delete as if it was a .exe file, but where do i save it on the phone for it to run, which folder?
When using file explorer and tweaking and installing .cabs, thats windows though i pressume? Not htc...
Click to expand...
Click to collapse
You can run the cab file from anywhere you like on the phone. If you're planning on deleting them after installing it really doesn't matter. Like I said, I keep my cabs (and would recommend it too!), so I have an "installers" folder, with sub-folders for different types of cab files.
Installers and tweaks are not specific to either windows or HTC - they could be either or both.
I personally keep all my cabs at Storage Card\Backup\CABs I transfer them to there from my PC, run them from there, save them there.
You can put them in any folder you like and run them from anywhere you like. There are no rules on where cab files need to be.
right okay, so i install a .cab file, say for example ive installed a new unlock slider, i change my mind and don't want that one anymore i would like the old one back, what do I do?
matt_attack_2k1 said:
right okay, so i install a .cab file, say for example ive installed a new unlock slider, i change my mind and don't want that one anymore i would like the old one back, what do I do?
Click to expand...
Click to collapse
In that specific example, you'd have to check the thread where you got the new slider from. That's overwritten original files so obviously an uninstall doesn't recreate them. I tend not to install theme mods that can't be rolled back, purely because of this!
I've tried some alternative lockscreens before, and they definitely had the original files in a cab so you could undo it.
right okay. and for example if i was to install, i don't know, an additional button up onto the top bar by the start menu, how would I go about deleting?
Back to my OP, why is there no tutorial or hot-tips threads made as a sticky for people new to this stuff like I am?

Dump a custom ROM

Is it possibile? I heared that custom ROM are protected...is it?
So it's not possible to havea dump of a custom ROM starting from a nbh file?
modules are protected, you cant use them. But you can use anything else. Look for HTC ROM Image editor. That will be the easiest way to extract files from a cooked ROM.
I tried just now...after loading the nbh file...nothing...it seems to be nothing, even with a not cooked ROM (a stock one)
You tried what?
Protection depends on the cooking method. ROMs built with old tools could be dumped no problem, but ROMs cooked with most new tools can not be fully dumped to a rebuildable state. The real question is, what exactly are you trying to get from the dump? If you just want a few files, that should be easy enough. If you want complete packages, that's trickier.
I tried to use HTC ROM Image editor, but it seems not work...
I need a complete dump because I'm tired to reinstall everytime my favorite apps and settings after a reset, so I would like to remove programs I do not use and add my favorite ones!
The ROM editor should work with any ROM for HTC devices. I think you are out of luck with getting a full dump from a custom. If I were you, I would just learn to cook your own.
Eheh...may I could be able to do a very mine ROM, but for some features...mmm...too much time to learn too much things...
Lazy me!!!
Talk to your rom chef, and see if they will share their kitchen for personal use. Which rom is it?
Da_G put together a kitchen a while ago called Dump Kitchen (I think). There's a thread in the Raphael rom forum. It lets you dump and rebuild roms, and i you know what you're doing, it's pretty easy to add apps and a little trickier to remove them (might as well just cook your own at that point). Just search for it; I think you can re-cook roms built with newer tools.
Farmer Ted said:
Da_G put together a kitchen a while ago called Dump Kitchen (I think). There's a thread in the Raphael rom forum. It lets you dump and rebuild roms, and i you know what you're doing, it's pretty easy to add apps and a little trickier to remove them (might as well just cook your own at that point). Just search for it; I think you can re-cook roms built with newer tools.
Click to expand...
Click to collapse
I doubt you would be able to use the modules, but I could be wrong.
Here's the link. I'm pretty sure it works with newer roms.
The bottom line is that any rom built with platformrebuilder (EVK etc) cannot be dumped into complete packages. Platformrebuilder deletes the dsm files which associates the files into packages and it also deletes the rgu/reg files which are the registry entries for each package. Not to mention it also deletes the last s00? file in modules making modules impossible to rebuild. According to bepe the only function of the last s00? file in a module is to make it rebuildable so it's practically useless to the module.
Bepe designed platformrebuilder this way not to make roms "protected", but to save space in the rom and increase module speed (by decreasing module size). There's no way around it.
Edit: it appears the tool Farmer Ted posted is used to dump a rom, add files/reg entries to it, then rebuild a flashable nbh.
So it means...it's impossibile to do what I need...yuhuuu...
zat81 said:
So it means...it's impossibile to do what I need...yuhuuu...
Click to expand...
Click to collapse
Just try the micro-kitchen. You can dump roms, but all you get is the raw dump. Removing apps will be tricky-you will need to know all the files that have to be pulled out. But, it's pretty easy to edit .hv files, so you can remove reg keys or change them however you wish. You can also add anything you want, it's not that hard to do.
I think I'm going to start learning something usefull..."cook for dummies"...eheh...I've read some guide, tutorials and...maybe...could be not so difficult as I thought...I've just to start from a good base kitchen!
A good place to start....
http://forum.xda-developers.com/showthread.php?t=669414
zat81 said:
I think I'm going to start learning something usefull..."cook for dummies"...eheh...I've read some guide, tutorials and...maybe...could be not so difficult as I thought...I've just to start from a good base kitchen!
Click to expand...
Click to collapse
zat81 said:
So it means...it's impossibile to do what I need...yuhuuu...
Click to expand...
Click to collapse
Yes thats what we are trying to tell you..lol
yep in newer Kitchens roms and dumps.. there isnt a way to make what you want... you must to talk to your chef and ask him for special rom for you with that info... and or apps i didi many of them to ppl that like sthe version... but sometimes vanilla or with PIM info... if he sahres with you the kitchen... you will be so lucky, just load the rom and deselect the apps you dont want then add yours and your info, but that you must to learn how... to add that... you must to learn and read is not so simple
Just a small note to add to this:
The last S00X section in a module is the .CRELOC section. This is used to relocate the module on-device (not used to relocate the module on the PC, in the kitchen, where we do it prior to flashing)
Not having the last s00x means that you wouldn't be able to imageupdate that ROM (because the on-device read/write IMGFS driver would not be able to re-base the module since .CRELOC is missing)
But you can certainly still re-base that module on the PC side prior to rebuilding a ROM. So that function in itself won't preclude you from porting modules from one device to another
Dumping a Rom with the Vistang-Kitchen works for beginners in cooking very simple:
http://forum.xda-developers.com/showpost.php?p=6019219&postcount=499

Learning to cook a rom

I've been reading up on cooking ROM's and with the help of leeston i managed to create a basic ROM earlier in the week. After searching for guides / tutorials on this stuff im really not that much the wiser, i cant seem to find anything that explains it well enough, there always missing details. The actual cooking process seems fairly straightforward but its those extra bits im missing ie
how do i add my own packages - am i right in just copying them to the SYS folder or is there more to it ?
how do i edit the registry - I know how to edit the registry once the ROM is loaded onto my phone but how do i do it from the ROM without the phone ?
how do i add things to the start menu - When i add packages to the SYS folder and load the ROM into my phone the shortcuts dont seem to be in my start menu
how do i add sense - i've loaded the packages but it never starts and theres no sense option in today settings
im new to this so as you'd imagine the questions i have are endless ...
Im sure most of this info is on XDA already somewhere but i just cant find it, maybe im searching for the wrong term or something.
Any help from the chef's would be great, perhaps you could provide links to tutorials / info you've used when learning to cook. Im sure this stuff would be useful to everyone and may even encourage more to have a go at cooking .
drkdeath5000 said:
1.how do i add my own packages - am i right in just copying them to the SYS folder or is there more to it ?
2.how do i edit the registry - I know how to edit the registry once the ROM is loaded onto my phone but how do i do it from the ROM without the phone ?
3.how do i add things to the start menu - When i add packages to the SYS folder and load the ROM into my phone the shortcuts dont seem to be in my start menu
4.how do i add sense - i've loaded the packages but it never starts and theres no sense option in today settings
.
Click to expand...
Click to collapse
I am still new to cooking but I'll tell you what i believe to be correct.
1.Yes. To add a package to a rom you put the package into the SYS folder.
However be aware that the kitchen used for the TG01 cannot handle EXT (visual) packages, only OEM (old) packages can be used. Use Totalfires package converter to convert between the 2 types.
The above info is not strictly true but is what you need to know when cooking for the TG and i don't have the time or knowledge to write a complete tutorial.
2. Editing the registry is all to do with .RGU files, you can create a package with a new one in or edit the existing ones within the packages in the SYS folder. You can edit them with notepad but i suggest using Notepad2.
Once you open an .RGU file you should recognize the reg key text in the file and edit it accordingly. As far as i am aware the file MUST have REGEDIT4 in the first line and an empty line at the bottom in order to work. Another way is to edit the regkey on your device then export the regkey using resco or something similar, then rename the resulting file from .reg to .rgu then open it in note pad and copy and paste it into another packages .rgu file, or create a custom package for that .rgu file.
The registry can also be modified using cab files during autorun, but this can be a little messy as the cab can be uninstalled by the end user causing problems.
3. To do this you need to edit the initflashs.txt file within the . This can be done manually or with one of the many package tools available on this site. The one i use is below, it does the hardwork for you, you click a few options and it edits the required files as needed.
4. Sense is a funny one. You should just need to add all the required packages to the SYS folder and away it goes. Unfortunately this is rarely the case. It should just a case of making sure all the sense packages are there, including its many dependencies. Sense is one of my weaker areas so maybe some one else has better advice.
Hope this is useful.
do you have a loooong far way, but read the forumposts an try, try and shortPin and try. that was my way, or is my way. i have don´t helping, all found with google and in xda forum.
unfortunately, my English knowledge is terrible. otherwise I would write more.
best to dump a officiels ROM or miROM5 , then you have an example
related post here
http://forum.xda-developers.com/showthread.php?t=750261
PC Software Reg-editor
http://ceregeditor.mdsoft.pl/index.php?id=1〈=en
CAB to OEM
http://forum.xda-developers.com/showpost.php?p=3942000&postcount=1
EXT to OEM
http://www.ppckitchen.org/forums/re...e666.ppckitchen.org/Tools/EXT%20to%20PPCk.exe
All folder to cooking need a .dsm (and/or) .rgu file
RGU name Generator (such as Reg- file) , dsm become automatically
http://www.famkruithof.net/uuid/uuidgen (Fetch UUIDs of another type to Version 4)
do you have a loooong far way!
... Or make a good donation to nokser or ffboy, they teach you
Hi my friend, I have a problem to cook a ROM with cab which required a reboot or witch have a information message ( SWYPE or GPSMOdDriver for example)
Do you know a solution for this please?
Thanks in advance.
Thanks for the info leeston and miro ;-). I havent had time to try it yet but will be over weekend and im almost sure now i know where to find the registry files ill be able to cook something decent up since that was my main problem. Thanks again for the help.
EVEALEX62 said:
Hi my friend, I have a problem to cook a ROM with cab which required a reboot or witch have a information message ( SWYPE or GPSMOdDriver for example)
Do you know a solution for this please?
Thanks in advance.
Click to expand...
Click to collapse
I may be wrong but when the cab files are first installed doesnt it automatically reboot ? If not you can always do a manual reboot ;-).
I've tried everything to get sense working but im just having no luck ... copied the packages to the sys folder, flashes fine, boots fine but no sense and now theres no setting shortcut in the start menu ?
Could i ask for the exact procedure for installing sense please ? Im getting my packages from here but replacing the 2017 home with 2016. Could i perhaps be missing something ?
Thanks again
drkdeath5000 said:
I may be wrong but when the cab files are first installed doesnt it automatically reboot ? If not you can always do a manual reboot ;-).
Click to expand...
Click to collapse
I have try to delete the line "Reboot" after autocabinstall but nothing change the phone always reboot ... I think the only thing is to do OEM package...
I have test with many cabs but nothing works same as you with Sense ...
Have you found solutions ?
EVEALEX62 said:
Hi my friend, I have a problem to cook a ROM with cab which required a reboot or witch have a information message ( SWYPE or GPSMOdDriver for example)
Do you know a solution for this please?
Thanks in advance.
Click to expand...
Click to collapse
The solutoin is to use autorun instead of cabinstl, you can then write a custom script to handle the input required by the cab.
However this is above my head, and i couldn't get autorun to work. FFBOY knows how but i doubt you will get his help as he doesn't seem to check any threads other than his own rom threads, and if he does his responces are few and far between.
drkdeath5000 said:
I've tried everything to get sense working but im just having no luck ... copied the packages to the sys folder, flashes fine, boots fine but no sense and now theres no setting shortcut in the start menu ?
Could i ask for the exact procedure for installing sense please ? Im getting my packages from here but replacing the 2017 home with 2016. Could i perhaps be missing something ?
Thanks again
Click to expand...
Click to collapse
Those are the packages i used and they work so it's not the packages, but i cheated and dumped a sense rom then modified it. I don't have time to try and work out how to do it properly unfortunatley.
leeston2379 said:
Those are the packages i used and they work so it's not the packages, but i cheated and dumped a sense rom then modified it. I don't have time to try and work out how to do it properly unfortunatley.
Click to expand...
Click to collapse
Well atleast i know the packages are fine, i was starting to wonder if that was the problem . Theres some satisfaction in doing it yourself but like miro said i think its just too much for me, ill give it another go later in the week and if that fails ill just dump a sense rom like you did ... if there was just a tutorial on installing sense packages etc id be fine, with sense being so popular you'd think there to be loads of tuts.

Categories

Resources