Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

[UTIL] REG/RGU Cleaner

OP OndraSter

12th April 2010, 12:26 PM   |  #1  
OndraSter's Avatar
OP Recognized Developer
Flag Prague
Thanks Meter: 277
 
2,082 posts
Join Date:Joined: Mar 2009
Donate to Me
More
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, 104 views)
File Type: zip RegCleanup_1.2.zip - [Click for QR Code] (6.2 KB, 130 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, 433 views)
File Type: zip RegCleanup_1.7.zip - [Click for QR Code] (6.7 KB, 774 views)
File Type: zip RegCleanup_1.8.zip - [Click for QR Code] (6.8 KB, 470 views)
Last edited by OndraSter; 16th July 2011 at 07:58 PM.
The Following 2 Users Say Thank You to OndraSter For This Useful Post: [ View ]
12th April 2010, 12:50 PM   |  #2  
Member
Flag Tgn
Thanks Meter: 9
 
31 posts
Join Date:Joined: Dec 2006
REALLY GREAT THING!!! I'd been looking for such soft )
12th April 2010, 01:48 PM   |  #3  
OndraSter's Avatar
OP Recognized Developer
Flag Prague
Thanks Meter: 277
 
2,082 posts
Join Date:Joined: Mar 2009
Donate to Me
More


Wait till I get back, I got updated version, I forgot to include mui_sz registry value kind.
The Following User Says Thank You to OndraSter For This Useful Post: [ View ]
12th April 2010, 07:52 PM   |  #4  
ai6908's Avatar
Senior Member
Flag Land of Lincoln
Thanks Meter: 267
 
3,609 posts
Join Date:Joined: Nov 2006
Donate to Me
More
Promising tool...thanks bro...
12th April 2010, 08:14 PM   |  #5  
OndraSter's Avatar
OP Recognized Developer
Flag Prague
Thanks Meter: 277
 
2,082 posts
Join Date:Joined: Mar 2009
Donate to Me
More
OK, version 1.2 UP on first post!

Fixed registry, where was - on beginning (delete)
Added support for mui_sz string values
The Following User Says Thank You to OndraSter For This Useful Post: [ View ]
12th April 2010, 10:21 PM   |  #6  
Senior Member
Flag Epinay sous senart-France
Thanks Meter: 2
 
530 posts
Join Date:Joined: Dec 2008
More
Quote:
Originally Posted by OndraSter

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
12th April 2010, 10:32 PM   |  #7  
OndraSter's Avatar
OP Recognized Developer
Flag Prague
Thanks Meter: 277
 
2,082 posts
Join Date:Joined: Mar 2009
Donate to Me
More
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.
The Following User Says Thank You to OndraSter For This Useful Post: [ View ]
13th April 2010, 12:19 AM   |  #8  
Member
Thanks Meter: 4
 
96 posts
Join Date:Joined: Jan 2009
More
Nice work !!!

Thank you
13th April 2010, 07:24 AM   |  #9  
wbrown5's Avatar
Member
Flag Austin, TX
Thanks Meter: 0
 
90 posts
Join Date:Joined: Nov 2007
More
Thanks for this great tool!
15th April 2010, 11:58 AM   |  #10  
kokotas's Avatar
Senior Member
Flag Athens
Thanks Meter: 1,551
 
713 posts
Join Date:Joined: Oct 2007
More
Question
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!

Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes