View Single Post
  #1 (permalink)  
Old 05-15-2008, 11:11 PM
AceszHigh's Avatar
AceszHigh
PPCGeeks Regular
Offline
Location: Delray Beach, FL
 
Join Date: Apr 2008
Posts: 162
Reputation: 320
AceszHigh is becoming a PPCGeeks regularAceszHigh is becoming a PPCGeeks regularAceszHigh is becoming a PPCGeeks regularAceszHigh is becoming a PPCGeeks regular
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Tutorial: Integrating Custom Registry Settings into a ROM w/ ProvXML - Lazy Man's Way

So after learning so much from the wonderful community here in this past month I've had with my touch, I figured I'd try to give back a little.

THIS IS DESIGNED FOR PEOPLE WHO AREN'T FAMILIAR ENOUGH WITH PROVXML TO WRITE THEIR OWN IN NOTEPAD, OR JUST WANT AN EASIER WAY THAT ELIMINATES MOST OF THE CHANCES FOR BUGGED CODE.

Up until recently, I found myself messing with my registry settings for a while after each ROM flash. Sure, the kitchen does include a few good reg tweaks, but I always have a few that I personally like as well. And, provXML's are so picky that sometimes if I select a few reg tweaks in the kitchen AND use my own ProvXML in a ROM, not all of the settings get implemented. So I just use my own provXML strictly without choosing any reg tweaks in the kitchen.

I use OEMizer (found in the \Tools directory of PPCKitchen Buildos) to implement my provxml, but you don't have to.

This part of the tutorial is only for if your tweak does NOT involve creating a completely new registry key (as opposed to changing the value of an existing key).

1. Install CERegEditor (attached below). This program allows you to access/edit/export your device's registry from your PC. Very useful!

2. Make sure you have an ActiveSync connection established. Fire up CERegEditor and click Connection -> connect. At this point your device's registry should come up.

3. Navigate to the key you want to export. This could either be: a) a reg key you have already tweaked on your current rom, or b) a key that you want to tweak on your future rom.

4. Now click EDIT -> export. NOT Export AS
For me, an error message usually pops up here. Click OK and disregard it.
Type in whatever name you want for the File Name.
SAVE AS either a .REG or .RGU file, NOT .ceReg! and click save
5. Now, if you are exporting a key from your device which already has been edited the way you want it...Do nothing for this step.
If you prefer the value of the key to be changed, then open up your .reg file in NOTEPAD and change the value.

Example:
My .reg for the above example says

[HKEY_LOCAL_MACHINE\Drivers\TouchPanel]
"PressureThreshold"="40175"
The value of the key is always on the right after the = sign, between the quotation marks. So I would simply change 40175 to whatever I wanted. Oftentimes, for other keys, this value is a simple 1 or 0.

6. Download the RGU to XML converter.

7. Run it, open your reg or rgu file and click Translate. It will create a provxml file in the same directory as the reg file.

8. Now open the provXML file in NOTEPAD.
If you're using the OEMizer provxml config then,
Copy and paste everything, starting after the line
<!-- *** COMMENTO *** -->

and ending at the last line BEFORE
</wap-provisioningdoc>


into the OEMizer provxml field. OEMizer automatically creates and nests everything between the <wap-provisioningdoc> </wap-provisioningdoc> tags, so if you are NOT using OEMizer make sure everything is between these tags.

9. Continue for as many regedits as you want to import to your ProvXML.


I'm not sure how many people need this, but I'm writing it because it was hard for me to find all this information. Initially, I used the info over at xda-dev to try writing my own XML but it always had errors for some reason so I resorted to this virutally foolproof method for implementing the code. Just be careful to copy/paste everything after one another, as to not mess up the tag nesting!


Thanks to all of the PPCKitchen developers as well as those on here for helping me learn this stuff!
Attached Files
File Type: zip rgu-2-xml.zip (8.9 KB, 442 views) Click for barcode!
File Type: zip ceregedit_setup.zip (1.39 MB, 377 views) Click for barcode!

Last edited by AceszHigh; 05-23-2008 at 02:03 AM.
This post has been thanked 39 times.