Learn UC / XDA_UC / Registry / XML Provisioning / CAB Editing {2010-12-15}
2 Attachment(s)
This is in response to a request by Neudof to help him get started using UC.
Disclaimer: There are many tools and methods for using UC and this is just my way. I welcome ideas and in no way consider what I do the best or only way. What the hell is UC anyway? UC is an application that silently install .cab, .xml, .mscr, and copies over files to your phone based on the instructions found in a file at the root of your storage card called SDconfig.txt. The idea behind it is to be able to customize your phone settings and application the way you want it immediately after a new ROM flash without having to spend hours getting it back to the way you like it. For me, I have it down to simply waiting for my sync with exchange to complete after I flash and I am back where I left it. PART 1 I use a tool called SDConfigGen to generate the config.txt file for me. Read this thread: CLICK HERE Unzip SDConfigGen.0.6.zip on your computer and you will have a directory structure created that looks like this: http://forum.ppcgeeks.com/attachment...1&d=1267890144 Simple steps:
Converting from UC to XDA_UC Many ROMS now support XDA_UC and some have stopped supporting UC. All of the topics I cover in this thread are totally applicable still. Scroll down to post #6 to learn about the basics of XDA_UC and converting to it. |
Sharing how I do UC (User Customization) - Handling Cabs with Prompts
Handling Cabs with Prompts
With the process I use, there are two ways to handle cabs with prompts: Option #1 Create a MortScript file with the exact same name as the CAB file except with a MSCR suffix. The MortScript file must be put in the same folder as the CAB. Example:
Here is an example of a script that would handle the prompts in Opera Mobile's installer: Code:
windowTitle = "Opera Mobile Installer" Option #2 Cabs that prompt the user have a setup.dll enabled that executes some custom code after the install completes. In many cases, these can be disabled without a problem by editing the _SETUP.XML file in the cab and setting the following paramater to 0: Code:
<parm name="SetupDLL" value="0" /> You can extract the cab I made for Opera to examine what I did HERE. I will provide detail instructions for editing cabs in a later post. The intent of this section was to introduce you to your options so you can make a choice to stop learning here and use MortScript, or continue on in your quest for knowledge. |
Sharing how I do UC (User Customization) - Exporting your Registry
3 Attachment(s)
Exporting your registry to the Settings Folder
This is probably the most important section for minimizing the amount of time you have to spend setting up your device after you flash. Tools First thing you need is some tools to browse and export registry keys. My two recommendation (there are many others) are:
|
Sharing how I do UC (User Customization) - PROVISIONING XML
Provisioning XML
Provisioning XML documents are simply a set of instructions based in an XML document that tells your phone what to do. This is actually the same structure used in CAB installation files. Provinsioning XML 101 - Learn XML First a couple of pieces of information for those who are completely new to this.
Code:
<XML>
Code:
<XML>
Code:
<XML>
Code:
<XML> A wap-provisioningdoc is an xml document that opens with the <wap-provisioningdoc> tag and contains elements with the charachteristics you want to set. Some charachteristics you might be interested in:
http://msdn.microsoft.com/en-us/library/bb737536.aspx Provinsioning XML 200 - Common examples ActiveSync (exchange) - These are the settings I use, your settings may be different. Code:
<wap-provisioningdoc> Code:
<wap-provisioningdoc> Code:
<wap-provisioningdoc> Code:
<wap-provisioningdoc> Code:
<wap-provisioningdoc> Code:
<wap-provisioningdoc> Code:
<wap-provisioningdoc> |
Sharing how I do UC (User Customization) - Removing the thi
Advanced Customizations - Removing the things I don't use...
For me, removing stuff from a ROM falls in to only a couple of categories:
One could argue that you should just figure out how to remove the application, but as long as it is not memory resident, who cares... I am demonstrating this with XML since the poll shows more interest for this. This can also easily be done with a MortScript. In example #1, I will show how to remove a shortcut you do not want: Code:
<wap-provisioningdoc> Code:
<wap-provisioningdoc> Hiding Manila Tabs Easy Easy REG file for this one. Just set the last number to 2 in order to hide a tab: Code:
Windows Registry Editor Version 5.00 Code:
<characteristic type="FileOperation"> Coming soon.... |
Converting UC to XDA_UC
1 Attachment(s)
Using XDA_UC
Q: What is the difference between UC and XDA_UC? A: Not much really. You can do many of the same things except XDA_UC is script based and uses a flattened structure for XML, REG, MSCR, and CAB files. It does other things as well and applications can vary. I am just going to cover the basics here. FYI - UC does not support REG, so this is a clear advantage. Getting Started with XDA_UC
You could just dump your files in the directory and go. Me personally, I like to keep my files organized on my computer the I used to do it for UC. For that reason, I created the attached old school CMD file to create the XDA_UC folder on my computer so I can just copy it to my phone.
|
Some additional information you might fined helpful
Some additional information you might fined helpful
There are variables to use for folder paths %CE1% \Program Files %CE2% \Windows %CE4% \Windows\StartUp %CE5% \My Documents %CE6% \Program Files\Accessories %CE7% \Program Files\Communication %CE8% \Program Files\Games %CE11% \Windows\Start Menu\Programs %CE12% \Windows\Start Menu\Programs\Accessories %CE13% \Windows\Start Menu\Programs\Communications %CE14% \Windows\Start Menu\Programs\Games %CE15% \Windows\Fonts %CE17% \Windows\Start Menu Learn how to create or repack cab files without buying a program I was going to write this, but there already is a great thread that talks about how to build cabs (old school style). Check out this thread (and give thanks!): |
Re: Learn how to use UC (User Customization)
This is AWESOME!
Thank you for creating this for all of us UC n00bs!! This is exactly what I was looking for! :) |
Re: Learn how to use UC (User Customization)
Quote:
|
Re: Learn UC / Registry / XML Provisioning / CAB Editing {2010-03-08}
sticky this
|
Re: Learn UC / Registry / XML Provisioning / CAB Editing {2010-03-08}
Just want to add my thanks for putting all of this in one place, and making it easy to understand. Great work!
Agree on making this a sticky. |
Re: Learn UC / Registry / XML Provisioning / CAB Editing {2010-03-08}
What I find interesting is how many people have chosen to read this.
If I posted a thread that said, "I quit: Trading in my TP2 for an I-Phone", I would have several thousand reads and a hundred responses instead of 300. I am doing it anyway because someone asked for help, and I love all that this site and community has taught me. I am happy to be able to give back and would have loved a post like this when I started. All good and I am glad people are appreciating it. |
Re: Learn UC / Registry / XML Provisioning / CAB Editing {2010-03-08}
Quote:
THANK YOU, for being a part of the value add 10%!! |
Re: Learn UC / Registry / XML Provisioning / CAB Editing {2010-03-10}
would you say this is better than sashimi?
|
Re: Learn UC / Registry / XML Provisioning / CAB Editing {2010-03-10}
Quote:
Sashimi is more flexible (you can install to storage card), but I found it more difficult to manage over time if for no other reason than I have to click a button or two. Most custom ROMs support UC or XDA_UC right out of the box. XDA_UC will also run UC, so I find it to be the most universal and makes it easy to jump from one ROM to the other. They are all great tools and I would never argue for one over another. I just have my personal preference. No matter which one you pick, the concepts in this thread should serve you well. |
Re: Learn UC / Registry / XML Provisioning / CAB Editing {2010-03-10}
8-[ This is exactly what I needed. That you so much! I hope you are ready for me to pick your brain about this.
|
Re: Learn UC / Registry / XML Provisioning / CAB Editing {2010-03-10}
Quote:
|
Re: Learn UC / Registry / XML Provisioning / CAB Editing {2010-03-10}
Quote:
Quote:
Quote:
|
Re: Learn UC / Registry / XML Provisioning / CAB Editing {2010-03-15}
Thank you very much for this. Amazing job.=D>=D>=D>
|
Re: Learn UC / Registry / XML Provisioning / CAB Editing {2010-03-15}
Do you know a way to add my Opera settings including my home page web sites to UC?
Can I just copy your xml code into a new text file and use it as is (adding my personalized entries of course)? Why are some enable values 1 and some are 0? What do each mean or are they specific to the attribute? For example do some attributes use 1 and -1 while others use 1 and 0? Or do they all use -1, 0, and 1? If they do what does the zero mean? Dumb Q : what is hotmail? IMAP4 or POP3? I set it up using Makisu as a POP3 account and that worked. Do you have a sample code for POP3? Can I just use the xml file created by Makisu in UC or is that only set up to run with Sashimi? More Qs brewing... |
Re: Learn UC / Registry / XML Provisioning / CAB Editing {2010-03-15}
I have been using an xml to set up gmail imap. now on uc run it sets up the account like before but I still have to set it up again for use of the inbox softkey? I have to run email wizzard otherwise it says set up email or sms/mms
|
Re: Learn UC / Registry / XML Provisioning / CAB Editing {2010-03-15}
Quote:
Try this. I will add it to the front page if it works. Code:
<wap-provisioningdoc> |
Re: Learn UC / Registry / XML Provisioning / CAB Editing {2010-03-15}
Quote:
|
Re: Learn UC / Registry / XML Provisioning / CAB Editing {2010-03-15}
Quote:
I want the gmail inbox to appear when I press the inbox, for some reason I have to run menu account set up for it to work... |
Re: Learn UC / Registry / XML Provisioning / CAB Editing {2010-03-15}
Quote:
The way it works is it will open up whatever you opened last or display the account picker based on your settings. You can always just swipe the screen horizontally to get to the next account. PM me if you want more help as this does not appear to be a UC issue. |
Re: Learn UC / Registry / XML Provisioning / CAB Editing {2010-03-15}
I added your Hotmail code and am almost ready to flash. I was looking through my registry and there is an Activesync folder with all of the Exchange settings. Have you ever tried just copying it instead of xml? Or do you need xml to set up the account?
HKCU\Software\Microsoft\Activesync |
Re: Learn UC / Registry / XML Provisioning / CAB Editing {2010-03-15}
New question, which file is the opera passwords in so i can copy it over... i no longer need to copy my .adr for opera 9.
Thanks |
Re: Learn UC / Registry / XML Provisioning / CAB Editing {2010-03-15}
Quote:
Other than one minor issue with **EDIT** [the way I edited] your exchange code, I'm now at the point where I got UC to do everything I had Sashimi doing. Now I need to look into getting UC to do some program settings. For some reason, **EDIT** I typed my domain name where it is clearly marked Server] your exchange code set my server name the same as my domain name. So instead of mail1.domain.com it set both to domain.com. Once I changed the server name, I synced right away. Any luck with the Opera 10 settings/Home screen websites? This takes me the longest to do on a new flash (since I now know UC). Thank you. Thank you. |
Re: Learn UC / Registry / XML Provisioning / CAB Editing {2010-03-15}
Quote:
\Program Files\Opera Mobile 10\profile\datastorage Folder 6 is actually the favorites. |
Re: Learn UC / Registry / XML Provisioning / CAB Editing {2010-03-15}
Quote:
Thanks. I will be flashing again tonight so I'll let you know if that works. The best part about all of this, in my opinion, is you really can't mess things up too badly. If something doesn't work with your programs when you make a change to the Config file, you can just re-flash and you are right back where you started. |
Re: Learn UC / Registry / XML Provisioning / CAB Editing {2010-03-15}
Duck, great information! Do you know of a way to UC'ize bluetooth pairing? I would love to not have to pair every time I get in the car (only because I am always flashing lol) Seems to me the way bluetooth works this would not be possible but you never know. I have old BT technology that uses the same PIN over and over. (not MS Sync that generates PINs on the fly)
For my PC, it does generate a PIN on the fly, so I accept there is probably no way to automate pairing with that... |
Re: Learn UC / Registry / XML Provisioning / CAB Editing {2010-03-15}
Would you help me understand this line in your Exchange xml code:
<parm name="MIMETruncation" value="51200"/> I looked for this here but it only shows one digit for the value setting. What's up? Then I found this page that is really cool daigram of Exchange characteristic to use. I see that the 5120 sets the allowing incoming message size to 5K and a value of -1 allows all of the message to be synced. I still don't fully understand the extra 0 on the 51200. Is this just a combination of the two link pages explanations? So you are allowing the incoming message to be 5K large with the 5120 and the zero at the end lets it truncate all body text? So let the whole body in but only if the entire message is under 5K? If I didn't want any limit would I put -10 there instead of 51200? |
Re: Learn UC / Registry / XML Provisioning / CAB Editing {2010-03-15}
Quote:
Thanks for picking it up... |
Re: Learn UC / Registry / XML Provisioning / CAB Editing {2010-03-15}
Quote:
HKLM\Software\Microsoft\BlueTooth\Devices It may not work since it takes two, but worth a try.... |
Re: Learn UC / Registry / XML Provisioning / CAB Editing {2010-03-15}
Two Questions:
1) How do you set up scripts for cabs that allow you to choose whether to install on device or storage card? 2) With cabs where it prompts you to restart after installation, is it ok to install several of them (or all of them) at once, then restart? |
Re: Learn UC / Registry / XML Provisioning / CAB Editing {2010-03-15}
Sticky
|
Re: Learn UC / Registry / XML Provisioning / CAB Editing {2010-03-15}
Quote:
Quote:
|
Re: Learn UC / Registry / XML Provisioning / CAB Editing {2010-03-15}
Awesome job! I was trying to mess around with UC on my own and you made it so much easier for me!
Maybe you know if these few things can be found in the registry (and where): Login information for Facebook Login information for Twitter The order of your Manila tabs |
Re: Learn UC / Registry / XML Provisioning / CAB Editing {2010-03-15}
Quote:
HKEY_LOCAL_MACHINE\Software\HTC\HTCAccountManager Let me know if it works and I will add it to the front post. Tab order in Manila is easy: HKEY_LOCAL_MACHINE\SOFTWARE\HTC\Manila\Configurati on Be careful as writing this data can cause problems when new tabs or when you switch ROMs. You will know there is a problem because when you go to reorder them through the UI, some may be missing. |
Re: Learn UC / Registry / XML Provisioning / CAB Editing {2010-03-15}
Quote:
I'm already using the Configuration key and that selects which of the tabs are activated, but not the order. This is really an easy thing to manually adjust each flash, but I'm trying to see if I can get it to a point where everything is 100% ready to go right when I flash. To pick your brain a little bit more, any idea which key turns on "Auto Adjust Backlight"? Also, I know this isn't exactly the perfect thread for this...but it's related. I'm using a bunch of your cabs to turn off services/devices that I don't use. Once they are installed, is the effect permanent? Or do they need to stay installed on the device and uninstalling them reverses it? Again, thanks for the great work. I'm sure I speak for a lot of people when I say you made my life a lot easier :) |
All times are GMT -4. The time now is 02:01 AM. |
Powered by vBulletin® ©2000 - 2024, Jelsoft Enterprises Ltd.
©2012 - PPCGeeks.com