Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,738,012 Members 53,750 Now Online
XDA Developers Android and Mobile Development Forum

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

Tip us?
 
mansa_noob
Old
(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.
#1  
mansa_noob's Avatar
Senior Member - OP
Thanks Meter 153
Posts: 530
Join Date: Feb 2012
Location: Markham

 
DONATE TO ME
Lightbulb [TOOL] G2X Cleanup Batch *** WARNING *** WILL FORMAT INTERNAL SD

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.
The Following 37 Users Say Thank You to mansa_noob For This Useful Post: [ Click to Expand ]
 
khanggle
Old
(Last edited by khanggle; 9th April 2012 at 05:16 PM.)
#2  
Member
Thanks Meter 5
Posts: 46
Join Date: Oct 2010
Location: Toronto
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.
The Following User Says Thank You to khanggle For This Useful Post: [ Click to Expand ]
 
kesara
Old
#3  
Senior Member
Thanks Meter 102
Posts: 456
Join Date: Oct 2011
Location: Chesterbrook

 
DONATE TO ME
The zip file seems to be corrupt. Could you re-upload plz
PHONE..... T-Mobile® G2x™ with Google™(LG - P999WD)
ROM
...... OTA Stock v21y 2.3.4 GRJ22 - Rooted
OS
....... Android 2.3.4 LG-P999-V21y
KERNEL
... Linux 2.6.32.9 LGE GB Faux 014b2
Other
.... Nemus launcher

The Following User Says Thank You to kesara For This Useful Post: [ Click to Expand ]
 
khanggle
Old
#4  
Member
Thanks Meter 5
Posts: 46
Join Date: Oct 2010
Location: Toronto
worked great on my end, no problems.
The Following User Says Thank You to khanggle For This Useful Post: [ Click to Expand ]
 
mansa_noob
Old
#5  
mansa_noob's Avatar
Senior Member - OP
Thanks Meter 153
Posts: 530
Join Date: Feb 2012
Location: Markham

 
DONATE TO ME
Quote:
Originally Posted by khanggle View Post
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 .
 
thugmafia
Old
#6  
thugmafia's Avatar
Senior Member
Thanks Meter 19
Posts: 353
Join Date: 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: [ Click to Expand ]
 
buru898
Old
(Last edited by buru898; 9th April 2012 at 08:53 PM.)
#7  
buru898's Avatar
Senior Member
Thanks Meter 540
Posts: 1,699
Join Date: Mar 2008
Location: Cranston, RI

 
DONATE TO ME
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.
Current Phone:
Nexus 4!!
----
Previous Phones:
 
T-Mobile Samsung Galaxy S2 -given away-
HTC Wing (still working)
HTC Touch Pro 2 (still working)
HTC HD2 (backup Phone)
Samsung Galaxy S Vibrant -Sold-
T-Mobile LG G2X -Sold-

My Contributions:
 
Midnight_Rider
Old
#8  
Midnight_Rider's Avatar
Senior Member
Thanks Meter 1049
Posts: 1,726
Join Date: Feb 2012
Location: Kannapolis, NC

 
DONATE TO ME
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)
-Jerry
Nexus 5
 
MWBehr
Old
#9  
MWBehr's Avatar
Senior Member
Thanks Meter 368
Posts: 1,158
Join Date: Oct 2010
Location: Corpus Christi

 
DONATE TO ME
Quote:
Originally Posted by dodgefan67 View Post
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.
Like my work? Buy me some

Glasstopia Projects: Nexus 7 | CM9/AOKP | Vibrant
Currently Running: 3 different roms a day....if you need to get ahold of me, send a pigeon
 
mansa_noob
Old
#10  
mansa_noob's Avatar
Senior Member - OP
Thanks Meter 153
Posts: 530
Join Date: Feb 2012
Location: Markham

 
DONATE TO ME
Quote:
Originally Posted by dodgefan67 View Post
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

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

Advanced Search
Display Modes