Post Reply

[TOOL] G2X Cleanup Batch *** WARNING *** WILL FORMAT INTERNAL SD

OP mansa_noob

9th April 2012, 05:02 PM   |  #1  
mansa_noob's Avatar
OP Senior Member
Flag Markham
Thanks Meter: 153
 
531 posts
Join Date:Joined: Feb 2012
Donate to Me
More
If you are going to flash and ICS ROM after this tool please make sure to first install a GB then ICS otherwise your SD card will not be accessible. I am trying to find a fix but it has been illusive. This statement will be removed once a fix has been found and OP updated.

Now with CWM Touch!

This method uses NVFLASH to recreate all partitions and formats them, thereby getting rid of the file allocation pointers and hence renders data inaccessible without effort.

Note: I have never seen a file come back to life or its data affect other files without effort on the users part or a temporary glitch once the partitions and pointers have been overwritten. Please post a reply with evidence if you have seen it.


Benefits:

The contents of the zip file can be used to super clean G2X before a new ROM flash. This tool recreates all the partitions in the phone so wipes the pointers to all files (everything). The method it employes has existed from before. The files here will stop short of pushing a ROM, so that you can push your favorite ROM.

Prerequisites:
  • G2X (Will not work on O2X due to different partition table)
  • Desire to have a clean install of your favorite ROM
  • Backup your data

    *** WARNING ***


    This tool will wipe both phone internal memory and internal SD card. External SD card content is safe.

    Don't say you haven't been warned!

What to do:
  • Download the attached Zip file.
  • Take out the battery (assuming you have backed up your data on external SD card, computer or elsewhere), connect the device via USB while holding VOL+ and VOL- together. Don't let go of the volume buttons until the device is recognized.
    (I typically leave Device Manager open to see when it shows up in the list under "USB Controllers").
  • Launch flash.bat, sit back and wait until the process finishes (generally a good idea to open a command prompt, CD to the directory and then run the file).
  • Unplug, put battery in, reboot into CWM recovery (pushed by this tool) by holding VOL- first, then pressing and holding POWER).
  • Flash your favorite ROM.
  • Enjoy!

I made this package because I could not get the bluetooth to work with G2x GB 2.3.3 (and below). The issue was a disconnect problem where both the phone and headset would still think they were connected but in audio would not be routed for a call or media. After this procedure my phone has not had an issue for almost 3 weeks now. I have tried it with two ROMs and 3 different headsets without any issues.

I guess I will not toss this phone after all .

Putting it out there in the hope that it may help others solve some of their issues as well. I suspect bad data stays in places not touched by other methods.

Your comments are most welcome.

[Update]

Klathmon has made an newer version with CWM 5.0.2.8. RP by Klathmon can be found here:

http://forum.xda-developers.com/show...4&postcount=66

I have tested the windows version but linux one is untested. Use at your own risk.

[Update]

Now with CWM Touch!

Thanks to everyone who has contributed on this thread with a drive to positive change! You work/comments/suggestions are very much appreciated.



References:
http://forum.xda-developers.com/show....php?t=1248644. This link was the inspiration for the current work.

Link to CWM Touch development thread. I took the image posted there: http://rootzwiki.com/topic/22984-rec...bled-cwm-5813/



[EDIT] The zip file should be fixed now. Darn work machine does something to the upload.
Last edited by mansa_noob; 20th April 2012 at 04:36 PM. Reason: Added requirement for ics when using this tool for SD card access.
The Following 37 Users Say Thank You to mansa_noob For This Useful Post: [ View ]
9th April 2012, 05:12 PM   |  #2  
Member
Flag Toronto
Thanks Meter: 5
 
46 posts
Join Date:Joined: Oct 2010
More
was just about to flash the new hellfire rom and saw this tool! will try it out and see how things go
edit: yeah corrupt zip on my end too.
Last edited by khanggle; 9th April 2012 at 05:16 PM.
The Following User Says Thank You to khanggle For This Useful Post: [ View ]
9th April 2012, 05:15 PM   |  #3  
Senior Member
Flag Chesterbrook
Thanks Meter: 102
 
456 posts
Join Date:Joined: Oct 2011
Donate to Me
More
The zip file seems to be corrupt. Could you re-upload plz
The Following User Says Thank You to kesara For This Useful Post: [ View ]
9th April 2012, 07:12 PM   |  #4  
Member
Flag Toronto
Thanks Meter: 5
 
46 posts
Join Date:Joined: Oct 2010
More
worked great on my end, no problems.
The Following User Says Thank You to khanggle For This Useful Post: [ View ]
9th April 2012, 07:17 PM   |  #5  
mansa_noob's Avatar
OP Senior Member
Flag Markham
Thanks Meter: 153
 
531 posts
Join Date:Joined: Feb 2012
Donate to Me
More
Quote:
Originally Posted by khanggle

worked great on my end, no problems.

The real test is how stable your ROM would stay with this method to wipe than any of the other methods.

I guess only time will tell .
9th April 2012, 08:23 PM   |  #6  
thugmafia's Avatar
Senior Member
Thanks Meter: 19
 
366 posts
Join Date:Joined: Jul 2009
wow this method really blaze hellfire much thanks to your( you) & (rom dev)
The Following User Says Thank You to thugmafia For This Useful Post: [ View ]
9th April 2012, 08:47 PM   |  #7  
buru898's Avatar
Senior Member
Flag Cranston, RI
Thanks Meter: 556
 
1,738 posts
Join Date:Joined: Mar 2008
Donate to Me
More
Ohh I like this. Thank you for sharing .

This thing is faster than nullifier, and I especially like how you don't need to be in CWM to use it. It just seems like doing it in "update mode" would allow better manipulation of the phone's internals.
Last edited by buru898; 9th April 2012 at 08:53 PM.
9th April 2012, 11:03 PM   |  #8  
Midnight_Rider's Avatar
Senior Member
Flag Kannapolis, NC
Thanks Meter: 1,067
 
1,760 posts
Join Date:Joined: Feb 2012
More
so this tool DOES format and nullify in addition to recreating the partitions?

deleting and recreating partitions does not remove data. only by writing over existing data can you get rid of it (like nullifier does)
9th April 2012, 11:15 PM   |  #9  
MWBehr's Avatar
Senior Member
Flag Corpus Christi
Thanks Meter: 368
 
1,158 posts
Join Date:Joined: Oct 2010
Donate to Me
More
Quote:
Originally Posted by dodgefan67

so this tool DOES format and nullify in addition to recreating the partitions?

deleting and recreating partitions does not remove data. only by writing over existing data can you get rid of it (like nullifier does)

He states in OP that it doesn't write anything, therefor doesn't "nullify". It formats and partitions.
9th April 2012, 11:19 PM   |  #10  
mansa_noob's Avatar
OP Senior Member
Flag Markham
Thanks Meter: 153
 
531 posts
Join Date:Joined: Feb 2012
Donate to Me
More
Quote:
Originally Posted by dodgefan67

so this tool DOES format and nullify in addition to recreating the partitions?

deleting and recreating partitions does not remove data. only by writing over existing data can you get rid of it (like nullifier does)

Actually you are right. Deleting, recreating and formatting partitions does not get did of the 1s and 0s, so in that sense the data is still there. However the pointers are gone, and hence even though the data is still there it can't be accessed without effort.

What do you think the nand has on it when the device is shipped... I can assure you its not ask zeroes!

Sent from my LG-P999 using XDA

Post Reply Subscribe to Thread

Tags
bluetooth, disconnect, format, g2x, partition
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes