#1
|
How to set up UC
I found this awesome TuT on setting up UC by Slueth225 over at XDA
Code:
here:http://forum.xda-developers.com/showthread.php?t=366337 What is UC? It is a feature contained in UC capable ROMs. A UC capable ROM extends initial customization to your SD card so you can load cabs and install XML files that are located there too. What this means is that once you get your customization scripts right, you can flash any UC capable ROM and all your apps and settings will be restored as part of the initial customization process whenever your SD card is inserted in the slot. If you are a ROM chef and want to make your own ROM UC capable, then go here to learn how. The effort is trivial btw. Ok, on to creating scripts! First you need to read a short WiKi article on customization that's located here How do you set up UC? By placing a file called "SDConfig.txt" in the root directory of your storage card. The best way to illustrate this is to show examples. Here is my SDConfig.txt: This is mine, Superman369 Code:
LOCK:Enabled CAB: \Storage Card\Cabs\Advanced_Configuration_Tool_v3.0.cab CAB: \Storage Card\Cabs\Badboy8813 Audio Fix- (Full Volume).cab CAB: \Storage Card\Cabs\brainZapr_wm5or6_vga.cab CAB: \Storage Card\Cabs\CorePlayer v1.3.0 Build-6213 for PPC_Reg.cab CAB: \Storage Card\Cabs\Diamond TF3D Config Setup v0.6.7.CAB CAB: \Storage Card\Cabs\Diamond Tweak 0.5.3_English.cab CAB: \Storage Card\Cabs\fexploreext205.CAB CAB: \Storage Card\Cabs\Facebook.cab CAB: \Storage Card\Cabs\iNigmaReader.CAB CAB: \Storage Card\Cabs\oldSAP SMS Nuke WM5 WM6.cab CAB: \Storage Card\Cabs\OpMon.CAB CAB: \Storage Card\Cabs\palringo.CAB CAB: \Storage Card\Cabs\ShakeAndSave_Setup.cab CAB: \Storage Card\Cabs\Skyfire-PPC.CAB CAB: \Storage Card\Cabs\smmssetupfull.cab CAB: \Storage Card\Cabs\tcmdpocketarm.cab CAB: \Storage Card\Cabs\VGA MusicID_1.3.16.CAB CAB: \Storage Card\Cabs\WindowsLive_NoIM_0409.cab CAB: \Storage Card\TF3D Fonts\GODZSON_-Drafting_Fonts.cab CAB: \Storage Card\TF3D Themes\Probex\PROBE-X-DESIGN Stone Chrome KillerX.cab CAB: \Storage Card\Cabs\ThrottleLock0.4\ThrottleLock0.4.CAB LOCK:Disabled RST: Reset
Settings customization is pretty advanced stuff. You might want to get going first by simply using User Customization to install some cabs. If I were first starting out, I'd install cabs that customize my device. For example, I have a Tilt, so I would install a Keyboard patch cab for the Tilt layout and another cab that disables the AT&T hidden proxy. This would require two CAB: statements in SDConfig.txt. However, if you're yearning to do more settings customization, then the "XML:" config statement is the key. Here's my XML provisioning file called SleuthProvisioning.xml. It initializes me in cleartype mode, changes my notification settings, initializes the default SIP to Block Recognizer, sets power and backlight timeouts, re-arranges my today screen and updates my Owner Name. Code:
<wap-provisioningdoc> <!-- ClearType Preferences --> <characteristic type="Registry"> <!-- Just adding this Key enables ClearType --> <characteristic type="HKLM\System\GDI\CLEARTYPE"> <parm name="Default" value="0" datatype="integer"/> <noparm name="Default"/> </characteristic> <characteristic type="HKLM\System\GDI\ClearTypeSettings"> <parm name="OffOnRotation" value="0" datatype="integer"/> </characteristic> <!-- Owner Preferences --> <characteristic type="HKCU\ControlPanel\Owner"> <parm name="Name" value="Sleuth 255" datatype="string"/> <!-- Owner value is SZ_BINARY: 320 Unicode characters (640 bytes). XML "Binary" datatype processes this as Base64--> <parm name="Owner" value="SwBlAaSwDyuuIIgvrRRvAHgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA==" datatype="binary"/> </characteristic> <!-- Notification Preferences --> <!-- New Email Message --> <characteristic type="HKCU\ControlPanel\Notifications\{A877D65A-239C-47a7-9304-0D347F580408}"> <parm name="Options" value="2" datatype="integer"/> </characteristic> <!-- Reminders --> <characteristic type="HKCU\ControlPanel\Notifications\{15F11F90-8A5F-454c-89FC-BA9B7AAB0CAD}"> <parm name="Options" value="1073741833" datatype="integer"/> </characteristic> <!-- Power/Backlight Timeout Preferences --> <characteristic type="HKCU\ControlPanel\BackLight"> <parm name="BatteryTimeout" value="240" datatype="integer"/> <parm name="ACTimeout" value="360" datatype="integer"/> </characteristic> <characteristic type="HKLM\System\CurrentControlSet\Control\Power\Timeouts"> <parm name="ACSuspendTimeout" value="300" datatype="integer"/> <parm name="BattSuspendTimeout" value="180" datatype="integer"/> </characteristic> <!-- Application Preferences --> <characteristic type="HKCU\Software\The Paradigm Group\sipchange\Parameters"> <parm name="DefaultSIP" value="Block Recognizer" datatype="string"/> <parm name="Delay" value="10" datatype="integer"/> </characteristic> <characteristic type="HKCU\Software\Spacreat\SP TimeSync\General settings"> <parm name="Start minimized" value="Yes" datatype="string"/> </characteristic> <characteristic type="HKCU\Software\Spacreat\SP TimeSync\NTP client"> <parm name="Autosync period" value="21600" datatype="string"/> </characteristic> <!-- Silent Keyboard Sliding Sound --> <characteristic type="HKLM\Software\HTC\SlidingSound"> <parm name="ActiveSlidingSound" value="0" datatype="integer"/> <parm name="SlidingSoundEffect" value="0" datatype="integer"/> </characteristic> <!-- Today Screen Order/Enabled Preferences --> <characteristic type="HKLM\Software\Microsoft\Today\Items\HTC Home"> <parm name="Enabled" value="0" datatype="integer"/> <parm name="Order" value="0" datatype="integer"/> </characteristic> <characteristic type="HKLM\Software\Microsoft\Today\Items\Windows Live Search"> <parm name="Enabled" value="1" datatype="integer"/> <parm name="Order" value="1" datatype="integer"/> </characteristic> <characteristic type="HKLM\Software\Microsoft\Today\Items\"Messaging""> <parm name="Enabled" value="1" datatype="integer"/> <parm name="Order" value="5" datatype="integer"/> </characteristic> <characteristic type="HKLM\Software\Microsoft\Today\Items\"Calendar""> <parm name="Enabled" value="1" datatype="integer"/> <parm name="Order" value="20" datatype="integer"/> </characteristic> <characteristic type="HKLM\Software\Microsoft\Today\Items\"Tasks""> <parm name="Enabled" value="0" datatype="integer"/> <parm name="Order" value="21" datatype="integer"/> </characteristic> <characteristic type="HKLM\Software\Microsoft\Today\Items\"TomTom""> <parm name="Enabled" value="0" datatype="integer"/> <parm name="Order" value="22" datatype="integer"/> </characteristic> <characteristic type="HKLM\Software\Microsoft\Today\Items\Windows Live"> <parm name="Enabled" value="0" datatype="integer"/> <parm name="Order" value="23" datatype="integer"/> </characteristic> <characteristic type="HKLM\Software\Microsoft\Today\Items\"Pocket Plus""> <parm name="Enabled" value="1" datatype="integer"/> <parm name="Order" value="24" datatype="integer"/> </characteristic> <characteristic type="HKLM\Software\Microsoft\Today\Items\"Selboriyorker Weather""> <parm name="Enabled" value="0" datatype="integer"/> <parm name="Order" value="26" datatype="integer"/> </characteristic> <characteristic type="HKLM\Software\Microsoft\Today\Items\"Selboriyorker Time""> <parm name="Enabled" value="0" datatype="integer"/> <parm name="Order" value="28" datatype="integer"/> </characteristic> <characteristic type="HKLM\Software\Microsoft\Today\Items\"Selboriyorker Backup""> <parm name="Enabled" value="0" datatype="integer"/> <parm name="Order" value="42" datatype="integer"/> </characteristic> <characteristic type="HKLM\Software\Microsoft\Today\Items\"Owner Info""> <parm name="Enabled" value="0" datatype="integer"/> <parm name="Order" value="46" datatype="integer"/> </characteristic> <characteristic type="HKLM\Software\Microsoft\Today\Items\Getting Started"> <parm name="Enabled" value="0" datatype="integer"/> <parm name="Order" value="47" datatype="integer"/> </characteristic> </characteristic> <-- File Operations --> <-- Copy the SP Timesync link to startup so it gets executed whenever I reset --> <characteristic type="FileOperation"> <characteristic type="%CE2%\Startup" translation="install"> <characteristic type="MakeDir" /> <characteristic type="StartTimeSync.lnk" translation="install"> <characteristic type="Copy"> <parm name="Source" value="\windows\Start Menu\Programs\SP TimeSync.lnk" translation="install" /> </characteristic> </characteristic> </characteristic> </characteristic> </wap-provisioningdoc> Code:
<wap-provisioningdoc> <characteristic type="Registry"> </characteristic> <characteristic type="FileOperation"> </characteristic> </wap-provisioningdoc> Within the registry type, I set a lot of cool stuff. You should be able to firgure out how it works if you have basic registry skills. Essentially, setting values for any registry key looks like this: Code:
<characteristic type="HKCU\ControlPanel\BackLight"> <parm name="BatteryTimeout" value="240" datatype="integer"/> <parm name="ACTimeout" value="360" datatype="integer"/> </characteristic> Special characters within quotes in XML files must be represented using html special character sequences. For instance, the double quote (") character sequence is " so "Today\Items\"Pocket Plus"" would be written as "Today\Items\"Pocket Plus"". The full list of special HTML character sequences can be found here. This is especially important when changing today screen plugin order since some today screen registry entries actually have quotes in the key name. See my provisioning file above under "Today Screen order/enabled preferences" for an example of this. Last edited by Superman369; 03-16-2009 at 02:57 AM. |
The Following 10 Users Say Thank You to Superman369 For This Useful Post: | ||
#2
|
Re: How to set up UC
File Operation CSPs
All the File Operation CSP parameters are described here. Here's mine: Code:
<characteristic type="%CE2%\Startup" translation="install"> <characteristic type="MakeDir" /> <characteristic type="StartTimeSync.lnk" translation="install"> <characteristic type="Copy"> <parm name="Source" value="\windows\Start Menu\Programs\SP TimeSync.lnk" translation="install" /> </characteristic> </characteristic> </characteristic> Here's a great example from booda. It shows shortcut creation, move, directory creation and remove operations: Code:
<characteristic type="FileOperation"> <!--Create folder in Programs called "Docs and Ref" and move Google Maps shortcut into it--> <characteristic type="%CE2%\Start Menu\Programs\Docs and Ref" translation="install"> <characteristic type="MakeDir" /> <characteristic type="Google Maps.lnk" translation="install"> <characteristic type="Move"> <parm name="Source" value="%CE2%\Start Menu\Programs\Google Maps.lnk" translation="install"/> </characteristic> </characteristic> </characteristic> <!--Create "Doom" shortcut from exe on storage card and copy it into Games folder--> <characteristic type="%CE2%\Start Menu\Programs\Games" translation="install"> <characteristic type="MakeDir" /> <characteristic type="gfDoom.lnk" translation="install"> <characteristic type="Shortcut"> <parm name="Source" value="\Storage Card\Games\Doom\gfDoom.exe" translation="install"/> </characteristic> </characteristic> </characteristic> <!-- Move Office folder from Start Menu into Docs and Ref folder --> <characteristic type="%CE2%\Start Menu\Programs\Docs and Ref\Office Mobile" translation="install"> <characteristic type="MakeDir" /> <characteristic type="Excel Mobile.lnk" translation="install"> <characteristic type="Move"> <parm name="Source" value="%CE2%\Start Menu\Programs\Office Mobile\Excel Mobile.lnk" translation="install"/> </characteristic> </characteristic> <characteristic type="icon.lnk" translation="install"> <characteristic type="Move"> <parm name="Source" value="%CE2%\Start Menu\Programs\Office Mobile\icon.lnk" translation="install"/> </characteristic> </characteristic> <characteristic type="OneNote Mobile.lnk" translation="install"> <characteristic type="Move"> <parm name="Source" value="%CE2%\Start Menu\Programs\Office Mobile\OneNote Mobile.lnk" translation="install"/> </characteristic> </characteristic> <characteristic type="PowerPoint Mobile.lnk" translation="install"> <characteristic type="Move"> <parm name="Source" value="%CE2%\Start Menu\Programs\Office Mobile\PowerPoint Mobile.lnk" translation="install"/> </characteristic> </characteristic> <characteristic type="Word Mobile.lnk" translation="install"> <characteristic type="Move"> <parm name="Source" value="%CE2%\Start Menu\Programs\Office Mobile\Word Mobile.lnk" translation="install"/> </characteristic> </characteristic> </characteristic> <characteristic type="%CE2%\Start Menu\Programs\Office Mobile" translation="install"> <characteristic type="RemoveDir" /> </characteristic> </characteristic> The MakeDir and RemoveDir commands don't require a closing [/characteristic] tag - just make sure the slash is included as in the examples above. You have to make sure that 1) any files you're referencing already exist and 2) you have the names exactly right. If you try to move a shortcut that isn't there or has a different name than what you referenced, the whole process bombs out. Here are all the %CE#% shortcuts (thanks to chainfire) Code:
%CE1% \Program Files %CE2% \Windows %CE3% ***Not Defined*** %CE4% \Windows\Startup %CE5% \My Documents %CE6% \Program Files\Accessories %CE7% \Program Files\Communication %CE8% \Program Files\Games %CE9% ***Not Defined*** %CE10% ***Not Defined*** %CE11% \Windows\Start Menu\Programs %CE12% \Windows\Start Menu\Programs\Accessories %CE13% \Windows\Start Menu\Programs\Communication %CE14% \Windows\Start Menu\Programs\Games %CE15% \Windows\Fonts %CE16% ***Not Defined*** %CE17% \Windows\Start Menu All the EMAIL2 CSP provisioning parameters are described here Elosogrande7076 shows us how to provision a couple of email accounts below. To be safe, use GUID-GEN to generate unique GUIDs. This is because duplicate GUIDs will cause undefined results on your device. Code:
<wap-provisioningdoc> <characteristic type="EMAIL2"> <characteristic type="{7B3D74EC-35D9-45e3-B8F3-E38F4B90D174}"> <parm name="SERVICENAME" value="Gmail" /> <parm name="SERVICETYPE" value="IMAP4" /> <parm name="INSERVER" value="imap.gmail.com" /> <parm name="OUTSERVER" value="smtp.gmail.com" /> <parm name="NAME" value="Username" /> <parm name="AUTHNAME" value="login@gmail.com" /> <parm name="AUTHSECRET" value="password" /> <parm name="DOMAIN" value="" /> <parm name="REPLYADDR" value="login@gmail.com" /> <parm name="LINGER" value="15" /> <parm name="RETRIEVE" value="-1" /> <parm name="KEEPMAX" value="-1" /> <parm name="DWNDAY" value="3" /> <parm name="AUTHREQUIRED" value="1" /> <parm name="SMTPALTENABLED" value="1" /> <parm name="SMTPALTAUTHNAME" value="login@gmail.com" /> <parm name="SMTPALTPASSWORD" value="password" /> <parm name="SMTPALTDOMAIN" value="smtp.gmail.com" /> </characteristic> </characteristic> <characteristic type="EMAIL2"> <characteristic type="{877e6100-cd6d-4a44-bd4c-3edf4b901480}"> <parm name="SERVICENAME" value="Gmail1" /> <parm name="SERVICETYPE" value="IMAP4" /> <parm name="INSERVER" value="imap.gmail.com" /> <parm name="OUTSERVER" value="smtp.gmail.com" /> <parm name="NAME" value="Username" /> <parm name="AUTHNAME" value="login1@gmail.com" /> <parm name="AUTHSECRET" value="password1" /> <parm name="DOMAIN" value="" /> <parm name="REPLYADDR" value="login1@gmail.com" /> <parm name="LINGER" value="15" /> <parm name="RETRIEVE" value="-1" /> <parm name="KEEPMAX" value="-1" /> <parm name="DWNDAY" value="3" /> <parm name="AUTHREQUIRED" value="1" /> <parm name="SMTPALTENABLED" value="1" /> <parm name="SMTPALTAUTHNAME" value="login1@gmail.com" /> <parm name="SMTPALTPASSWORD" value="password1" /> <parm name="SMTPALTDOMAIN" value="smtp.gmail.com" /> </characteristic> </characteristic> </wap-provisioningdoc> Quote: 1.- Why Provisioning file is not loaded, I mean, it doen't work nor load any registry or feature that I added to it? Its probably a syntax error. Here's how I debug syntax:
2.- How I convert the HEX values showed at Registry Editor to base64 unicode? (I'm Mac user) It is for Owner registry stuff. Being a Mac user, ymmv on this, but my technique using Windows is as follows:
Here's an easier way to create your provisioning XML files!
|
#3
|
Re: How to set up UC
Although I really dont understand alot of the technical aspects of this, you have done a fabulous job of describing everything! A fanstastic layout! Clear and concise. i look forward to the day when I can read through this and understand more!
|
#4
|
Re: How to set up UC
Hahaha, its actually alot easier then it looks. Using the tool I attached to the first post to set up your auto cab installs is cake. The other ones are a little more technical though
|
#5
|
Re: How to set up UC
Updated first post with newer and better SDConfig.txt creator.
|
#6
|
Re: How to set up UC
Thanks.....I am just not quite to the point of feeling that i can get into the flashing, regedit etc....Although I have spent countless hours reading every flashing tutorial that i can find in here and over at PPC, just dont quite have the confidence level yet. LOL but when I read posts from others, I am beginning to think of how to answer it... "book smart, street stupid" to use a colloquialism.
|
#7
|
|
Re: How to set up UC
Quote:
|
#8
|
Re: How to set up UC
Thanks for the encouragement.....Looks like i will be picking up 2 Moguls at a bargain price today....These I will use to learn with...once i get them going, I can hopefully sell them and keep moving onward and upward...
|
#9
|
Re: How to set up UC
nice or use the one for 30 days and than upgrade to a pro for free.... we have a huge thread on how to do it.... just have to keep checking after your 30 days :)
|
Tags |
set |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to set up a custom email | legend2700 | Recycle Bin | 5 | 12-04-2008 07:08 PM |
rlToday Theme Set. | dianeofarcadia | QVGA (PPC & WM) Themes | 2 | 08-19-2008 03:50 PM |
Set It Off (1996) | TAR | Recycle Bin | 0 | 05-31-2008 11:16 PM |
:: XXX HACKED PW Set :: | YourFriendWayneD | Recycle Bin | 2 | 04-07-2006 10:29 PM |