[Touch Pro2, Tilt 2 Windows Mobile ROM Development] JVH3:
XDA_UC Very basic tutorial

What is XDA_UC?

XDA_UC installs and configures your phone, without the need to manually configure things after XDA_UC is set up.

Prefix:

All files must be saved as Unicode, unless otherwise stated.

That means no ASCII, UTF-8, or Unicode-Big Endian

All file edits should be done with notepad, since it will not inject any formatting.

In notepad, Save As has the file type option at the bottom of the dialog.

Step 1: Identify cab and cer files that you always install.

Copy these to you XDA_UC folder.

This will save you the steps of manually installing these cabs. But you will still need to configure them, if you stop here.

2. Configure you settings to auto import.

You will want to become familiar with the registry.

I use 3 methods for backing up sections of the regsitry that do not require installing anything on your phone.

A. Total Commander - plugins\registry

Navigate to a regsitry section. Then press and hold the stylus. Select Copy/Move

Paste this to a folder on your storage card.

B. RegEdit - Start->Tools->Registry Editor

Navigate to a regsiry section. Then use the stylus and tab the left most botton on the bottom of the screen that has a lightning bolt on a blank folder. Select Export. Pick where to save it.

C. ASTools - this is run from your PC.

Create a folder on your storage card called reg_dump

C:\Program Files\ASTools>prun.exe dottaskmgr /regxpkey \Storage Card\reg_dump\HKLM1.reg [HKEY_LOCAL_MACHINE]

Before installing anything, do a full dump of HKEY_LOCAL_MACHINE and HKEY_CURRENT_USER.

Install your apps. Configure them.

After installing and configuring, do a full export (dump) of HKEY_LOCAL_MACHINE and HKEY_CURRENT_USER.

Download a tool to compare differences. I use WinMerge by source forge.

http://winmerge.org/

It is an excellent tool. Beyond Compare and Araxis are also good tools. It is very easy to figure out.

Copy the before dumps to 1 folder on your PC. Copy the after dumps to another folder on your PC.

If you name the files the same, such as HKLM.reg and HKCU.reg, then you can compare folders.

Now search for cahgnes that appear relavant.

3. Not all settings are stored in the registry

Custom Weather cities are stored in a manila file. If you use the app, that I wrote, you can back up 2330fc3c_manila. You can also manually copy this from your windows folder.

Any files that need to be restored to the Windows folder, put in \XDA_UC\Sense

Stocks are strored at Aplication Data\HTC\ygo\ygoservices.db

You will need to use some mort script to copy this.

Save the file outside the xda_uc such as storage card\RhodiumSettings

5. To restore your Cookie Home Tab

This can be done with mortscript, but you firs must backup your settings in the Cookie Home Tab Editor.

To import, you must first set the version with a reg file with contents of

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\HTC\Manila]
"Co0kie.HomeVersion"="1.8.5"

Then create a mscr file with contents as this:

Run("\Program Files\CHTEditor\CHTEditor.exe", """\Storage Card\Rhodium\CookieTilt2Aug4.cht""")

6. For many settings, the registry settings locations are known

No need to to a full dump and compare for those. Just use Total Commander to copy the reg directly to your XDA_UC folder.

7. Rhodium Energy ROMs require provisioning for AT&T and T-Mobile

For AT&T, the file energy_att.cab is in the windows folder.

Copy it to your XDA_UC folder, if you use AT&T.

There is a similar file for T-Mobile.

8. Use the Energy ROM Exportor

This will generate many reg files for you, so you can restore things like bluetooth. Just stick the reg files into the XDA_UC folder.

9. Email and Wifi require XML provisioning files.

Use Makisu to generate xml files for these.

http://xdaforums.com/showpost.php?p=6491348&postcount=144

Then, just stick the xml files in your XDA_UC folder.

10. You've installed things from Marketplace, and find it annoying to redownload everything.

Well, I probably should not tell you exactly how to get around this.

But, it is pretty easy to figure out what got installed.

Brute Force: Dump the reg before installing. Dump it after. Look at Program Files and Application Data and new files in the Windows Folder and Windows\Start Menu\Programs and Windows\StartUp

If you look in at Application data\Volatile, you can figure some stuff out. Go there right after installing.

Also, look in HKLM\Security\AppInstall

And Windows\AppManager

I've made a cab for Glympse and WinFourSquare.

WinCECabMgr is a great program for making and modifying cabs. It's about $100. There is a 30 day free trial though.

I normally use Microsoft Visual Studio 2008 Professional, which I own legally.

You can also make them with Visual Studio 2005 Standard (I think).

You don't actually need a cab to install apps though. You can just put all the files on your storage card and use an mscr file to copy everything where you need it to be. And then use a reg file to create the registry entries.

Summary / Conclusion

XDA_UC greatly simpliefies the configuration process. Once you know where settings are kept, it is just a matter of creating the correct file to implement it.

If anything is missed, please post and I may add it.

Especially the basic steps. I think all advanced users already know most of this.

I will also add more detail when I have more time.