5,606,779 Members 38,186 Now Online
XDA Developers Android and Mobile Development Forum

[UTIL] REG/RGU Cleaner

Tip us?
 
OndraSter
Old
(Last edited by OndraSter; 16th July 2011 at 06:58 PM.)
#1  
OndraSter's Avatar
Recognized Developer - OP
Thanks Meter 277
Posts: 2,082
Join Date: Mar 2009
Location: Prague

 
DONATE TO ME
Default [UTIL] REG/RGU Cleaner

Hi,
I've been looking for some app, that will take my .reg or .rgu file (dump of WM registry), specially for OEMDrivers rgu, which is over 300kB large, delete duplicated stuff, sort it etc.

That's why I created this app.

What can it do:
- Grabs your input file, goes through it, takes together all registry nodes, when you have some key twice or more times, it gets overwritten so you're sure it isn't anywhere else after that
- Put it back to new output file
- Can remove "padding" zeroes at dwords, like you have "something"=dword:0000001 -- it removes the first zeros. They are not needed there and it is way readable IMHO (maybe not for everybody, so I made it as checkbox)



It made from OEMDrivers RGU of size 313kB new one with only 270kB! With human readable lines

With version 1.7 I fixed bug, that it got saved as ANSI rather UNICODE (thanks for others noticing that), thus having 50% of file size compared to supposed size. But Unicode is the right way to save that, sorry guys! (Platformrebuilder can use both, but OSBuilder maybe not? Well this is the better way).

Also, with 1.7, there's added option to run it from command line like rgucleaner.exe <sourcefile> <targetfile> and it _should_ close itself, but I'm not sure, I can't test it now. It was done as request

Version 1.8 update -- fixed "="="something" line in Mango beta for HD2. (thanks tslany for reporting). Plus now any problem with parsing line when it fails parsing even before checking if it is correct is now catched too rather crashing and reports the problematic line.
Attached Files
File Type: zip RegCleanup_1.1.zip - [Click for QR Code] (6.2 KB, 103 views)
File Type: zip RegCleanup_1.2.zip - [Click for QR Code] (6.2 KB, 129 views)
File Type: zip RegCleanup_1.3.zip - [Click for QR Code] (6.2 KB, 50 views)
File Type: zip RegCleanup_1.4.zip - [Click for QR Code] (6.4 KB, 432 views)
File Type: zip RegCleanup_1.7.zip - [Click for QR Code] (6.7 KB, 773 views)
File Type: zip RegCleanup_1.8.zip - [Click for QR Code] (6.8 KB, 459 views)
Lumia 920 + 800 - Official WP AppHub developer

PINCH TO ZOOM ON ANY WINMO DEVICE! | Start Menu Back Gesture | LockScreenPatcher | Move the keyboard to the bottom
====
[CPR & PLG Resolution Convertors] | [Right Click Recmod and Reverse] | [REG/RGU Cleaner] | [Hacking ConnectionSetupDB files]
====
Do you like my work? Buy me beer.
Have you bricked your phone? I can reflash bootloader and radio when you can't anymore! PM me!
The Following 2 Users Say Thank You to OndraSter For This Useful Post: [ Click to Expand ]
 
TiJay
Old
#2  
Member
Thanks Meter 9
Posts: 31
Join Date: Dec 2006
Location: Tgn
REALLY GREAT THING!!! I'd been looking for such soft )
 
OndraSter
Old
#3  
OndraSter's Avatar
Recognized Developer - OP
Thanks Meter 277
Posts: 2,082
Join Date: Mar 2009
Location: Prague

 
DONATE TO ME


Wait till I get back, I got updated version, I forgot to include mui_sz registry value kind.
Lumia 920 + 800 - Official WP AppHub developer

PINCH TO ZOOM ON ANY WINMO DEVICE! | Start Menu Back Gesture | LockScreenPatcher | Move the keyboard to the bottom
====
[CPR & PLG Resolution Convertors] | [Right Click Recmod and Reverse] | [REG/RGU Cleaner] | [Hacking ConnectionSetupDB files]
====
Do you like my work? Buy me beer.
Have you bricked your phone? I can reflash bootloader and radio when you can't anymore! PM me!
The Following User Says Thank You to OndraSter For This Useful Post: [ Click to Expand ]
 
ai6908
Old
#4  
ai6908's Avatar
Senior Member
Thanks Meter 262
Posts: 3,593
Join Date: Nov 2006
Location: Land of Lincoln

 
DONATE TO ME
Promising tool...thanks bro...
Hit "THANKS" button if you like the above post!!
Moto Atrix HD ROM - Batakang
HTC Flyer (WiFi) ROM - Stock Honeycomb3.2 No Root
My UnderVolt Tweak for cfX
 
OndraSter
Old
#5  
OndraSter's Avatar
Recognized Developer - OP
Thanks Meter 277
Posts: 2,082
Join Date: Mar 2009
Location: Prague

 
DONATE TO ME
OK, version 1.2 UP on first post!

Fixed registry, where was - on beginning (delete)
Added support for mui_sz string values
Lumia 920 + 800 - Official WP AppHub developer

PINCH TO ZOOM ON ANY WINMO DEVICE! | Start Menu Back Gesture | LockScreenPatcher | Move the keyboard to the bottom
====
[CPR & PLG Resolution Convertors] | [Right Click Recmod and Reverse] | [REG/RGU Cleaner] | [Hacking ConnectionSetupDB files]
====
Do you like my work? Buy me beer.
Have you bricked your phone? I can reflash bootloader and radio when you can't anymore! PM me!
The Following User Says Thank You to OndraSter For This Useful Post: [ Click to Expand ]
 
shafizal
Old
#6  
Senior Member
Thanks Meter 2
Posts: 530
Join Date: Dec 2008
Location: Epinay sous senart-France
Quote:
Originally Posted by OndraSter View Post
OK, version 1.2 UP on first post!

Fixed registry, where was - on beginning (delete)
Added support for mui_sz string values
great tool bro .......i dont know what are the entries it delete but my rgu changed from 138 ko to 86 ko and i seems my touchflo becames very fast after flashing

thanks once again for this
 
OndraSter
Old
#7  
OndraSter's Avatar
Recognized Developer - OP
Thanks Meter 277
Posts: 2,082
Join Date: Mar 2009
Location: Prague

 
DONATE TO ME
It doesn't delete anything, but:

1. loads into "virtual registry" as if it was in real registry
2. overwrites stuff that are twice etc (same name in each subkey) -- here gets lost most of the stuff, since many lines are in it sometimes more than one time*
3. and dumps from the "virtual registry"

And yes, for some unknown reason, whole system feels faster. But that's just some kind of psychics LOL.

*EXAMPLE:

[HKLM\something]
"foo"=dword:0000001
"bar"="hujah"
"woohoo"=mui_sz:"phcanoverbmp.dll,#32"
[HKLM\something]
"bar"="newone"

will merge into

[HKLM\something]
"foo"=dword:1
"bar"="newone"
"woohoo"=mui_sz:"phcanoverbmp.dll,#32"

just as in real registry or when going in prb would happen.
Lumia 920 + 800 - Official WP AppHub developer

PINCH TO ZOOM ON ANY WINMO DEVICE! | Start Menu Back Gesture | LockScreenPatcher | Move the keyboard to the bottom
====
[CPR & PLG Resolution Convertors] | [Right Click Recmod and Reverse] | [REG/RGU Cleaner] | [Hacking ConnectionSetupDB files]
====
Do you like my work? Buy me beer.
Have you bricked your phone? I can reflash bootloader and radio when you can't anymore! PM me!
The Following User Says Thank You to OndraSter For This Useful Post: [ Click to Expand ]
 
hartv427
Old
#8  
Member
Thanks Meter 4
Posts: 94
Join Date: Jan 2009
Nice work !!!

Thank you
Moto X XT1060 DE VZW
 
wbrown5
Old
#9  
wbrown5's Avatar
Member
Thanks Meter 0
Posts: 90
Join Date: Nov 2007
Location: Austin, TX
Thanks for this great tool!
Device: Motorola Atrix 4G

Rom : NottraTrix 1.31
Radio : 4.49.25.95
OClocked:
History: AT&T Tilt 2*AT&T TILT * HTC Wizard


 
kokotas
Old
#10  
kokotas's Avatar
Senior Member
Thanks Meter 1541
Posts: 713
Join Date: Oct 2007
Location: Athens
Hi OndraSter!

This is a great tool! And too d@#n fast!!! Nice Work again
I was trying to make something like this for cli usage, but failed miserably! lol
So here I am, suggesting you to add a cmd line usage.
Something like :
Code:
RegCleanup.exe -IMGFS -XIP
that could be used while dumping a rom so all the registry files from imgfs and xip would get cleaned up!
Just a suggestion...
Anyway, thanks for all your work!

Regards!
elfin => hd2 => nexus 5

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes