[APP] 'OdexMe' application - Galaxy S II Themes and Apps

OdexMe is an application i've written for my MCR ROM, but that should work on any ROM with init.d support and busybox in /system/xbin.
Basically, it's an APK you push to /system/app and when you run it, it...
Reboots your device
Odexes everything in /system/app
Deletes the dalvik cache and it's own APK (as you only need to run it once)
Reboots the device and rebuilds the dalvik-cache
As you may or may not know, the dex files for the system applications take a fair old chunk of space on data - this gets around that.
Of course, odexed /system/data means you can't make any /system/framework changes, but how often do you need to do that? If you DO need to, you can reflash your ROM, do the changes, then run OdexMe again.
As I say, this is written for and tested on MCR, so if you try it, backup first and use at your own risk.
You can check it's worked by looking at /system/app after reboot, it should have a bunch of odex files, plus /data/dalvik-cache will have shrunk lots.
You can grab it in this post and one last thing - the initial reboot and odex takes a while, so be patient.
ROM devs - feel free to include this if you like it in your ROMs, but please let me know (and give me credit) so I can contact you when a new update comes out (i'm working on the next release with a few other tweaks).
Enjoy!
P

Thanks Paul..
You are very productive on XDA today.

thanks, always good to have that options..
NICE WORK!

Nice work Paul Thanks
PS Loving the your Custom ROM for the Gal s2

paulobrien said:
OdexMe is an application i've written for my MCR ROM, but that should work on any ROM with init.d support and busybox in /system/xbin.
Basically, it's an APK you push to /system/app and when you run it, it...
Reboots your device
Odexes everything in /system/app
Deletes the dalvik cache and it's own APK (as you only need to run it once)
Reboots the device and rebuilds the dalvik-cache
As you may or may not know, the dex files for the system applications take a fair old chunk of space on data - this gets around that.
Of course, odexed /system/data means you can't make any /system/framework changes, but how often do you need to do that? If you DO need to, you can reflash your ROM, do the changes, then run OdexMe again.
As I say, this is written for and tested on MCR, so if you try it, backup first and use at your own risk.
You can check it's worked by looking at /system/app after reboot, it should have a bunch of odex files, plus /data/dalvik-cache will have shrunk lots.
You can grab it in this post and one last thing - the initial reboot and odex takes a while, so be patient.
ROM devs - feel free to include this if you like it in your ROMs, but please let me know (and give me credit) so I can contact you when a new update comes out (i'm working on the next release with a few other tweaks).
Enjoy!
P
Click to expand...
Click to collapse
working on my kg5 rom....
cheers pal...
can i do a link from my thread?¿??

SERGI.3210 said:
working on my kg5 rom....
cheers pal...
can i do a link from my thread?¿??
Click to expand...
Click to collapse
Sure!
P

Hi Paul!
As usual you did a fantastic job!
I was wondering if your app also delete classes.dex inside APKs! As you already know this should be deleted as well!
Thanks in advance!
L.

Nice!
Works with Revolution 2.5 (KG6).
Now the Tw4Launcher from Fr4gg0r is also odext and gmail shows more than the last 3 mails on startup. THX
@Leomar
Yes it does delete the classes file inside the apk.

I'm not that known with odexed and deodexed stuff etc. but i'm wondering what's the advantage of odexing the system apps?

DruNKfuX said:
I'm not that known with odexed and deodexed stuff etc. but i'm wondering what's the advantage of odexing the system apps?
Click to expand...
Click to collapse
*Quicker initial bootups of custom ROMs
*Less memory is consumed
*Less storage used in /data due to the fact that pre-optimised dex files are stored on /system already (save space and boost performance)

Thanks Paul

LeoMar75 said:
Hi Paul!
As usual you did a fantastic job!
I was wondering if your app also delete classes.dex inside APKs! As you already know this should be deleted as well!
Thanks in advance!
L.
Click to expand...
Click to collapse
Yes. It also then zipaligns the resulting APK too.
P

Thanks for explanation.. I'll stick with deodexed atm, enough memory free and space left in data and boot speeds i dont care about

Works fine on criskelo v12.
Thanks!

I´m Sorry, but i think (and I tested it) on my Milestone and the Bootlogo don´t move. So it stands on one Point and I have to go back into my OR..for sure i´ve made an nandroid Backup..do you think this is possible?
Milestone CM has the init.d folder and the BusyBox.. thank`s for your hard work !

i'll try it on my MIUI 1.8.12 rom today, but first a nandroid just in case

Paul this is the sort of thing I know you are really good at doing, but you don't release enough useful apps like this.
You should start releasing more apps like this that are useful to the dev community as a whole.
Good job.

Lennyuk said:
Paul this is the sort of thing I know you are really good at doing, but you don't release enough useful apps like this.
You should start releasing more apps like this that are useful to the dev community as a whole.
Good job.
Click to expand...
Click to collapse
I keep meaning to pack all these sorts of things up into a 'super-app' but never get the time.
P

Hi Paul,
Massive thanks for the application, I deodexed KG6 and edited some system files to create a ROM with just the features I really wanted.
Now odexed successfully with your application.
Just a quick question, would it be possible to odex /framework later down the line too? I'm assuming the framework would need to be odexed first before /system/app?
Thanks again, great to see you on the SGSII scene after I was a subscriber to Modaco for your work on the Desire.
Sent from my GT-I9100 using XDA App

I used this app moment I noticed in MCR rom and then odexed cog and ASOP Rom. All is well except I couldn't see any of the ringtones in either of these two roms.
I will give it another go and report back.
Thanks for a great app.
Confirmed; not only ringtones but also music player can't see any song too. checked with drm services, these are running fine.

Related

odexed OR deodexed?

What are the benefits/fallbacks of each? I am trying to decide which I should use..
thanks
Http://forum.xda-developers.com/showpost.php?p=6782283&postcount=2
Lrn2search
fallentimm said:
Http://forum.xda-developers.com/showpost.php?p=6782283&postcount=2
Lrn2search
Click to expand...
Click to collapse
lol, sorry for not searching.. i have more posts than you.. jeez..
Taken from Damage's DamageControl Thread.
Odex vs Deodex
Theres plenty of debate over what is faster/better to use, im not going to take sides in this one. This is just information about what the differences in the two are, try for yourself.
Deodex basically takes the odex file and stuffs it into the apk as a classes.dex. First boot it dissembles the file into /dalvik-cache (i believe). Now there is basically 2 copies of the odex, one in the apk one in cache. This makes it "portable". This allows modders to work on the apks & easily change stuff. If you want themes or stuff like lockscreen fixes you MUST use Deodex.
Odex is how things come stock. It takes up less room but making modifications or taking apks from other roms is hard. You cannot use themes with this version!! To see odex in dcupdater you must go to menu -> configuration -> rom update settings -> display all roms & display experimental roms. Its marked experimental to avoid confusion because themes in dcupdater will not work with it.
Odex - 374 MB free after fresh wipe without setting sync accts up
Deodex - 329 MB free after fresh wipe without setting sync accts up
I use deodex because I like to theme my Hero and EVO. There are some great themers out and it just adds another benfit of "rooting"

Odexing Question

So i think most of us know what odexing is, it saves us a LOT of spave (40-50mb) on our ROM's and in some case makes them run faster
The drawback of odexing ROM's is that this renders them no longer skinnable/themeable
This script will odex a ROM: http://android.modaco.com/content/htc-hero-hero-modaco-com/301910/odex-script-for-unodexd-roms/
What i was wondering is, that if you flash a deodexed rom which is completely skinnable, and flash a theme such as expresso bar, if you THEN odex the system would that work?
So to summarize, if you theme your system BEFOREHAND, can you then odex the system?
Thanks in advance, sorry if i'm completely wrong here
I don't see why not, we just need a Guinea Pig to try it
Can you ODEX a single APK? I've got a ROM which is ODEX'd but adding non-odex'd files to it takes up a bit more space...
Also, what do you use to run the script?
Yeah you can odex a single APK, i've seen many threads about this, some people have even made this into a one-step process, almost like signing apps on a mac is now a one-step thing
I haven't run the script yet although i will as i like to customize my roms before flashing and these APKs are not odexed, i am running djdroid odexed, apart from some custom apps i flash with it and the expresso bar, i'll run the script and see if it'll odex the expresso bar and apps with it
I also see that the odexing package up in my first link also includes a zipaligning utility which is mighty useful
- Download and extract this zip http://www.romraid.com/paul/modaco-odex-1.1.zip
- Push the odex directory you just extracted to the device with 'adb push odex /data/odex/'
- Run the odex script with 'adb shell /data/odex/odex.sh'
The device will reboot (and take a little while to boot as it rebuilds the dalvik-cache).
EDIT: if anyone is interested i might odex my current rom (djdroid already odexed but flashed about 10 deodexed APKs and expresso bar) and i can test the memory and linpack performance before and after
NOTE: the process should also zipalign the APKs
If it fails then i've already backed up and we all learn something
Ok am currently doing the odexing process on an already odexed djdroid ROM.
I have installed about 15 apps which are not odex'd to internal memory and have flashed the expresso bar.
Current available space: 94.52mb
Current linkpack score: 40.099
Available space after odex: 97.23
New linpack score after odex: 41.29
HOWEVER: it seems that all the apps i customly flashed into the ROM have disappeared which is not good, all apps installed via market however are functioning great. Themes applied beforehand also working perfectly. Then again I odexed an already odexed ROM so perhaps this is why.
To summarize, apps via market work GOOD, themes applied before odex work GOOD, apps flashed into the system (estrong, mybackupro) seem to have disappeared which is NOT GOOD, however this was done on an ALREADY ODEXED ROM. If this were to be done on a deodexed ROM i can imagine this freeing a LOT of space and perhaps there wouldn't be the one problem stated above WOULD RECOMMEND
Hope this helps anyone
I'm trying to odex my rom but I get this for all apk's:
--- BEGIN '/system/app/Vending.apk' (bootstrap=0) ---
--- would reduce privs here
--- waiting for verify+opt, pid=2490
--- END '/system/app/Vending.apk' --- status=0xff00, process failed
And the result is a empty odex file (0 bytes).
Any idea what's happening here?
Thanks.
BR.
Any method (script) to odex a rom before flashing?
cgrec92 said:
Ok am currently doing the odexing process on an already odexed djdroid ROM.
I have installed about 15 apps which are not odex'd to internal memory and have flashed the expresso bar.
Current available space: 94.52mb
Current linkpack score: 40.099
Available space after odex: 97.23
New linpack score after odex: 41.29
HOWEVER: it seems that all the apps i customly flashed into the ROM have disappeared which is not good, all apps installed via market however are functioning great. Themes applied beforehand also working perfectly. Then again I odexed an already odexed ROM so perhaps this is why.
To summarize, apps via market work GOOD, themes applied before odex work GOOD, apps flashed into the system (estrong, mybackupro) seem to have disappeared which is NOT GOOD, however this was done on an ALREADY ODEXED ROM. If this were to be done on a deodexed ROM i can imagine this freeing a LOT of space and perhaps there wouldn't be the one problem stated above WOULD RECOMMEND
Hope this helps anyone
Click to expand...
Click to collapse
Interesting. I might try this. I am assuming my rom is deodexed as each .apk has a .dex file within it.
If I do it I will post some results and comparisons. I'm not planning any theme or font changes so this might be a good option for me!
Can anybody post somewhere this script? (link looks dead).
Thanks in advance.
Sent from my HTC Desire

[MOD][Froyo JP6, JPA Repository] Reboot, Recovery, Download on Shutdown menu

I take credit for nothing here except adapting it for rom im currently running (Docs JP6 v1).
It should work for any deodexed unthemed jp6 (used Docs update.zip script to remove theme as he uses some heavily modified stuff in his words 'optimised' framework that renders it useless for unpacking, repacking) so framework is stock except battery and i did it only to test if it will pack properly.
IMO this should be on every custom rom from now on.
Credits: lol almost everyone but ill try to be fair.
DocRambone- (actually requested this few days back but you prolly too busy lol) most prolific and my favorite moder here just hope he stays modest. wish you would do theme templates with your releases kinda like @enomther from Nexus does since you like tinkering with frameworks so much.
Tayutama- for bringing it to i9000 (M,T) although i think you credited wrong guy for this as well as being up there with Doc (wish you only released untehemed rom and theme as add-on).
LOL it seems that im paying homage and making requests at the same time
untermensch- who brought it to galaxy S (vibrant guy) for wonderfull instructions HERE
true credit of this mod concept is lost in history as most others have it for ages
sztupy- for being my favourite Hungarian
RyanZa- for being part of every important discussion
Supercurio-for always being open to suggestions no matter how popular you get
Kalpik- for popularizing battery mod and is gaining momentum in rom cooking fast
Without you guys this forum would be dead.
That is not to say that other less known guys are any less important so big credit for all rest.
feel free to make any changes and improvements on this and really hope it becomes standard for cooked roms.
install with CWM or rename update.zip and use 2e recovery or unzip and manually copy to system/framework:
framework-res.apk
framework.jar
android.policy.jar
your phone dies. NMF i tested it on mine
JP6 - AOSP Lock, circle battery
For Doc like theme for this READ THIS POST
JP6 - AOSP Lock, slightly changed recovery icon, else untouched
JP6 - completely stock samsung - Thanks Tayutama
JP6 - AOSP Lock, else stock samsung - Thanks Tayutama
JPA - AOSP Lock, else stock samsung - Thanks Tayutama
JP6 - AOSP Lock, else stock samsung - Thanks Tayutama
NEW ICONS for themers and rom cookers - Thanks vanahaim
Idan73 said:
IMO this should be on every custom rom from now on.
Click to expand...
Click to collapse
USEFUL feature for compulsive flashers. I remember your request on the doc's post and did +1 to it. Can I apply this on the Doc's ROM (themed)?
you will lose theme as i have no idea of the extent the doc customized framework folder and his framework-res does no compile properly and he does not provide template with latest changes (see my request above).
thats why i added circle battery so now you can edit the rest without having to use apk manager, you can use winrar or winzip since its only pictures now.
Idan73 said:
you will lose theme as i have no idea of the extent the doc customized framework folder and his framework-res does no compile properly and he does not provide template with latest changes (see my request above).
thats why i added circle battery so now you can edit the rest without having to use apk manager, you can use winrar or winzip since its only pictures now.
Click to expand...
Click to collapse
Alright - will give it a shot and let you know. Thanks!
OK tried it and:
Recovery -> Works
Reboot -> Works
Download mode -> Works
I get the feeling its slower shutting down/booting up though - not sure if its related.
If I wanted the doc's battery, can I copy it over to your theme? Can you point me what needs to change?
Would be good if you can post this on the doc's thread so maybe he will port it into his ROM
ashwinds said:
OK tried it and:
Recovery -> Works
Reboot -> Works
Download mode -> Works
I get the feeling its slower shutting down/booting up though - not sure if its related.
If I wanted the doc's battery, can I copy it over to your theme? Can you point me what needs to change?
Would be good if you can post this on the doc's thread so maybe he will port it into his ROM
Click to expand...
Click to collapse
not my theme. default froyo jp6 theme with circle battery mod.
first boot slow due to generic lockscreen (another credit to doc for providing deodexed jp6 lockscreen mod android.policy.jar as my base)
its not slower or faster its the proper slow shutdown. the shutdown should be slow so the rom has time to save info. any other way is just like yanking the battery out with big possibility of data corruption.
heres a quick Docs themed framework-res.apk and androdena themed twframework-res.apk i think they go good together.
framework-res.apk is optimised .
just replace them in original zip script and update via CWM or manually copy via root to system/framework
hope doc does not take offense but i posted separately to gain visibility so i can get my dream of standardizing this thing and it should not be turned into repository either). i just happen to like this rom and use it so thats why it was made in docs jp6, if i was on tayutama lol than i would not have to do it.
I would like this in a JPA version if possible.
imjimmylin said:
I would like this in a JPA version if possible.
Click to expand...
Click to collapse
it would have to be by someone else (again: preferably integrated in rom by rom makers like tayutama did) or if i switch to jpa (which i dont plan at the moment).
believe me i have no idea what I'm doing lol. was just tinkering and since i have no idea, it is a painstaking work.
very useful , I'm love it.
Idan73 said:
the shutdown should be slow so the rom has time to save info. any other way is just like yanking the battery out with big possibility of data corruption.
Click to expand...
Click to collapse
Have noticed that with other shutdown utilities too... adb reboot recovery does seem to be the fastest off the blocks.
imjimmylin said:
I would like this in a JPA version if possible.
Click to expand...
Click to collapse
If you can supply me with framework.jar, framework-res.apk and android.policy.jar i can make it for JPA but they need to be deodexed meaning there can't be any .odex files.
Btw reason i credited designgears is because i took it from his rom
But i'm working on another version that puts the 3 options into a little window by itself so you will have a button saying "Reboot" and pressing on that will bring another window with those 3 options to reboot, recovery and download in them.
Will also see about getting Hot Reboot to work.
Hot Reboot is a reboot that doesn't reboot the phone meaning it kills all services and then starts those up that are needed when you boot the phone... It's faster then a normal reboot
Also have been in the plan to make a unthemed version of my rom but been thinking that if i do that there won't really be a reason to release a rom as it will pretty much be like Doc's that you can just apply a theme to it since there won't be much of a difference between his and mine if i release unthemed... Well other then i implement some stuff before he does ^^
@Tayutama : can you please make for JPA
They have battery mod version d integrated
Reg. Hot Reboot - does adb reboot recovery use Hot Reboot? It is pretty fast.
Tayutama said:
But i'm working on another version that puts the 3 options into a little window by itself so you will have a button saying "Reboot" and pressing on that will bring another window with those 3 options to reboot, recovery and download in them.
Will also see about getting Hot Reboot to work.
Hot Reboot is a reboot that doesn't reboot the phone meaning it kills all services and then starts those up that are needed when you boot the phone... It's faster then a normal reboot
Also have been in the plan to make a unthemed version of my rom but been thinking that if i do that there won't really be a reason to release a rom as it will pretty much be like Doc's that you can just apply a theme to it since there won't be much of a difference between his and mine if i release unthemed... Well other then i implement some stuff before he does ^^
Click to expand...
Click to collapse
Saw the popup mod on nexus and sense roms. LIKE THIS neat. hope when you do you make instructions as well
Hot reboot would be amazing provided it does not kill my phone.
Trust me theres plenty of things to differentiate you guys. you just have different styles and priorities but its the theme flexibility that gives us users a way to differentiate ourselves not just from each other but from day to day moods and activities.
anyways just got Doc on board for theme templates current with the changes in latest rom releases for easy themeing. Are you in. it would really simplify making themes compatible with latest roms.
right now we barely have themes section for fingers of one hand which is sad.
keep up the good work.
Hello all my friends!
Sent from my GT-I9000 using XDA App
thechamp007 said:
@Tayutama : can you please make for JPA
They have battery mod version d integrated
Click to expand...
Click to collapse
Ill look into it when i get home from work. I don't have the tools with me plus my SGS is at home
ashwinds said:
Reg. Hot Reboot - does adb reboot recovery use Hot Reboot? It is pretty fast.
Click to expand...
Click to collapse
Idan73 said:
Saw the popup mod on nexus and sense roms. LIKE THIS neat. hope when you do you make instructions as well
Hot reboot would be amazing provided it does not kill my phone.
Trust me theres plenty of things to differentiate you guys. you just have different styles and priorities but its the theme flexibility that gives us users a way to differentiate ourselves not just from each other but from day to day moods and activities.
anyways just got Doc on board for theme templates current with the changes in latest rom releases for easy themeing. Are you in. it would really simplify making themes compatible with latest roms.
right now we barely have themes section for fingers of one hand which is sad.
keep up the good work.
Click to expand...
Click to collapse
First off sorry it's Hot Restart not Hot Reboot
Hot Restart: a new option ('hot restart') has been added that will allow you to respawn android's system server process, thereby starting with a "clean system" w/o actually rebooting the device
My current problem is getting that Window to work...
Reason is those pictures you linked to are on Sense frameworks so it takes abit to look through it and figure it out.
Also about the theme templates and that... PM me about it and we can talk.
Working great on Doc_Kalpik Froyo JP6/JPM V5.1.
Hope this becomes standard on cooked roms. Much more convenient.
Will This work on my captivate running cognition UCJI6 (2.2 2.6.32.9 kernel) and it cannot manually get into downloadload mode. Only with ADB!!
Great idea!
How about for those who want to use the AOSP lockscreen?
It also depends on android.policy.jar
Tayutama said:
Ill look into it when i get home from work. I don't have the tools with me plus my SGS is at home
Click to expand...
Click to collapse
Thanks mate, eagerly waiting for it

Make themes for kitchen

I have trying to get themes to run in the Doc and Stefunel kitchen.
This is a pretty demanding task. Many (almost all) themes can not be used as is due to a non standard resources.arsc and 9.png errors.
There is some theme pro's here.
We like to find a some kind of way to enable any theme inserted in a rom.
Any ideas to make this in a easy way?
/Doc
No one here any ideas? I already proposed someone make a theme kitchen and integrate it with Doc's rom kitchen but apparently all the smart guys that got time and would know how to do that bought a Desire.
Which takes us back at doc's original question someone knows a fail-proof way to integrate themes into roms without having to flash a post-install zip?
Hi Doc,
i know this isnt way you want, but probably it can work:
What about make some script, witch will do:
1) after flashing ROM and start android - reboot android to recovery
2) (i dont know if it is possible) make script for CWM witch will automaticaly flash theme and reboot to system
If Im wrong .. ignore this
schiphol said:
Which takes us back at doc's original question someone knows a fail-proof way to integrate themes into roms without having to flash a post-install zip?
Click to expand...
Click to collapse
I've never need a post-install script to put a theme into a ROM.
Except for the JPY Gingerbread, but me and XGX got that hammered out in the thread in the Captivate forum and it works just fine without a second .zip.
MikeyMike01 said:
I've never need a post-install script to put a theme into a ROM.
Except for the JPY Gingerbread, but me and XGX got that hammered out in the thread in the Captivate forum and it works just fine without a second .zip.
Click to expand...
Click to collapse
Hi, any link to point in right direction is most welcome
I've merely dropped the framework-res.apk and twframework-res.apk into the /system/framework. And any other files like android.policy.jar that goes with it.
For JPY, I had to take a few extra steps:
http://forum.xda-developers.com/showpost.php?p=10258171&postcount=328

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

{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
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
ROM Cleaner Featured On XDA!!!
Also read these nice articles!
XDA Front page!
Evil-Dragon's Blog!
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
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.
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]
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
Please feel free to use our banner made by craacK
Thanks a lot for all donations
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
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
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
Click to expand...
Click to collapse
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.
Click to expand...
Click to collapse
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.
Click to expand...
Click to collapse
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
Click to expand...
Click to collapse
Folder Creator​
Click to expand...
Click to collapse
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.
ROMCleaner
Click to expand...
Click to collapse
On flashing, the RC zip will do the following things:
Install our script and related files to /tmp
Check if the folder is present on the SD card, if not then it will create it.
Install the default cleaner list (ROMCleaner.txt) overwriting any older versions.
Check to see if a custom list is present (ROMCleaner_user.txt).
If it is then it will check for Windows encoding and convert to UNIX if needed.
If it is not then it will use the default.
Proceed to read the list and delete all the files and folders.
Copy any backuped up apps back to /data/app
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
Backup Tool
Click to expand...
Click to collapse
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:
Install our script and related files to /tmp
Check if the folder is present on the SD card, if not then it will create it.
Backup Accounts, Bluetooth pairings, Mail accounts (including Inbox) and WiFi APs keys
Copy all Apps (not app data) found in /data/app/
Create Logs on the SD Card.
Accounts, BT, Mail accounts and Wifi can only be restored using the Settings Restorer.
Settings Restorer
Click to expand...
Click to collapse
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.
HTCSetupRemover
Click to expand...
Click to collapse
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​
Click to expand...
Click to collapse
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"
Examples Of Usage
Click to expand...
Click to collapse
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.
SuperWipe
Flash ROM
Flash ROM Cleaner
First Boot
Setup Phone
Flash Setup Wizard Remover
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.
Flash ROM
Flash ROMCleaner
Boot
Setup Phone
Flash Setup Wizard Remover
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.
Flash Backup Tool
SuperWipe (Format /system, /data, /cache, /dalvik-cache)
Flash Rom
Flash ROM Cleaner which will also install Apps
First Boot
Setup Phone (Sign in at Google and sync all your data)
Flash Setup Wizard Remover
Flash Mods & App Installer (If you have added Apps, mods etc to ../SecondBoot folder)
Flash Settings Restorer
Use Phone
ROMCleaner Logs & Support
Click to expand...
Click to collapse
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 !!!​
Click to expand...
Click to collapse
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
Click to expand...
Click to collapse
[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]
Hey, glad you finally made it to GNex . Used your tool on Sensation already.
Just tried it on my Nexus, works like a charm.
Keep it up, mate .
jotha said:
Hey, glad you finally made it to GNex . Used your tool on Sensation already.
Just tried it on my Nexus, works like a charm.
Keep it up, mate .
Click to expand...
Click to collapse
Thank you for all the help!
Now let's see what everyone else thinks about it
nice
will come back later
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
Patrics83 said:
Did you wipe /data and /system before flashing the ROM and ROM Cleaner?
Please answer in my thread. I will not follow this thread also
/Patric
Sent from my GT-P7510 using xda premium
Click to expand...
Click to collapse
Nope, I only used Super Wipe Lite.
dimanchec3 said:
Nope, I only used Super Wipe Lite.
Click to expand...
Click to collapse
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
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.
Patrics83 said:
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
Click to expand...
Click to collapse
Wow thanks!!
It is working perfectly now!!
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!
Schiehallion said:
First use earlier. Seems to have worked out extremely well indeed
Sent from my Galaxy Nexus using xda premium
Click to expand...
Click to collapse
alicious said:
This is a phenomenal tool, thanks so much for providing this to the community. It's much appreciated.
Click to expand...
Click to collapse
dimanchec3 said:
Wow thanks!!
It is working perfectly now!!
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!
Click to expand...
Click to collapse
Thanks guys for your comments and feedback!
Just let us know if we should [email protected] anything. Also feedback on the additional tools would be appreciated
Sent from my GT-P7510 using xda premium
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
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
Brilliant tool - many thanks. ROM Cleaner worked perfectly on Galaxy Nexus running ARHD.
kogvos said:
Brilliant tool - many thanks. ROM Cleaner worked perfectly on Galaxy Nexus running ARHD.
Click to expand...
Click to collapse
I'm happy to hear that!
Thx for your feedback!
Sent from my Desire HD using xda premium
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
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?
Slipdoozy said:
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?
Click to expand...
Click to collapse
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!
Happy birthday Patrics !!! ​

Categories

Resources