[G2 and Desire Z Android Development] evilcuber:
​

​

I cant make this any simpler for you.

TO HAVE A CLEAN ROM = JUST FLASH THE ZIP

TO USE YOUR OWN LIST PUT ROMCleaner_User.txt ON YOUR SDCARD IN

/sdcard/ROMCleaner

Steps:

-Nandroid Backup

-Superwipe

-Flash Rom

-Without Rebooting Flash ROM Cleaner

-Reboot

Quick Start Guide

Ok, this is a quick start guide for those user who just want to flash and go.

The cleaner uses one of two text files located in the ROMCleaner folder on your SD card.

ROMCleaner.txt - This is the default cleaner list that the script will read from. This list will be placed on your card on the first run of the cleaner. It will be overwritten each time the cleaner is run to ensure the latest updates are applied.

OR

ROMCleaner_User.txt - This is your custom cleaner list. You can create this file at any time and the cleaner will automatically read from it.

File Locations:

/sdcard/ROMCleaner/ROMCleaner.txt <--- This is the default list and will be created automatically
/sdcard/ROMCleaner/ROMCleaner_User.txt <--- This is your personal list which you create.

Summary

In short, all you have to do is add text to a file and put apks into a folder.

Yes yes that simple.

You can even edit the text files and copy apks using just your device.

While we still recommend you use http://notepad-plus-plus.org/ to edit your list on a PC to maintain the UNIX encoding the cleaner will also double check and convert the file if it finds it has been converted to a windows format.

We have created this small flashable zip to aid you in getting the cleaners directory structure setup.

It should only need to be run once before using but can be run at any time to completely recreate the structure. Any files or folders in place will not be harmed if flashing again.

The script contains a small reboot to workround a very small bug in some recoveries. This bug will not update the sdcards file view to show new folders.

This is to help us avoid the obligatory "I flashed the zip but it didnt create the folders" posts.

While the default list should be enough for most users, we have included the ability to define your own custom list for the cleaner to remove.

Creating your own list is as simple as adding files to a text file! This can be done a variety of ways, from an editor on your PC or via an editor on your Phone!

The easiest way to start your own list is to use the one attached to the first post.

Run the folder creator or create the following structure on you sdcard

/sdcard/ROMCleaner/ROMCleaner_User.txt

As long as this file is present, the cleaner will read from it instead of the default ROMCleaner.txt.

To add to it all you have to do is add the apk file or folder you would like removed during cleaning.

Single apk files should just be listed while folders should be encased in quotes (" ")

Any item with a # in front of it will be ignored by the cleaner.

The cleaner will check BOTH the /system and /data partitions for any apk file named in the list and remove it if it finds it

Examples:

To add files:

UselessApp.apk

Simple as that

To add folders:

"/system/app/UselessFolder"

Ignored example:

Here, both the empty folder and UselessApp2 will be deleted while UselessApp1 will be ignored.

"/system/app/EmptyFolder"
#UselessApp1.apk
UselessApp2.apk

We have also included the ability to batch delete a certain filetype by using the following syntax -

"/path/to/folder/*.fileextension"

Heres an example from the default list to remove all .png images from the resources folder:

"/system/customize/resource/*.png"

The default ROMCleaner.txt also includes these instructions to help you start your own list.