Where to Edit Phone Registry Hives? - General Questions and Answers

Where can we go to edit the registry when we are building a Custom ROM?
I heard there were registry hives or something but I forgot the file names.
I see lots of tutorials for chefs and fixes to problems saying what registry entries to make, but I dont know where to put them!
Note: I am talking about editing ROM Build registry files from the computer, not from the actual phone.
Thanks!

Related

ROM Kitchen questions

Now perhaps i am being a little naive here, but surely if you wish to cook a custom rom for yourself, the best option by far is a kitchen with an ultra clean rom with absolutely no customisation at all, and then a massive repository of custom apps etc as tick boxes in the buildos screen?
I have cooked myself a few nice roms using pandoras kitchen, but realise that there are even with it a few addons within the base rom itself. I am looking for the cleanest of base roms, then use the kitchen with all the OEM packages i can find.
Also looking how to create a wap provisioning file that can integrate to the rom at build stage to set up my O2 gprs and wap settings, instead of doing it as a cab in extended rom.
Any help and suggestions are welcome, and big thanks to all the usual suspects for continually releasing little golden nuggets for the rest of us
Well, yeah, a little...
Anyway, if you want to try taking things out of the sys directory, (usually the "base os") just remove the offending subdirectories and they won't get built in.
For your wap settings, just create your own package. (Read how in double0_four's kitchen thread, or faria's kitchen thread) Just put your reg settings in the .rgu file. Or you could tack your settings into another .rgu file that's already being built. (Not the best form, but it should work.)
Have fun!
For each of the components in the SYS folder, you can add an entry in the options.xml file in the SYS folder. Use Office and Transcribe as an example of how to do it. This will allow you to choose what you want from the BuildOS screen.
I dont think you can build GPRS settings using a reg file??? I have scoured the registry and cannot find how it is done. The last time i did it i used a cab file with a <wap-provisioning> style xml file, buti dont see howthis would built in an .rgu file.
And which rom would you consider to be the leanest rom to build from, then i can just make up my own packages to add in to it.
If worst comes to worst, i will just use the cab andset it to run on first boot, same way one ofthe other roms does this instead of using extended rom,. they just put the cabs into the windows folder

How to get OEM Cabs?

How does one extract a CAB from a ROM?
For instance if I want to cook my own ROM, but I want to use some of the applications in say Dutty's latest release, how do I get those cab packages to install on my own?
Particularly, i am interested in pulling the latest remote desktop off of the latest test Tilt ROM because it has the ability to map the mobile's local storage.
thanks!
one word: RTFW.
Read The FFing Wiki!!
If I could find it on here I wouldn't have posted asking about it.
This is the first of my posts that have been met with a response like this, but honestly go troll somewhere else. It is 0% productive to make responses like that. You are cluttering up the forum with usesless posts (as much as I would be guilty of if this is indeed described in the wiki). If it's in the wiki, why don't you point me to where?
The wiki isn't a single page as much as you'd like to believe, it' links to hundreds and thousands of posts of information.
I have CIM and SIM unlocked my device, flashed about 5 different ROMS and radios and done numerous other things with info I have gotten from the wiki. I read through the ROM cooking kitchen tutorials, but could not find anything which mentions my task at hand. I found information and links on the cooking tutorials to use OEM cabs that people had already extracted....but what if the one I want isn't there? Where is the info that tells me how to pull one OUT of a ROM (instead of putting one already extracted IN)?
So, either you are misunderstanding what i want to do, or else the way i am phrasing it is misleading, both to you and to myself, which is maybe why i can't find the info I want.
So, please your brilliance, point me to location in the Wiki that would describe a procedure where i would be able to extract a .CAB (like Windows Mobile Desktop) from the latest AT&T test ROM.
Otherwise your contributions to this thread are unwanted.
while maarten might have pointed you in the wrong direction, your thread is still a redundant one. if you tried to search, you will find lots of threads covering this subject. and yea, your search results are probably gonna end up with tons of threads that end up looking like this thread, but if you sift through the results.......and by sift i mean u really really sift, i promise you, you will find something useful.
Simple Answer...
...You can't extract a CAB from a ROM usually.
Explanation: In the ROM itself things like windows live are extracted from the CAB already and are installed, so the CAB itself is not there. If your original question was how do I extract the files needed to MAKE a CAB.. then that's more complex, a different question, and a waste of your time if you don't already know how to do it.
If you really want to learn you will have to search.. if you just want a CAB of the latest windows live messenger get the build number by installing the ROM and looking in the application for it.. then use the google search of xda-developers (e.g. "Windows Live" <build number> )and you can be sure you will find someone has already done the hard work for you.
hope that helps.
You find threads on converting CAB's to OEM packages but not the other way round.
The trouble is when you extract a ROM, you'll probably find in the SYS directory, the OEM folder you want with all the relevent files. BUT you won't know where they all go. And if the files you want are in the OEMApps folder you won't know what files need to go together. What I do is look at a similar OEM package (See Alex's excellent work) and this will show the files you need, where they go plus any registry settings. You can probably copy over the newer files from your extracted ROM to the OEM package, overwriting the older files.
If the OEM package doesn't exist it will be a long, long job!! You need to search through the files on a device with the installed ROM and make a note of the location of the application files - this is required for the install.txt file. The next problem (& the major one) is to find any relevant registry settings - again you can search through the registry of the installed ROM. Now all this take a lot of time and effort...
odyseus said:
The next problem (& the major one) is to find any relevant registry settings - again you can search through the registry of the installed ROM. Now all this take a lot of time and effort...
Click to expand...
Click to collapse
You can cheat a little bit here though, some apps will recreate any missing entries with sensible defaults if you leave them out.. others wont.. for those you can find ANY version of the CAB that you want to use (even an older one say) and use its registry as a guide to where to find the ones for the new version.. the registry locations dont change that much between versions usually.
you'll still get issues.. but in most cases this helps if not works
Thanks for your info sambartle and odyseus. I had feared as much based on what I had found through search already, but thought there might have been a way... I guess _Alex_ and others do quite alot of legwork to extract and make all these things themselves.
I can't quite understand it however.... If I take a windows PC for example (which is similar in it's registry) I couldn't necessarily find all the associated files and registry keys associated with an application. If you are lucky they are all under one folder and one key of the registry... but something like MS Office installs so many shared files, and classes objects into the registry it would be nigh impossible to recreate that (even given the time).
Unfortunately, if the last posts I read are accurate the developers here won't be providing new OEM dumps for a while. Maybe once 6.1 is more widely released microsoft will allow download of the new mobile desktop.
Ah well, thanks for your help.... and to the other posters...it's worthless posts like yours that contribute nothing to the forum that makes extracting useful information through the forum more difficult than it should be.
bengalih said:
Thanks for your info sambartle and odyseus. I had feared as much based on what I had found through search already, but thought there might have been a way... I guess _Alex_ and others do quite alot of legwork to extract and make all these things themselves.
I can't quite understand it however.... If I take a windows PC for example (which is similar in it's registry) I couldn't necessarily find all the associated files and registry keys associated with an application. If you are lucky they are all under one folder and one key of the registry... but something like MS Office installs so many shared files, and classes objects into the registry it would be nigh impossible to recreate that (even given the time).
Click to expand...
Click to collapse
It requires alot of testing and re-installing or re-flashing, sometimes on the same ROM, sometimes on different ones, just to iron out the bugs. It's one of the reasons why I released AT&T and HTC versions in the past, just so that I can have two platforms to test on.
Windows CE is alot simpler than Windows XP by at least 10 fold. Yet there are people who have created portable versions of Microsoft Office through the use of deployment applications like thinstall, so anything *IS* possible, with automation.
Automation that works at the functionality of thinstall for CE doesn't exist because of economies of scale (e.g., it's not worth any developer's time to create a deployment package as robust as Thinstall for the PPC).
bengalih said:
Unfortunately, if the last posts I read are accurate the developers here won't be providing new OEM dumps for a while. Maybe once 6.1 is more widely released microsoft will allow download of the new mobile desktop.
Click to expand...
Click to collapse
Dumping and stripping is relatively easy once you've gotten the hang of it. You just need to keep at it.
Personally, I just don't find it to be challenging any more, since I've done quite a few AT&T/HTC WM6.0s and HTC WM6.1s and I'm now waiting for an official shipped version (no more leaked betas!!!).
bengalih said:
Ah well, thanks for your help.... and to the other posters...it's worthless posts like yours that contribute nothing to the forum that makes extracting useful information through the forum more difficult than it should be.
Click to expand...
Click to collapse
Your initial question / thread starter didn't have many details, so I would have flamed you too, although I would have also provided a link to my OEM Package Tutorial (Creating Packages from ROM files section)
It never hurts to be overly verbose when asking a question. This would make the flamers leave you alone (because they'll just get tired of reading) and should *NOBODY* respond within a couple of days, when you bump it (with flowery encouraging yet challenging words, like 'You guys are so great, but nobody could answer my question?'), nobody will mind that you did, and you will get answers after that bump...
FWIW, I still think this should have been a question asked in the OEM Tutorial thread, which I have subscribed and respond to much more frequently than new threads which I'm not aware of until I actually have the time to READ new threads. It's also because, should anyone have similar questions, it'd be much easier to fiind in the bigger OEM Tutorial thread than in this one...
Hope this helps!
Thanks Alex... as you said you would have provided me the link to your Creating Packages from ROM section which I did gloss over briefly previously but didn't totally see how it helped me (since I was looking for Cabs). But, now that you point me there I again I took another look and got some useful information.
So this is where i am at:
Ok,
So first I extract the ROM using your kitched script, then in the SYS folder I find two folders that seem to be what i want:
RemoteDesktopMobile
RemoteDesktopMobile_Lang_0409​
Inside the first folder are subfolders with names like:
MvkLib.dll
and
wpctsc.exe​
and inside those are an actual DLL or EXE file, and some other files called imageinfo.bin, imageinfo.txt, and some files S001, S002, s003, etc...
I am going under the assumption that all I need is the .DLL file, and the rest are some sort of uncompiled form of the DLL? (Please let me know if i need to pay attention to those other files.)
So I take all those DLL and EXE files. I also look for and find an INITFLASHFILES.DAT and don't see any references to these files, so i assume they all go in \WINDOWS?
There is also an RGU file inside here that has a few registry keys for this application.
Inside the second folder is just a DSM, and a couple of .txt and .htm files. Since these files aren't in INITFLASHFILES.DAT either, I assume they just go in \WINDOWS?
I also find a provxml file in \OEM\OEM_Lang_0409 called mxipupdate_RemoteDesktopMobile.provxml.
The contents are:
Code:
<wap-provisioningdoc>
<characteristic type="FileOperation">
<characteristic type="%CE11%" translation="install">
<characteristic type="MakeDir" />
<characteristic type="Remote Desktop Mobile.lnk" translation="install">
<characteristic type="Copy">
<parm name="Source" value="%CE2%\wpctsc.lnk" translation="install" />
</characteristic>
</characteristic>
</characteristic>
</characteristic>
</wap-provisioningdoc>
Based on my reading of the links off your page and some further research this file seems to say the following:
Make a directory (if it doesn't exist) called \Windows\Programs (%CE11%)
Make a shortcut in the directory called Remote Desktop Mobile.lnk (the decimal ASCII text) that maps to \Windows\wpctsc.lnk (%CE2%)
So... now I have:
A handful of files...I need to put them in \Windows
I have an RGU file with a couple registry entries I need to import into the registry
I need to make
a shortcut to the exe int the \Programs directory
How then do I now package all this up into a CAB that will automatically perform the above operations?
I know about "makecab" to actually package all these up into a cab. But how to i write the command file that tells it how to do all the provisioning and registry entries?
Please let me know I am on the right track.
Thanks!
Ok...I found a program called WinCE Cab manager that made the process pretty easy. I installed it on my device and it seems to work well.
I have uploaded it here:
http://rapidshare.com/files/104977265/Windows_Mobile_Desktop_6.1.cab.html
Where is the appropriate place to post this to share with others?
yeah like people have said dumping the rom is the way to do it but most roms nowaday dont have the files for you to recook(so no oems)
so the best thing is to do is get the cab yourself and convert it to an oem with ervius's package creator
sorry kidnamedAlbert...I'm not sure where you were getting at there... the whole point of my post was how to get those cabs made from the ROM in the first place. As you can see from the previous posts it seems I have already resolved (or started my way to) getting this done.
Personally, i prefer to have the cab file as I am more interested on just being able to install it on my device then cook it into a ROM. If someone wants to cook it into a ROM that seems to be a well documented procedure if the cab file is already available.
In my case, there was no cab file available for the latest version of Windows Mobile Desktop...so i made my own from the ROM.
Maarten_0031 said:
one word: RTFW.
Read The FFing Wiki!!
Click to expand...
Click to collapse
One word: RELAX and STOP SWEARING, geez.

Cooking Jetware into a rom

Ok.... Here goes (at the risk of being torn apart by the senior chefs)(and I did search)...
I am using the thread by _Alex_ and the recommended programs and have started cooking my own roms... Lots of usefull information, and with the software by Ervius, I can make a rom... Yay! Also with the software by Ervius, I can turn a cab file into a Package... Yay... I have done that successfully with various cabs and cooked and flashed... Until this one...
JetWareMobile 1.30 (used to add extended capabilities to the current bluetooth stacks for use with certain car kits)
When I click the "Go" button to start building the .NB file it errors out when I include or only include this package.
It errors somewhere reading the .RGU file with the registry information.. It stops on a line that points to this line...
[HKEY_CLASSES_ROOT\JETwarefile\Shell\Open\Command]
@="Windows\\JetBTConfig.exe""" -IMPORT %%1"
I installed it manually, compared the registry with the .rgu file and that it references to the Program Files Directory...
I have not tried manually making the .rgu file say just that, but before I did, and probably will while waiting on a reply, try this, I would like some expert opinions on this....
Here are the last lines of the log file::
importing registry file ".\Registry\7d34def8-6b68-492e-8e00-61337b8fc753.rgu"...
Failed to parse HKEY_CLASSES_ROOT\JETwarefile\Shell\Open\Command!!!
InitRegistry FAILED in file ".\Registry\7d34def8-6b68-492e-8e00-61337b8fc753.rgu" within a few lines of line 7.
ImportFromPackageListStrict: (RGUComp) !ERROR failed importing ".\Registry\7d34def8-6b68-492e-8e00-61337b8fc753.rgu"
wmain: (RGUComp) !ERROR failed building DEFAULT hives
During the manual install, it asks, "do you wish to load the stacks now?" type question, and you have to click yes or no, to finish the install...
I have tried it also as a OperatorPKG install, and it hangs the whole install process with no visible way to continue the process.
What do you guys think...
Anyone???
Anyone care to take on this unique problem?????
Seeing how that Jetware is so far the only program out there that does what it does, Im surpised that none of the great chefs here have come across this particular issue.
pls send it or attach the rgu. let me try to see what i can help.
i think there is something wrong with the quote mark.
Thank you
Thank you for taking a look at it....
Heres the link to the package folder (.RAR'd)
http://www.stevesdesigns.net/files/jetwarepkg.rar
The UUID's are different than what was in the log... I re-packaged it....
I see the quotes your talking about... Im going to try it with the modifications to see what happens
---
Tried it with out a " in the line...
didnt work...
on a manual install, the registry entry reads
"Program Files\JETware\JetBTConfig.exe" -IMPORT %1
(with the quotes in place)
Value type: REG_SZ
Value Name: Default
OK steve,
make ur line like this
Code:
[HKEY_CLASSES_ROOT\JETwarefile\Shell\Open\Command]
@="\"\\Program Files\\JETware\\JetBTConfig.exe\" -IMPORT %1"
i can see JetBTHFx.dll has no function here which safe to delete because u have the one with 000-*.
Good luck!
EDIT: Now the correct final one.
I think that worked!!!!!
Thank you Very Much!!!
It seemed to work in the flash... I ran the program, and it asked to enable the stacks. so it should be ok.
Ever since my days of owning the Tmobile SDA (tornado), Tmobile HP pda, and then the Tmobile MDA (wizard) and now an ATT Tilt (Kaiser), I have tried sooo many roms that the Chefs here have created...
I would like to create one now for the XDA community.
I want it to be something special tho... so no public releases till I know its something that people will be in Awe about...
Thank You again
No problem mate. we here to share. maybe this thread can be closed now as ur problem has been settled

How to create a .reg file (what's the format)

Hello all,
I hope I used the search function correctly, I could not find an answer to this one. If You have a link to an answer, please be so kind to point me out in that direction.
Each time I do a flash of a new ROM I go through the process of installing the mayor things I need. Although I know that Shashimi (if I write it correctly) will solve this issue, I am trying to get to smoothing the job of some standard actions I do for each ROM.
I install my Resco Explorer 2008 and edit the registry.
I know all the specific entries I need, some are new, some are value changes.
There is a possibility in Resco to import .reg files. I tried to create my own by taking a .reg file I downloaded from here, but Resco complained it not being in the right format.
Can somebody inform how the file should look.
Is there a difference between value changes for an existing entry or new entries. Is there a certain Header which should be available.
I am sure these questions are answered somewhere, but the Wiki and Search did not let me find an answer.
And yes, I will go to Shashimi sometimes, but am not ready yet.
Thanks all in advance,
Ruud
I used TaskMgr to export some registry keys and it looks exactly like this:
Code:
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\Software\HTC\BTRouter]
"BTBaudrate"=dword:003d0900
"BTPortName"="COM7:"
Hope this helps
Hi ZaxXx,
exactly this format is what I see around here. But trying to import this through Resco Explorer 2008 does not work. Also simply clicking on the (text)-file with this format does not result in the registry being updated to the contents of the file.
How would You re-import these registry entries, other than by hand?
Edit :
OK, I just tried to import a file which was exported by TaskManager, this actually works.
But my files, which look the same to me are rejected. Time to start looking real careful, what the difference is.
Regards,
Ruud
OK solved it.
Or at least to some extend.
I can import the file through TaskManager and the file is accepted without mistakes. The entries do appear in the registry after that.
BUT, Resco Explorer 2008 still judges the file corrupt and does not want to import.
It will save a lot of time like this, so I am happy.
Thank You,
Ruud
Some more solutions;
Howdy all,
Yesterday I pointed someone to UC Capable ROM you're going to love UC, for sure! ;
http://forum.xda-developers.com/showpost.php?p=5928148&postcount=6
Something I need to edit within this subject (I'll do that after I'm done here), ;
SDConfig.txt Builder Mobile by l3v5y
http://forum.xda-developers.com/showthread.php?p=2114491#post2114491
I'm using PHM Registry Editor it allows me to do the following tasks:
Explore the registry to find the operating system and applications configuration,
modify system and applications tweeks not available from the standard options screens,
export all or parts of the registry to .reg files,
backup and restore the complete registry and
perform search on the registry data
Export a key, look into it with notepad (ASCII) editor, then you'll know its format
Some more recent findings you might want to take a look into you need them anyway when you're getting into UC;
reg/rgu-2-xml
http://forum.xda-developers.com/showthread.php?t=386677
Registry format conversor: xml to reg
http://forum.xda-developers.com/showthread.php?t=299308
Use SK-Tools (not free, though partly functional) it exports registry and can create a cab! It has also a reg editor. Plus...
Diamond 2 / Topaz / Pure RoLLuP http://forum.xda-developers.com/showthread.php?t=530335
This Rollup is an excellent overall HTC FAQ IMHO. It'll give you a very good overall impression of how to flash a ROM.
When you too are in cooking ROM's then this thread 'll interest you!
When you PgDn you'll see Extendir Cabs a very nice CAB utility;
ExtenDir
http://forum.xda-developers.com/showthread.php?t=530710
Microsoft Cabinet Software Development Kit for Personal Computer;
cabskd.exe (packed selfextracting file);
http://support.microsoft.com/kb/310618
Have fun everyone with editing/creating/modifying,
Senax
Wow, You really put a lot of effort in this, THANK You very much. Highly appreciated.
Now the reading, that will cost some time, but I am sure it is worth it.
Thanks again,
CU
of tot ziens
Ruud
Deng! This is awesome! And NEW!!
DevPrep (Device Prep) something like autorun.exe (see (somewhere within) previous post) and also very powerfull
http://forum.xda-developers.com/showthread.php?t=646623
Have a nice read,
Senax
--
Hollanders helpen elkander op xda

The big question about registry edits

Hi, i'm sorry to ask such a noob question, but it seems that i'm missing a lot of goodies when it comes to editing registry. I have edited very few registry lines to add a thing or two, but i've read in various posts that there's a lot of good things to do in the registry field, and i haven't figured out yet what are the best things to do. I even saw somewhere that if you don't have a registry editor then you only have half WinMo.
Can someone post a list of the best registry edits?
Thanks in advance.
Please remember ... changing the Registry can harm your device and you will end up in a Hardreset!
But beside of this warning
You're right. Changings in the Registry can release the real potential of you device.
Try "TSALTAs Magic Tweak". A cab that's full of registry tweaks.
As i'm posting this from my HD i can't give you the link to the Thread.
Just search for it.
best regards
fwt

Categories

Resources