yashsingh1/xdaforums huggingface dataset:
[Desire HD Android Development] Patrics83:
Well if you flashed a unmodified script you should not have any sync issues at all. FriendStream widget is safe to remove.

When does this notification show up? On boot, also when ever you use your phone?

It might be a provider related issue, please try and Google it and come back with your result.

As I said before, never heard of it before and no one has reported it in my thread. So I highly doubt it has anything to do with my script.

But ofc I can be wrong so please share your result and I will track that **** down ;)
[Desire HD Android Development] liquidkernel:
Having an issue after cleaning things up.

The "search" button on the phone no longer responds inside of any launcher (Sense, ADW, GOLauncher). I know it worked prior to cleaning up sense.

Anyone know which apk might be responsible for this?
[Desire HD Android Development] CpN82:
Jumping ROMs

I also want to try the Unity ROM, but am uncertain how to modify the script to fit the Unity ROM. Can you elaborate on the "section" you have at the bottom of your cleaner script?

Your help is very much appreciated :)
[Desire HD Android Development] CpN82:
I've noticed this to. I think the button normally starts the Google Search app, but this is removed in the script. I just placed the apk in the /data/app directory of the script. You can of course just add a # in front of this line

delete("/system/app/GoogleQuickSearchBox.apk");

in the script. Then the app won't be deleted in the first place.

EDIT: It might also be this

delete("/system/app/SearchAnywhere.apk");

Maybe Patrics83 can confirm this?
[Desire HD Android Development] Dude360:
If you cleaned the rom after first boot then you may run into issues.

Youll need to clear all data from places like your launcher etc to remove the traces left.

As for the search button, I dont think there is an apk for it as the search code is written into the framework of the rom/

Make sure you dont have something set as default to use the search button as well.

Yup, really easy. The 'section' is just:

ui_print("Removing Virtuous Crap...");
delete_recursive("/sdcard/Digital Editions");
delete_recursive("/sdcard/virtuous_unity");
delete("/system/app/BlueSky.apk");
delete("/system/app/Burgundy.apk");
delete("/system/app/MySketcher.apk");
delete("/system/app/MyShelf_Widget.apk");
delete("/system/app/com.htc.TrendsWidget.apk");
delete("/system/app/MyShelf_Widget.apk");

at the end of the removal part of the script (before the installing data part) :)
[Desire HD Android Development] CpN82:
Thanks :)

So this means that I can just run the cleaner script after flashing the Unity ROM like I do when flashing the ARHD ROM?
[Desire HD Android Development] Dude360:
Yup, not only will it clean the usual stuff found in the rom that it normally cleans it will also remove stuff related to Sense 3 as well. All from the same script :)
[Desire HD Android Development] slickrick54:
Thanks buddy i appreciate it
[Desire HD Android Development] WeedMan4lbg:
Hi all

I have one question regarding the ROM CLEANER script:

I use it every time when I flash a ROM update and I'm very happy with the results, but I've decided to keep the stock widgets (bookmarks, friend stream etc) and this script deletes almost all of them no matter if I delete the whole widgets section in the updater.script

Anyone have an idea how to use the script but keep all stock widgets?

Note: I've used the latest rom_clener script
[Desire HD Android Development] lukogriffioen:
Dude its all explained in this thread. Read last few pages and first post.
[Desire HD Android Development] WeedMan4lbg:
Don't dude me dude I've done this, but when i delete the widgets I want (from the updater-script) they are deleted after flash, even if I delete the whole widgets section (from the updater-script) the widgets are still deleted after flash.....
[Desire HD Android Development] Beamen1:
You did use notepad++ (not regular notepad) to edit it right?
[Desire HD Android Development] WeedMan4lbg:
Yes, why? ?
[Desire HD Android Development] Patrics83:
It's like lukogriffioen said and if he likes to call you Dude that's just fine by me :p

Anyway it must be something you did wrong because if the command line is deleted or marked with # there is no way it will be deleted.

Please tell me your steps from the last full wipe you did.
[Desire HD Android Development] WeedMan4lbg:
The only thing from the things I've done that may result in this strange behavior is:

I flashed AR 5.2.3 on top of the AR 5.2.2 with already deleted widgets, right after the flash I've flashed rom_cleaner script and HTC-setup_wizard_remover then re-boot.
[Desire HD Android Development] eLPeCKo:
Just a suggestion, but you can try to edit your updater script, than save it exit the zip file than reopen it and try to just look if it was changed.....

Sometimes it happened to me that it did not save my changes even when I pressed save changes...
[Desire HD Android Development] Patrics83:
Please do like this. Open your edited version of ROM Cleaner. Open the updater-script and copy everything. Go to pastebin.com and paste it. send me the link.

Thank you!

I think I know what caused it but I just want to know what you did exactly.
[Desire HD Android Development] WeedMan4lbg:
http://pastebin.com/xJ9TqjBK
[Desire HD Android Development] Patrics83:
So you did like this I guess?

Wiped data flashed ARHD 5.2.2 + ROM Cleaner.

Edited the ROM Cleaner

Flashed 5.2.3 on top of 5.2.2 with the new edited ROM Cleaner.

If yes, you have two choices as I see it.

1, Test to clear data on HTC Sense.

2, Wipe data and reflash ROM then ROM Cleaner.

Next time you update your ROM without wipe you will have no issues...
[Desire HD Android Development] CpN82:
Is this the corret procedure to update a ROM? :

1. Flash new ROM on top of the old one.

2. Stay in recovery, flash ROM Cleaner.

3. Reboot.

Or you don't have to flash ROM Cleaner again after the first time after wipe?
[Desire HD Android Development] Dude360:
Yup everytime you upgrade you are putting back the files from the rom which you originally deleted so you have to run cleaner again :)
[Desire HD Android Development] CpN82:
Cool, then I assumed correctly :D

Thanks mate!
[Desire HD Android Development] WeedMan4lbg:
Tnx man, your script is ultra cool... Choice 1 do the job done, now everything is working as expected... So the thing is when installing rom without wipe htc sence data needs to be wiped...
[Desire HD Android Development] Dude360:
COMING SOON...

Patrics83 & Dude360

In collaboration with madmaxx82

Present

Flashable ROMCleaner 2.0

NEW! - Completely recoded from the ground up!

No more messing with .zips or editing updater-script!

NEW! - Super easy and noob friendly configuration!

Easily update-able files list!

NEW! - Custom List Support

Want to use you own personal cleaner list? No problem!!!

NEW! - Cross ROM capabilities!

Use a single cleaner on any ROM you flash!

NEW! - FAST!!!

5 Seconds from flash to finish!

Watch THIS SPACE...​
[Desire HD Android Development] Patrics83:
Me and Dude360 is working very hard to bring you this new Revolution in ROM Cleaner script's and we are almost done, just some minor adjustments and a lot of testing left. :P

All this takes loads of time so it's hard to say exactly when it's going to be released.

But we will do our best!
[Desire HD Android Development] no_johnr:
Looking forward to the new script. Sounds awesome ;)

Keep up the good work!
[Desire HD Android Development] Wiingy:
wondering if this would work on ARHD 1.1.2 for the sensation. May need to change the file names, but aside for that, it should just work ?
[Desire HD Android Development] Patrics83:
It will work just fine but as you say some apps wont get removed due to diffrent apk names and 3D stuff.

However we are making a total rebuild of the script as we speak so in future it will be even more flexible and have mutch better application lists.

So if you find time to make your own script please share it and we will be able to speed things up a bit. :D
[Desire HD Android Development] MarckX:
Hi guys,

First of all I want to tell you really appreciating your work, dedication and patience.. :)

I know I shouldn't disturb you right now, because of your work on v2.0, but if you want some distraction :p

Right now I'm making some additions to your files. I think the RomCleaner.zip is ready to intensive use. I added my apps, bootanimation and downanimation :)

At the moment I'm adding some mods to your Add-on-script. I implement these modfiles in the same order I always flash them with 7zip. So far so good... no problems to be expected in my opinion. :cool:

Now I have this UOT-file. This file contains a folder called "settings". In this folder there's a file called "settings.uot". As I've flashed the UOT-file on my DHD, I could do a a full search on my SD-card with Rootexplorer, but I wasn't able to find it. I think this file is used during installation of the UOT-file. That's why I don't know how to handle this :confused:

Maybe you can give me a hint how to use this?

Thanks in advance and keep up the good works!!!!
[Desire HD Android Development] Patrics83:
Thank you so much, well this stuff takes a lot of time. :(

But we are very very close to release the beast :D

To answer your question, I'm pretty sure that file is not needed at all, and you will not be able to find it on your SD card if you flash it with my ROM cleaner. Unless you made an extract command to sdcard in zip :p

So I guess that's just an output from uot kitchen.

Where did you add that file? Witch folder?
[Desire HD Android Development] Dude360:
As Patric says,

All you need from a UOT zip is the files you uploaded to the kitchen from it.

UOT are scripted slightly different to normal flashable zips you handle day to day.
[Desire HD Android Development] MarckX:
That's really good news! :)

Just wanted to test the "old version" just to understand what's happening when I use it :D But I can tell your and the Dude's explainations are very clear!

The file is in /settings right in the root of the file, just like all other folders. I checked update-script and all of the folders are in the script referred to the /system/ folder, so that's understandable. Only the "/setting/settings.out" is not being reffered to in the script.

But it seems to be some important info. In my opinon it contains what battery is being used, colors etc, etc but that should be already defined in other folders and files... so you must be right that it must be a some kand of temporary file.

So I'm going to try your scripts (according to OP) and will report back. I don't know if it will be tonight, but I'll let you know for sure.

Thanks again, and I'm really looking forward to your new release..... untill then: take your time!! :)
[Desire HD Android Development] MarckX:
Thanx Dude,

The uploaded ones are right where the belong, I guess. I used fonts as well, so they have to be in the script, so I added them. If you use bootanimation, I think it should be in the script as well.

But as i told Patric, I'm gonna try it and let you know if it went well.

Thank you too for your work and your answers. You helped me lots of times out on ARHD, without me having to ask you questions! :)

I'll be back!
[Desire HD Android Development] Dude360:
No problem.

When you say 'in the script' do you mean the cleaner script or the UOT script?

The easiest way to set up a mod script is to just mirror the directories of the rom :)

The rest is covered in the updater-script (the extract section) and itll copy over the system and data dirs from the zip, overwriting any files already on your system named the same ;)
[Desire HD Android Development] MarckX:
The fontfiles from UOT-zip should be copied in the Add-on scriptfile to /system/fonts, don't they?

I have all the mods I used before 'mirrored' with two windows to get them in the add-on script :) Only the UOT was slightly different as you already mentioned. According to the updater-script from UOT the are copied to /system/etc. But I dubbelchecked every location where the files are right now, so it can't go wrong :D

Ps just superwiped and now flasing ARHD 5.2.3...
[Desire HD Android Development] Patrics83:
If your mod zip has a folder structure like this.

System/framework/Mod file

Then

Create same folder structure in ROM Cleaner zip and move "mod file" to the correct folder.

So how did it go? Did it work? If not just tell me and I help you ;)
[Desire HD Android Development] MarckX:
Sorry about the delay, I was off for a while... :)

During flashing the RomCleaner sript everything went well. After that I rebooted the phone, and looked nicely cleaned up. Only thing that didn't seem to work was the installation of the apps...

All the mods (AIO - XL menu - UOT - CRT - bootanimation - downanimation - ) are working correctly. So that's really nice :cool:.... Just checked my own 4EXT theme and that didn't change...

I'm checking the 4EXT issue right now....

edit: I stored the 4EXT under /system while in the file it's referring to /sdcard. I checked it with rootexplorer and the 4EXT files are nicely put where I pointed them. :) Changed settings in the prop-file of 4EXT and all is working now...

Now checking for the apps... :)
[Desire HD Android Development] slickrick54:
Thank You

Guy's just wanted to report back that your script is working perfectly and i totally love the script. I believe that you guy's have made my year with this. Also cant wait for this great update you guys are going to post soon hopefully. Sorry if this has already been answered but I'm at work right now and just don't have the time to go through all these post's. My question is basically if i have a uot file all i have to do is add the apk's to the system app part and it should be ok right. Basically just open up the flashable zip they upload to us and place the apk's from the zip into the system app folder thats inside the script. If im wrong please let me know. Thank you once again patrics83 for the script and Dude360 for all your previous help you guy's are awesome.
[Desire HD Android Development] MarckX:
For UOT you have to copy Add-on flasher script:

Framework-res.apk to /system/framework

SystemUI.apk to /system/app

Then it should work properly :)
[Desire HD Android Development] CpN82:
How can I make the add-on script install these in the right order?
[Desire HD Android Development] Patrics83:
Well you can't really... But it will work anyway :D

In worst case senario, you need to add lockscreen to your HTC SetupWizard Remover + Addon flasher.zip

But you know what :p

I made you an ROM Cleaner with all that nice stuff inside... BUT I didn't flash it my self so I'm not sure if it works :D :D

But please try and report back.

!!!THIS IS ONLY FOR Android Revolution HD 5.2.x ROM's!!!

ARHD_5.2.x_-_ROM_Cleaner_v.1.2_-_Sense_3.0-Weather-SMS-Lockscreen.zip

Also remember to edit the updater-script if needed. ;)
[Desire HD Android Development] MarckX:
Hi Patric,

Back again after flashing my ass off :)

I've got a question again looking at the RomCleaner script:

ui_print("Writing Data From Data Folder In Zip");

package_extract_dir("data", "/data");

Am I correct assuming that the apps are copied to the /data/ folder on the phone?

When I check it, the added apps are on the phone in the /data/ folder.

I can't see the apps in the appdrawer nor in the widgetsection... so I can assume the apps have not been installed. If I install the apps manually after using the script, it doesn't show the message that it's already installed. So in my opinion the apps are only copied and not installed.

Can you tell me if this should be the case?

Tnx in advance.
[Desire HD Android Development] CpN82:
Well what else can I say than: många tack :D

It just works! I will add this to your/my addon script ;)

Can't believe the level of support you get on this thread!
[Desire HD Android Development] MarckX:
+1 I've been reading almost all of the thread yesterday and it's the best support I've seen in a thread so far!! Big compliment for that!!!!! :)
[Desire HD Android Development] Dude360:
That part of the script is saying to copy anything from the /data folder in the zip to the /data folder on the phone.

So, to install apps you would have a folder structure like so in the zip:

data
META-INF
system

Then you would place your apps in here:

data/app/placeapkshere.apk
META_INF
system

For them to be copied to the /data/app folder on your phone.

Installation of apps is very very different from say Windows.

When you 'install' all that really happens is the OS reads the androidmanifest to find the package name, compatibility info etc then copies the apk to the relevent install directory on your phone (obviously some fones install to different places) For us its /data/app then it renmaes the apk to the package name.

The apks dont get extracted or changed in any way and you can check this by taking Facebook.apk from your phone, delete it from /data/app, reboot then 'install' through the OS.

Youll see that it goes into /data/app as something like com.katana.facebook.apk

Now check the MD5 sums of the installed file and Facebook.apk and youll see its a perfect match :)
[Desire HD Android Development] MarckX:
Thnax again for a very clear explaning!!

So all went well with copying all .apk's... What I was wondering if Android checks automatically the /data/apps folder for APK-files and "installs" them. I'm asking because all te files the script copied in the /data/apps folder aren't changed after flashing and rebooting to mostly com.etc names. They're all .apk-files, unless I install them manually.

My actual question is really: Can I force Android somehow to "install" these files so they're instantly usable after the reboot, or should it be done automatically in the first place? :confused:

I hope I made clear what I mean..

ps OT: I've been forced to be Windowsminded (@work & @school) in a way... not happy about it, but soon I will make a dualboot to have a second go at Linux... :)
[Desire HD Android Development] Dude360:
Any apk placed in the data/app dir is always useable on first boot no matter if its been 'installed' or not.

If you read my little guide again youll see that I istall all my apps first through the phone as normal. Now, when it comes time to update the rom Ill copy the entire data/app folder to my sdcard then add it to the zip.

It then gets dropped back into /data/app when I flash the zip as if nothing had happened.

If you open up mikes rom youll see that he has his apks named normally ie. Maps.apk, Facebook.apk. It makes no difference wether they are named Facebook.apk or com.katana.facebook as the apk tehmselves do not get chaged in anyway apart from the package name.

Youll see in my guide as well that I also rename any updated ones, I remove the -1 or -2 from the end so they all look neat and tidy.
[Desire HD Android Development] MarckX:
Ok, I understand how you backup your apps folder (gonna do that as well), and have seen that Mike provides his apps as .apk in /data/apps folder.

The only thing I don't understand is that the apps provided by Mike's Rom are showing in my appdrawer, but the files I added with the script don't show up there....

I'm going to try to install the apps first manually and then copy them to the script and I will do a fresh install, like you wrote ;)

Cheers!

edit: It worked out........... ofcourse! :D I'm truly sorry misreading your post :o But thanks again!!!!!!!! :) I will now do a full setup and somewhere this week I will let you know how it went. Really appreciate the help provided!!!!
[Desire HD Android Development] reynierpm:
Not worked for me :( I flash the SMF 1.2 ROM (Sense), then try to flash the ROM_Cleaner_v.1.2.zip file and show some errors and do nothing. I'm doing something wrong?
[Desire HD Android Development] Dude360:
Could you please tell us:

a) What device you are using

b) A link to the rom

c) What you were trying to do ie, just romcleaner, adding stuff to zips?
[Desire HD Android Development] Dude360:
Wicked :)

Glad you worked it out :D Definitely let us know how you get on with your full setup :)
[Desire HD Android Development] reynierpm:
a) HTC Magic 32A

b) SMF 1.2 Europe 2 (http://xdaforums.com/showthread.php?t=1025330 / http://www.multiupload.com/WAXOPQ1WC9)

c) First I try to add some new lines to remove FacebookChatWidget that come with this ROM and I don't like and nothing else: this fail, second I try the main Cleaner without changes: this fail too

:(
[Desire HD Android Development] Dude360:
Apologies, could you also post the written error as it shows in recovery please?

If you would, could you also attach your edited updater-script so I could have a look?

Cheers :)
[Desire HD Android Development] reynierpm:
Sorry for the error I can't help because I go back to my old ROM :( and for the lines I only add this lines to the script under META-INF/com/google/android/updater-script

delete("/system/app/com.htc.FriendStreamWidget.apk");
delete("/system/app/FriendStream.apk");
delete("/system/app/HtcFacebookChat.apk");
delete("/system/app/HtcFacebookChatWidget.apk");
[Desire HD Android Development] Patrics83:
I just downloaded the ROM you are using and I can't see any reason why it shouldn't work.

I would really like to know what the error message said in recovery.

There should not be any mounting issues since I changed that in ROM Cleaner v1.1r2

However you could try and mount /Data and /System manually in recovery and see if that works for you.

When it comes to editing the updater-script you must use notepad++ but I guess that's not the issue in this case. If you got an error like this:

(Status 6)

Installation aborted then it is a updater-script error

It would be very kind of you if you could test this and report back the result...

Thanks / Patric
[Desire HD Android Development] rica2000:
All you have to do is copy system folder from each mod in rom cleaner. Don't add any lines to updater-script. You can remove some lines if you want some apps not to get uninstalled though :)
[Desire HD Android Development] Dude360:
DAMN IT ALL TO HELL!!!

Even using busybox, merging the LS and weather still gives me (and others) no shortcuts.

My testing on this matter is officially over and it looks like seo may be right about the graphics driver having something to do with it (just like the Desire)

Anyway, my question on busybox usage from before still stands though :)
[Desire HD Android Development] Patrics83:
Update

*HTC SetupWizard Remover + Addon Flasher v1*

Updater-script changes. System/ folder instead of framework/ folder
[Desire HD Android Development] Spaghetti-XRY:
Maybe rica2000 can post is updater-script and we can see how to catch out what we want =D

@rica2000 : My problem is that I've to add some lines in the script because the others scripts require to delete some files before updating (I guess....)
[Desire HD Android Development] Patrics83:
I'm not sure what you mean exactly but you dont need to change anything in the updater-script unless you want to keep any of the deleted apps or if you want to delete some more you can just add " delete("/system/app/AppName.apk"); "

If you want to add a modd in to the script you need to open the modd zip and move files from that zip folder to the ROM cleaner zip.

Example:

Modd zip:

system/framework/

service.jar

Move that file to

ROM cleaner zip

system/framework/

Or if you want to add a app to data:

Take the app.apk and move it to the ROM cleaner zip

data/app
[Desire HD Android Development] rica2000:
I didn't touch updater-script. Patrics's script will do everything for you.

And none of the mods you mentioned needs to delete files except wiping cache.