[SCRIPT] ROM Cleaner v1.1 | Remove Bloatware | Backup Apps | Add Custom Apps/Mods

Search This thread

Patrics83

Inactive Recognized Developer
Feb 19, 2010
5,620
8,223
Gothenburg
header.png



About48.png


  • ROM Cleaner deletes Apps and files from your system based on our default list or users choice
  • Backup Apps with Backup Tool and let ROM Cleaner restore all your apps before first boot
  • Restore your mail settings, accounts, wifi keys and paired Bluetooth devices with Settings Restorer
  • Follow the guide in second post and you will be just fine :D
ROM Cleaner Featured On XDA!!!

Also read these nice articles!
XDA Front page!
Evil-Dragon's Blog!

light120.png


Why ROM Cleaner48.png


  • very nice, simple and fast way to delete stuff from your device
  • takes less then 5 seconds to delete all the listed applications and files in the list
  • no trash left behind as it will be if you delete files manually using RootExplorer
  • more free RAM for apps that you are actually using
  • users have reported better battery life and device speed improvements with ROM Cleaner
If you find this tool good, great, awesome or maybe even the best thing you ever tried, then please send us a beer or hit the "Thanks Button" or leave some feedback ;)

Before and after pictures.
In this example, Desire HD loaded with ARHD 5.2.5 - Sense 2.1.

Before ROM Cleaner | After default ROM Cleaner

light120.png


Please always respect our work and be friendly and helpful to other members in this thread.

This is an example of how the ROMCleaner text file looks like. Many, Many more Apps in the real list.
Code:
[SIZE="2"]#
#	Applications
#
#AdobeReader.apk                                    Adobe PDF Reader
#com.adobe.reader-1.apk                             Adobe PDF Reader
BooksTablet.apk                                     E-Book Reader
#BrowserGoogle.apk                                  Internet Browser
#Calculator.apk                                     Calculator
CarHomeGoogle.apk                                   Car Home Google - Car Panel
#ChromeBookmarksSyncAdapter.apk                     Google Chrome Bookmark Sync
Currents.apk                                        Google Currents - Magazine's
#DeskClock.apk                                      Desktop Clock / Alarm
#DeskClockGoogle.apk                                Desktop Clock / Alarm
Development.apk                                     Dev Tools
#DSPManager.apk                                     DSPManager
#ESFileExplorer.apk                                 ES File Explorer
#com.estrongs.android.pop-1.apk                     ES File Explorer
#FaceBook.apk                                       FaceBook
#com.facebook.katana-1.apk                          FaceBook
#FaceLock.apk                                       Face unlock feature (Cool, but pointless)
#GalleryGoogle.apk                                  Gallery
#GoogleEarth.apk                                    Google Earth

Plus many more... Download the complete list in the download section.[/SIZE]

If you get some kind of issues after flashing ROM Cleaner, reflash the ROM and check if the issue still exists.
Important: Don't spam ROM development threads about issues caused by this script. You must always report problems in this thread and we will most likely help you as fast as we can.

Important:If you want to report a problem, give us all log files located in /SDCard/ROMCleaner/Logs and your ROMCleaner_user.txt! Just make a zip of the files and upload it.


light120.png


Changelog48.png

Code:
[SIZE=2]
[COLOR="royalblue"][B]Backup Tool v1.1 - 2012-02-08[/B][/COLOR]
-Added a command to remove encrypted apps from backup dir. Encrypted apps can't be installed like normal apk's 

___________________________________________________________________________________________


[COLOR="royalblue"][B]ROM Cleaner v1.1 - 2012-02-06[/B][/COLOR]
-Removed an app from the script that caused FC on Market

[COLOR="Red"]Don't use ROM Cleaner v1.0 or ROMCleaner_user.txt from v1.0[/COLOR]

___________________________________________________________________________________________


[COLOR="royalblue"][B]Initial release - 2012-02-05[/B][/COLOR]
-Backup Tool v1.0
-Folder Creator v1.0
-Mods and App Installer v1.0
-ROM Cleaner v1.0
-Settings Restorer v1.0
-Setup Wizard Remover v1.0

[/SIZE]


Downloads48.png



To be flashed before full wipe and ROM flash

Folder Creator v1.0

Backup Tool v1.1


To be flashed after flashing ROM and before first boot

ROM Cleaner v1.1

ROMCleaner_user.txt from ROM Cleaner v1.1
Right-Click and Save as...
>Follow instructions in second post how to edit this to fit your demands...


To be flashed after first boot

Settings Restorer v1.0

Mods and App Installer v1.0

Setup Wizard Remover

Also make sure to use Notepad++ when editing ROMCleaner_user.txt in Windows.
Requirements: Rooted and CWM Recovery installed

light120.png

Please feel free to use our banner made by craacK

7pkgqyp

light120.png


Donations48.png


Thanks a lot for all donations :D

MarckX x2 | Tomi Mykrä x2 | craacK x1 | Anthony Hogan x1 | Pietrorlando Giordano x1 | Mastacheata x1
preacher65 x1 | PaulGiz x1 | avatar_ro x1 | verynuclear x1 | JagSem x1 | Clarifiante x1 | Rosete Ryan Kim x1
Xphoid x1 | rayford85 x1 | Simi007 x2 | z31s1g x1 | malybru x1 | HTC-Gunge x1 | Laurentius26 x1





light120.png


Credits48.png


Dude360 how made a great work building this tool with me.
craacK for all the help with the development.
Madmaxx82 for his script skills and help making this one fly ;)
Mike1986 & lukogriffioen for inspiration.
The rest of Team Revolution for supporting me.
Special thanks goes to Whiskey103 for hosting my files.
MikeChannon (admin) for all the help.
And ofc to everyone who supports us and help us to make it even better.

Thx jotha for all testing with the Nexus release
 
Last edited:

Patrics83

Inactive Recognized Developer
Feb 19, 2010
5,620
8,223
Gothenburg
Yes, yes I know your thinking "Hmm this seems a pretty long long post so Im not gonna bother reading it."
It contains information for every aspect of the scripts, you wont need to read it all!
The majority of users will just need to read the Quick Start Section
You dont need to read the entire guide just to use this script!

Please dont quote this entire post!
Contents
  • A Complete N0oBs Guide
  • Quick Start Guide
  • Summary
  • Breakdown Of Zips
  • - Folder Creator
  • - ROMCleaner
  • - Backup Tool
  • - Settings Restorer
  • - Setup Wizard Remover
  • - Mods & App Installer
  • How To Create Your Own List
  • Examples Of Usage
  • - Fresh ROM
  • - ROM Upgrade
  • - Full Backup & Restore
  • ROMCleaner Logs & Support
  • A Little About The Team
A Complete N0oBs Guide
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
Code:
/sdcard/ROMCleaner
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:
Code:
/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.
EVERYTHING BELOW THIS RED LINE YOU DONT NEED TO KNOW.
ITS A COMPLETE REFERENCE GUIDE FOR THE ENTIRE TOOLSET WE DO RECOMMEND YOU HAVE A LOOK AT IT


_______________________________________________
<- The Red Line


Simple Breakdown
  • Folder Creator - Creates all nesercery folders automatically for you on SDCard
  • ROMCleaner - Will clean your rom using either default list or user list
  • Backup Tool - Will backup Apps and settings* to SD for you
  • SettingsRestorer - Restores backed up settings* made with backup Tool
  • Setup Wizard Remover - Removes setup wizards
  • Mods & App Installer - Installs using the SecondBoot folders
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.
On flashing, the RC zip will do the following things:
  1. Install our script and related files to /tmp
  2. Check if the folder is present on the SD card, if not then it will create it.
  3. Install the default cleaner list (ROMCleaner.txt) overwriting any older versions.
  4. Check to see if a custom list is present (ROMCleaner_user.txt).
  5. If it is then it will check for Windows encoding and convert to UNIX if needed.
  6. If it is not then it will use the default.
  7. Proceed to read the list and delete all the files and folders.
  8. Copy any backuped up apps back to /data/app
  9. Create Logs on the SD Card.
Note that the time it takes for the apps to be copied will vary dependent on the number of apps you have installed/are installing as will the first boot of the rom as most roms these days will automatically zipalign the data partition. On 200+ apps it takes under a minute to install and adds roughly 4-6mins to your boot time.
Due to the naming convention of apks when updated (they are appended with -1, -2 etc) please ensure you check for duplicates to avoid doubling up and wasting space. We will leave the organisation of your apps in this folder to you ;)
Now to save time and bandwidth when installing a rom it is possible to have your apps 'pre-installed' before first boot.
On flashing, the zip will copy all apks located in
Code:
data/app
to
Code:
sdcard/ROMCleaner/FirstBoot/data/app
as well as several system files to your SD card in preperation for your new rom.
When the ROMCleaner is run it will copy these apks back to data/app for you before booting the rom.
We are slowly adding support for apps that are provided by the rom devs to make sure that these apps are not copied across to ensure you will always receive the uptodate version included with your rom.
If you feel support for your rom should be included as default please contact us in the thread.
When flashed this zip will do the following:
  1. Install our script and related files to /tmp
  2. Check if the folder is present on the SD card, if not then it will create it.
  3. Backup Accounts, Bluetooth pairings, Mail accounts (including Inbox) and WiFi APs keys
  4. Copy all Apps (not app data) found in /data/app/
  5. Create Logs on the SD Card.
Accounts, BT, Mail accounts and Wifi can only be restored using the Settings Restorer.
This script will attempt to restore any files backed up by the backup tool.
These settings are stored by the Android system and are usually lost when flashing a rom. This can be annoying if you have a lot of wifi passwords stored or a few BT pairings which you dont want to lose.
It is important to note that in the majority of cases these settings will be correctly applied but sometimes for an unknown reason they dont and may cause errors. We are still trying to track these down. If you do encounter them PLEASE post in the thread so we can gather some information from you to aid in this process.
This tool also has limitations when it comes to moving rom base. Please do not attempt to restore these settings as it will more than likely cause errors.
The setup remover is a small additional zip that will remove the setup wizards which run at first boot.
Once these wizards have been run they become absolutely useless and as such can be removed safely.
Unfortunately they are tied into several aspects of the system and removing them before the roms first boot can cause some weird errors and FC's


Creating Your Own List
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
Code:
/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:
Code:
UselessApp.apk
Simple as that ;)
To add folders:
Code:
"/system/app/UselessFolder"
Ignored example:
Here, both the empty folder and UselessApp2 will be deleted while UselessApp1 will be ignored.
Code:
"/system/app/EmptyFolder"
#UselessApp1.apk
UselessApp2.apk
We have also included the ability to batch delete a certain filetype by using the following syntax -
Code:
"/path/to/folder/*.fileextension"

Heres an example from the default list to remove all .png images from the resources folder:
Code:
"/system/customize/resource/*.png"

Heres a couple of example flashing procedures for the most common ways of flashing a rom and using the ROMCleaner toolset.
Before doing anything you should first flash the folder creator zip to create the folder structure for you.
Flash'n'Go - Full Wipe - Clean System
So this is your typical flashing procedure for a ROM starting with a full wipe, clean system, and no apps or settings backed up.
  1. SuperWipe
  2. Flash ROM
  3. Flash ROM Cleaner
  4. First Boot
  5. Setup Phone
  6. Flash Setup Wizard Remover
  7. Use Phone as Normal
ROM Upgrade
Obviously using the 'upgrade' method to install a rom will replace any files you have removed with the cleaner the first time round.
You can use the cleaner again straight after flashing a rom upgrade.
Be warned, using the upgrade method and cleaner will no doubt leave artifacts and residue from the previous install.
This is not our fault. This is the design by Android. Please do not complain to us, we hate it too.

This would be your ideal flashing method when using the cleaner on a rom upgrade.
  1. Flash ROM
  2. Flash ROMCleaner
  3. Boot
  4. Setup Phone
  5. Flash Setup Wizard Remover
  6. Use Phone as Normal
Patric, craack and I do not officially endorse the use of rom upgrades and as such will not be hold accountable for any problems that arise from them.
With the use of this cleaner script and the backup/install apps option alongside other data backup tools such as Titanium backup (Data only) should negate the need to use the upgrade method.
Full Backup & Restore
This is the daddy. A full on backup of Apps, Accounts, Bluetooth pairings, Mail accounts (including Inbox) and WiFi APs keys, wipe and reinstall of a cleaned rom.
This is usefull when you have been playing around too much and fooked somethig up but dont have a nandroid or just want the feeling of a freshly installed rom but dont want to lose some settings.
  1. Flash Backup Tool
  2. SuperWipe (Format /system, /data, /cache, /dalvik-cache)
  3. Flash Rom
  4. Flash ROM Cleaner which will also install Apps
  5. First Boot
  6. Setup Phone (Sign in at Google and sync all your data)
  7. Flash Setup Wizard Remover
  8. Flash Mods & App Installer (If you have added Apps, mods etc to ../SecondBoot folder)
  9. Flash Settings Restorer
  10. Use Phone
ROMCleaner Logs & Support
To make troubleshooting easier for us we have included a logging feature into the toolset to aid in trouble shooting.
Each script will create its own set of logs which will be stored in /sdcard/ROMCleaner/Logs
If you should run into problems, please attach these logs to your post in the thread to aid us in solving your issue.
If you don't help us with the logs we will for sure not be able to help you.


Mods & App Installer
!!! WARNING - ADVANCED USERS ONLY !!!
This tool has so far been successful in our tests and has been taken out of the experimental phase. Please note though the majority of mods we have tried have worked perfectly but some have caused bolops and black screens, usually heavy system apks such as framework-res and com.htc.resources.
For that reason it is for those users that know how to handle mod zips and understand the structure within them and can easily revert any changes made.
This script functions in a simialr way to the backup and installation of apps except it is used for mods which need to be flashed after the phone has had its first boot.
Such mods ,if flashed before the system has booted, have been know to cause errors such as bolops and black screens.
It was built to try and cut down on the recovery navigation of having to select each zip in turn. With this installer you will only need to flash one zip to have all your mods installed at once. It also allows you have finer control over the mods as you are dealing with normal folders and files rather than zips.
To Use
If you have flashed the folder creator you will find a folder within the sdcard/ROMCleaner folder on your SD called SecondBoot which in itself contains common system folders where mods are flashed to.
Take your mod zip, extract and place the files into these folders according to the structure in the zip.
Upon flashing the installer these files will be placed in the correct places and also have the correct permissions set to them.
A Little About The Team
[HUMUR]
Patrics83 spent many months cursing HTCs decision to fill his precious device with crap he didnt want with no way to remove it. After hundreds of letters, emails and even stalking the CEO with no response he finally decided enough is enough and ROMCleaner was born. He spends his time plotting revenge against Sense roms and their bloat in the hope that one day, his message to HTC will get through.
Dude360 one day stumbled across a small post regarding removing crap from his lovely rom. Patric offered him a small taste of how clean a rom could be but it wasnt enough. Dude360 wanted more. He wanted it all, a Sense rom with the size and speed of a AOSP rom. It soon took him over, he began creating monsterous abomaonations which no man should ever flash. Patric decided Dude360 needed a mentor, someone to calm his addiction to cleaning and proceeded to teach him the zen of ROMCleaner.
craack was just a innocent young man when he was abducted by Patric and Dude. They forced days and days of flashing and reflashing roms to get the cleaner working the way they wanted. He tried to resist but the cleaner was too strong and he finally gave in and become one of them. craack now wonders the realm of XDA searching out roms and the unneeded crap they come with to try to fulfill his goal of creating the ULTIMATE CLEANER LIST!
[/HUMUR]
 
Last edited:

Patrics83

Inactive Recognized Developer
Feb 19, 2010
5,620
8,223
Gothenburg
Update - ROM Cleaner v1.1

ROM Cleaner v1.1 - 2012-02-06

-Removed an app from the script that caused FC on Market

Don't use ROM Cleaner v1.0 or ROMCleaner_user.txt from v1.0

Many thanks to jotha for finding the issue... Lucky bastard :)
 
Last edited:

dimanchec3

Senior Member
Jun 26, 2011
182
53
Panama
Thx for coming to our thread.

As you can see we found the reason. And you should use ROM Cleaner v1.1 instead. Now you won't have FC on market...

Sorry for the trouble ;)

Initial releases must have at least one bug :)

Wow thanks!!

It is working perfectly now!! :D

I really like when a bunch of non-used apps disappear that easy on the phone lol.

--

Don't worry dude, you are doing a great job!
 
  • Like
Reactions: Patrics83

Patrics83

Inactive Recognized Developer
Feb 19, 2010
5,620
8,223
Gothenburg
First use earlier. Seems to have worked out extremely well indeed

Sent from my Galaxy Nexus using xda premium


This is a phenomenal tool, thanks so much for providing this to the community. It's much appreciated.


Wow thanks!!

It is working perfectly now!! :D

I really like when a bunch of non-used apps disappear that easy on the phone lol.

--

Don't worry dude, you are doing a great job!


Thanks guys for your comments and feedback!

Just let us know if we should add@remove anything. Also feedback on the additional tools would be appreciated ;)


Sent from my GT-P7510 using xda premium
 

Patrics83

Inactive Recognized Developer
Feb 19, 2010
5,620
8,223
Gothenburg
Update!

Backup Tool v1.1 - 2012-02-08
-Added a command to remove encrypted apps from backup dir. Encrypted apps can't be installed like normal apk's


Enjoy ;)
 
  • Like
Reactions: MarckX

Patrics83

Inactive Recognized Developer
Feb 19, 2010
5,620
8,223
Gothenburg
Hey guys!

I noticed in my download stats that many of you download Settings Restorer, but then I saw that there was very little downloads at Backup Tool ;)

This is weird, because both scripts are needed, otherwise it won't work..

Maybe the guide is unclear? Please feel free to give us input in this matter.

Backup Tool does the following:
  • Back's up your Apps
  • Wifi keys
  • BT devices
  • Mail settings
  • Accounts

When flashing ROM Cleaner, Backed up Apps will be restored (this saves you loads of time after fresh install) and System Apps deleted if you wish.

Settings Restorer is restoring the following:
  • Wifi keys
  • BT devices
  • Mail settings
  • Accounts

/Patric
 
  • Like
Reactions: craacK and sert00

Patrics83

Inactive Recognized Developer
Feb 19, 2010
5,620
8,223
Gothenburg
Is there anyone here that knows why there is so low interests for ROM Cleaner?

I see we still have a few downloads but not even close to the other threads...

I know there not much to remove from your devices but still there is a great way to backup / install apps etc. And I'm sure you want to remove at least 1-2 apps ;)

Please let us know if we need to improve something...

Sent from my Desire HD
 

Slipdoozy

Senior Member
Aug 3, 2008
53
12
Acer Question?

hi is this "[SCRIPT] ROM Cleaner v1.1 | Remove Bloatware" useful on my Acer a500 running any of these:
------------------------------------------------------------------
civato-FLEXREAPER-R6-GOLD-EDITION-b2b ~379 MB
FLEXREAPER-R5-AR-HW ~370 MB
KJY_2010_Icylicious_REV_12 ~453 MB
KJY_2010_Icylicious_REV_Stripped_ZZ ~233 MB
Lightspeed_4.1 ~239 MB
------------------------------------------------------------------
basically ICS has alot of apk's i think i could get rid of.

theirs are from 233 MB to 453 MB or more.
Mine cleaned up is around 159 MB (un-flashed) not tested.
im guessing around 75 MB extra free?
even putting in a few small apk's like (juice defender - droid wall - Root Explorer - TitaniumBackup)
From what ive read TitaniumBackup is uneeded?
 

Patrics83

Inactive Recognized Developer
Feb 19, 2010
5,620
8,223
Gothenburg
hi is this "[SCRIPT] ROM Cleaner v1.1 | Remove Bloatware" useful on my Acer a500 running any of these:
------------------------------------------------------------------
civato-FLEXREAPER-R6-GOLD-EDITION-b2b ~379 MB
FLEXREAPER-R5-AR-HW ~370 MB
KJY_2010_Icylicious_REV_12 ~453 MB
KJY_2010_Icylicious_REV_Stripped_ZZ ~233 MB
Lightspeed_4.1 ~239 MB
------------------------------------------------------------------
basically ICS has alot of apk's i think i could get rid of.

theirs are from 233 MB to 453 MB or more.
Mine cleaned up is around 159 MB (un-flashed) not tested.
im guessing around 75 MB extra free?
even putting in a few small apk's like (juice defender - droid wall - Root Explorer - TitaniumBackup)
From what ive read TitaniumBackup is uneeded?

I have done some research and it seems like the script's should work.

Best thing you could do is to make a nandroid and then follow the instructions in 2nd post.

When you are done, please send me all logs located in /sdcard/ROMCleaner/Logs/

Good luck!
 

Top Liked Posts

  • There are no posts matching your filters.
  • 23
    header.png



    About48.png


    • ROM Cleaner deletes Apps and files from your system based on our default list or users choice
    • Backup Apps with Backup Tool and let ROM Cleaner restore all your apps before first boot
    • Restore your mail settings, accounts, wifi keys and paired Bluetooth devices with Settings Restorer
    • Follow the guide in second post and you will be just fine :D
    ROM Cleaner Featured On XDA!!!

    Also read these nice articles!
    XDA Front page!
    Evil-Dragon's Blog!

    light120.png


    Why ROM Cleaner48.png


    • very nice, simple and fast way to delete stuff from your device
    • takes less then 5 seconds to delete all the listed applications and files in the list
    • no trash left behind as it will be if you delete files manually using RootExplorer
    • more free RAM for apps that you are actually using
    • users have reported better battery life and device speed improvements with ROM Cleaner
    If you find this tool good, great, awesome or maybe even the best thing you ever tried, then please send us a beer or hit the "Thanks Button" or leave some feedback ;)

    Before and after pictures.
    In this example, Desire HD loaded with ARHD 5.2.5 - Sense 2.1.

    Before ROM Cleaner | After default ROM Cleaner

    light120.png


    Please always respect our work and be friendly and helpful to other members in this thread.

    This is an example of how the ROMCleaner text file looks like. Many, Many more Apps in the real list.
    Code:
    [SIZE="2"]#
    #	Applications
    #
    #AdobeReader.apk                                    Adobe PDF Reader
    #com.adobe.reader-1.apk                             Adobe PDF Reader
    BooksTablet.apk                                     E-Book Reader
    #BrowserGoogle.apk                                  Internet Browser
    #Calculator.apk                                     Calculator
    CarHomeGoogle.apk                                   Car Home Google - Car Panel
    #ChromeBookmarksSyncAdapter.apk                     Google Chrome Bookmark Sync
    Currents.apk                                        Google Currents - Magazine's
    #DeskClock.apk                                      Desktop Clock / Alarm
    #DeskClockGoogle.apk                                Desktop Clock / Alarm
    Development.apk                                     Dev Tools
    #DSPManager.apk                                     DSPManager
    #ESFileExplorer.apk                                 ES File Explorer
    #com.estrongs.android.pop-1.apk                     ES File Explorer
    #FaceBook.apk                                       FaceBook
    #com.facebook.katana-1.apk                          FaceBook
    #FaceLock.apk                                       Face unlock feature (Cool, but pointless)
    #GalleryGoogle.apk                                  Gallery
    #GoogleEarth.apk                                    Google Earth
    
    Plus many more... Download the complete list in the download section.[/SIZE]

    If you get some kind of issues after flashing ROM Cleaner, reflash the ROM and check if the issue still exists.
    Important: Don't spam ROM development threads about issues caused by this script. You must always report problems in this thread and we will most likely help you as fast as we can.

    Important:If you want to report a problem, give us all log files located in /SDCard/ROMCleaner/Logs and your ROMCleaner_user.txt! Just make a zip of the files and upload it.


    light120.png


    Changelog48.png

    Code:
    [SIZE=2]
    [COLOR="royalblue"][B]Backup Tool v1.1 - 2012-02-08[/B][/COLOR]
    -Added a command to remove encrypted apps from backup dir. Encrypted apps can't be installed like normal apk's 
    
    ___________________________________________________________________________________________
    
    
    [COLOR="royalblue"][B]ROM Cleaner v1.1 - 2012-02-06[/B][/COLOR]
    -Removed an app from the script that caused FC on Market
    
    [COLOR="Red"]Don't use ROM Cleaner v1.0 or ROMCleaner_user.txt from v1.0[/COLOR]
    
    ___________________________________________________________________________________________
    
    
    [COLOR="royalblue"][B]Initial release - 2012-02-05[/B][/COLOR]
    -Backup Tool v1.0
    -Folder Creator v1.0
    -Mods and App Installer v1.0
    -ROM Cleaner v1.0
    -Settings Restorer v1.0
    -Setup Wizard Remover v1.0
    
    [/SIZE]


    Downloads48.png



    To be flashed before full wipe and ROM flash

    Folder Creator v1.0

    Backup Tool v1.1


    To be flashed after flashing ROM and before first boot

    ROM Cleaner v1.1

    ROMCleaner_user.txt from ROM Cleaner v1.1
    Right-Click and Save as...
    >Follow instructions in second post how to edit this to fit your demands...


    To be flashed after first boot

    Settings Restorer v1.0

    Mods and App Installer v1.0

    Setup Wizard Remover

    Also make sure to use Notepad++ when editing ROMCleaner_user.txt in Windows.
    Requirements: Rooted and CWM Recovery installed

    light120.png

    Please feel free to use our banner made by craacK

    7pkgqyp

    light120.png


    Donations48.png


    Thanks a lot for all donations :D

    MarckX x2 | Tomi Mykrä x2 | craacK x1 | Anthony Hogan x1 | Pietrorlando Giordano x1 | Mastacheata x1
    preacher65 x1 | PaulGiz x1 | avatar_ro x1 | verynuclear x1 | JagSem x1 | Clarifiante x1 | Rosete Ryan Kim x1
    Xphoid x1 | rayford85 x1 | Simi007 x2 | z31s1g x1 | malybru x1 | HTC-Gunge x1 | Laurentius26 x1





    light120.png


    Credits48.png


    Dude360 how made a great work building this tool with me.
    craacK for all the help with the development.
    Madmaxx82 for his script skills and help making this one fly ;)
    Mike1986 & lukogriffioen for inspiration.
    The rest of Team Revolution for supporting me.
    Special thanks goes to Whiskey103 for hosting my files.
    MikeChannon (admin) for all the help.
    And ofc to everyone who supports us and help us to make it even better.

    Thx jotha for all testing with the Nexus release
    11
    Yes, yes I know your thinking "Hmm this seems a pretty long long post so Im not gonna bother reading it."
    It contains information for every aspect of the scripts, you wont need to read it all!
    The majority of users will just need to read the Quick Start Section
    You dont need to read the entire guide just to use this script!

    Please dont quote this entire post!
    Contents
    • A Complete N0oBs Guide
    • Quick Start Guide
    • Summary
    • Breakdown Of Zips
    • - Folder Creator
    • - ROMCleaner
    • - Backup Tool
    • - Settings Restorer
    • - Setup Wizard Remover
    • - Mods & App Installer
    • How To Create Your Own List
    • Examples Of Usage
    • - Fresh ROM
    • - ROM Upgrade
    • - Full Backup & Restore
    • ROMCleaner Logs & Support
    • A Little About The Team
    A Complete N0oBs Guide
    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
    Code:
    /sdcard/ROMCleaner
    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:
    Code:
    /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.
    EVERYTHING BELOW THIS RED LINE YOU DONT NEED TO KNOW.
    ITS A COMPLETE REFERENCE GUIDE FOR THE ENTIRE TOOLSET WE DO RECOMMEND YOU HAVE A LOOK AT IT


    _______________________________________________
    <- The Red Line


    Simple Breakdown
    • Folder Creator - Creates all nesercery folders automatically for you on SDCard
    • ROMCleaner - Will clean your rom using either default list or user list
    • Backup Tool - Will backup Apps and settings* to SD for you
    • SettingsRestorer - Restores backed up settings* made with backup Tool
    • Setup Wizard Remover - Removes setup wizards
    • Mods & App Installer - Installs using the SecondBoot folders
    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.
    On flashing, the RC zip will do the following things:
    1. Install our script and related files to /tmp
    2. Check if the folder is present on the SD card, if not then it will create it.
    3. Install the default cleaner list (ROMCleaner.txt) overwriting any older versions.
    4. Check to see if a custom list is present (ROMCleaner_user.txt).
    5. If it is then it will check for Windows encoding and convert to UNIX if needed.
    6. If it is not then it will use the default.
    7. Proceed to read the list and delete all the files and folders.
    8. Copy any backuped up apps back to /data/app
    9. Create Logs on the SD Card.
    Note that the time it takes for the apps to be copied will vary dependent on the number of apps you have installed/are installing as will the first boot of the rom as most roms these days will automatically zipalign the data partition. On 200+ apps it takes under a minute to install and adds roughly 4-6mins to your boot time.
    Due to the naming convention of apks when updated (they are appended with -1, -2 etc) please ensure you check for duplicates to avoid doubling up and wasting space. We will leave the organisation of your apps in this folder to you ;)
    Now to save time and bandwidth when installing a rom it is possible to have your apps 'pre-installed' before first boot.
    On flashing, the zip will copy all apks located in
    Code:
    data/app
    to
    Code:
    sdcard/ROMCleaner/FirstBoot/data/app
    as well as several system files to your SD card in preperation for your new rom.
    When the ROMCleaner is run it will copy these apks back to data/app for you before booting the rom.
    We are slowly adding support for apps that are provided by the rom devs to make sure that these apps are not copied across to ensure you will always receive the uptodate version included with your rom.
    If you feel support for your rom should be included as default please contact us in the thread.
    When flashed this zip will do the following:
    1. Install our script and related files to /tmp
    2. Check if the folder is present on the SD card, if not then it will create it.
    3. Backup Accounts, Bluetooth pairings, Mail accounts (including Inbox) and WiFi APs keys
    4. Copy all Apps (not app data) found in /data/app/
    5. Create Logs on the SD Card.
    Accounts, BT, Mail accounts and Wifi can only be restored using the Settings Restorer.
    This script will attempt to restore any files backed up by the backup tool.
    These settings are stored by the Android system and are usually lost when flashing a rom. This can be annoying if you have a lot of wifi passwords stored or a few BT pairings which you dont want to lose.
    It is important to note that in the majority of cases these settings will be correctly applied but sometimes for an unknown reason they dont and may cause errors. We are still trying to track these down. If you do encounter them PLEASE post in the thread so we can gather some information from you to aid in this process.
    This tool also has limitations when it comes to moving rom base. Please do not attempt to restore these settings as it will more than likely cause errors.
    The setup remover is a small additional zip that will remove the setup wizards which run at first boot.
    Once these wizards have been run they become absolutely useless and as such can be removed safely.
    Unfortunately they are tied into several aspects of the system and removing them before the roms first boot can cause some weird errors and FC's


    Creating Your Own List
    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
    Code:
    /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:
    Code:
    UselessApp.apk
    Simple as that ;)
    To add folders:
    Code:
    "/system/app/UselessFolder"
    Ignored example:
    Here, both the empty folder and UselessApp2 will be deleted while UselessApp1 will be ignored.
    Code:
    "/system/app/EmptyFolder"
    #UselessApp1.apk
    UselessApp2.apk
    We have also included the ability to batch delete a certain filetype by using the following syntax -
    Code:
    "/path/to/folder/*.fileextension"

    Heres an example from the default list to remove all .png images from the resources folder:
    Code:
    "/system/customize/resource/*.png"

    Heres a couple of example flashing procedures for the most common ways of flashing a rom and using the ROMCleaner toolset.
    Before doing anything you should first flash the folder creator zip to create the folder structure for you.
    Flash'n'Go - Full Wipe - Clean System
    So this is your typical flashing procedure for a ROM starting with a full wipe, clean system, and no apps or settings backed up.
    1. SuperWipe
    2. Flash ROM
    3. Flash ROM Cleaner
    4. First Boot
    5. Setup Phone
    6. Flash Setup Wizard Remover
    7. Use Phone as Normal
    ROM Upgrade
    Obviously using the 'upgrade' method to install a rom will replace any files you have removed with the cleaner the first time round.
    You can use the cleaner again straight after flashing a rom upgrade.
    Be warned, using the upgrade method and cleaner will no doubt leave artifacts and residue from the previous install.
    This is not our fault. This is the design by Android. Please do not complain to us, we hate it too.

    This would be your ideal flashing method when using the cleaner on a rom upgrade.
    1. Flash ROM
    2. Flash ROMCleaner
    3. Boot
    4. Setup Phone
    5. Flash Setup Wizard Remover
    6. Use Phone as Normal
    Patric, craack and I do not officially endorse the use of rom upgrades and as such will not be hold accountable for any problems that arise from them.
    With the use of this cleaner script and the backup/install apps option alongside other data backup tools such as Titanium backup (Data only) should negate the need to use the upgrade method.
    Full Backup & Restore
    This is the daddy. A full on backup of Apps, Accounts, Bluetooth pairings, Mail accounts (including Inbox) and WiFi APs keys, wipe and reinstall of a cleaned rom.
    This is usefull when you have been playing around too much and fooked somethig up but dont have a nandroid or just want the feeling of a freshly installed rom but dont want to lose some settings.
    1. Flash Backup Tool
    2. SuperWipe (Format /system, /data, /cache, /dalvik-cache)
    3. Flash Rom
    4. Flash ROM Cleaner which will also install Apps
    5. First Boot
    6. Setup Phone (Sign in at Google and sync all your data)
    7. Flash Setup Wizard Remover
    8. Flash Mods & App Installer (If you have added Apps, mods etc to ../SecondBoot folder)
    9. Flash Settings Restorer
    10. Use Phone
    ROMCleaner Logs & Support
    To make troubleshooting easier for us we have included a logging feature into the toolset to aid in trouble shooting.
    Each script will create its own set of logs which will be stored in /sdcard/ROMCleaner/Logs
    If you should run into problems, please attach these logs to your post in the thread to aid us in solving your issue.
    If you don't help us with the logs we will for sure not be able to help you.


    Mods & App Installer
    !!! WARNING - ADVANCED USERS ONLY !!!
    This tool has so far been successful in our tests and has been taken out of the experimental phase. Please note though the majority of mods we have tried have worked perfectly but some have caused bolops and black screens, usually heavy system apks such as framework-res and com.htc.resources.
    For that reason it is for those users that know how to handle mod zips and understand the structure within them and can easily revert any changes made.
    This script functions in a simialr way to the backup and installation of apps except it is used for mods which need to be flashed after the phone has had its first boot.
    Such mods ,if flashed before the system has booted, have been know to cause errors such as bolops and black screens.
    It was built to try and cut down on the recovery navigation of having to select each zip in turn. With this installer you will only need to flash one zip to have all your mods installed at once. It also allows you have finer control over the mods as you are dealing with normal folders and files rather than zips.
    To Use
    If you have flashed the folder creator you will find a folder within the sdcard/ROMCleaner folder on your SD called SecondBoot which in itself contains common system folders where mods are flashed to.
    Take your mod zip, extract and place the files into these folders according to the structure in the zip.
    Upon flashing the installer these files will be placed in the correct places and also have the correct permissions set to them.
    A Little About The Team
    [HUMUR]
    Patrics83 spent many months cursing HTCs decision to fill his precious device with crap he didnt want with no way to remove it. After hundreds of letters, emails and even stalking the CEO with no response he finally decided enough is enough and ROMCleaner was born. He spends his time plotting revenge against Sense roms and their bloat in the hope that one day, his message to HTC will get through.
    Dude360 one day stumbled across a small post regarding removing crap from his lovely rom. Patric offered him a small taste of how clean a rom could be but it wasnt enough. Dude360 wanted more. He wanted it all, a Sense rom with the size and speed of a AOSP rom. It soon took him over, he began creating monsterous abomaonations which no man should ever flash. Patric decided Dude360 needed a mentor, someone to calm his addiction to cleaning and proceeded to teach him the zen of ROMCleaner.
    craack was just a innocent young man when he was abducted by Patric and Dude. They forced days and days of flashing and reflashing roms to get the cleaner working the way they wanted. He tried to resist but the cleaner was too strong and he finally gave in and become one of them. craack now wonders the realm of XDA searching out roms and the unneeded crap they come with to try to fulfill his goal of creating the ULTIMATE CLEANER LIST!
    [/HUMUR]
    3
    Hey, glad you finally made it to GNex :p. Used your tool on Sensation already.
    Just tried it on my Nexus, works like a charm.
    Keep it up, mate :D.
    2
    Update - ROM Cleaner v1.1

    ROM Cleaner v1.1 - 2012-02-06

    -Removed an app from the script that caused FC on Market

    Don't use ROM Cleaner v1.0 or ROMCleaner_user.txt from v1.0

    Many thanks to jotha for finding the issue... Lucky bastard :)
    2
    Nope, I only used Super Wipe Lite.

    Thx for coming to our thread.

    As you can see we found the reason. And you should use ROM Cleaner v1.1 instead. Now you won't have FC on market...

    Sorry for the trouble ;)

    Initial releases must have at least one bug :)