yashsingh1/xdaforums huggingface dataset:
[Desire HD Android Development] Dude360:
@Patrice: Upmost apologies for the length of the post. I posted here as the cleaner script played a part in the testing. I will soon move this and the tests in my sig to a separate thread as my posts do tend to be long lol and I dont want to move the topic away from your sweet script ;) Just waiting on MTM to get back to me

This is so frustrating now. I think my phone has just given up with the constant flashing over the last 15hrs.

I thought I had a beat on why the shortcuts dont appear but I wasnt able to replicate it more than once.

At one point I was convinced it was something the cleaner script was taking out so went though the entire thing line by line reflashing with each individual line #'d out but no it wasnt.

Then after ricas PM I thought it might have something to do with me not using the HTC setup wizard as I edit build.prop to either use the stock setup or bypass it altogether. Roll on two more rounds of testing.

I can safely say, there is nothing that the script removes that interferes with the LS shortcuts. That goes for NoSense (& NS++) as well. The only Cleaner related issue is when in the flashing process the script is used. (See below)

The setup side of things plays a part in it as well. Did the tests at the end of the post using both untouched rom as well as edited build.prop and the edited build.prop also caused the shortcuts to disappear :(

I can also say its 99.9% nothing to do with merging S3 mods together either so the weather and LS combo wasnt the problem, it seems to be the LS.

In all the combinations Ive tried (way, way, too many to list) there was one I missed:

Untouched ROM + Untouched Lockscreen with and without a reboot inbetween.

Result = STILL NO SHORTCUTS!

Yup, this LS will not work for me on 5.1.7.

There was one combination where the shortcuts stayed. But I was getting on bus at the time and have long forgotten which combo.

All I remember is that I had to have booted once before using the cleaner as my widgets in the 'add widget' menu were screwed up. (See below)

This has to be got to be device specific with only a few people experiencing it.

The combo that I had for 5.1.6 is not working either :(

I just cant get this frakking lockscreen working on my phone, on its own, merged in an AIO or placed in a cleaner script.

How the cleaner script comes into it?

Now:

Rom
No Reboot
Weather Separate
Lockscreen Separate
SMS Seperate
First boot

Works flawless. Youre now thinking "well thats the way mike says to do it?" and youd be right, but that isnt what Im trying to get at.

Rom
No Reboot
Weather Separate
Lockscreen Separate
SMS Separate
Cleaner script
First boot

Does not work.

Rom
No Reboot
Weather Separate
Lockscreen Separate
SMS Seperate
First boot
Reboot to CWM
Cleaner script
Reboot

DOES WORK!

For some it seems, the use of an AIO is causing problems with the lockscreen as well as the use of the cleaner script.
[Desire HD Android Development] Patrics83:
@Dude360 Well you must be known for making the longest post on XDA that's for sure... :D That's not a bad thing and I dont mind your posts in my thread. They are always very good and informative.

Anyway, I don't know why some modds can't be flashed before first boot.

I might also add that from the begining this script was created just to remove stuff from the ROM.

In most cases you will also be able to add modds in the cleaning script.

My setup is the following:

Cleaner Script,

Added

CRT, APM, and some apks in system and data folder.

Also a bootanimation in data/local

(Framework-res.apk will cause issues on first boot so dont add it in cleaner script)

HTCSetupWizard remover + Addons flasher

Added

Battery%stock in system/framework folder

This works 100% every time for me.

And as you know some addons need to be flashed in a specific order.

And you shold always flash the cleaner script before first boot to make sure everything is removed.. If you flash it on second boot for example the widget list will be messed up.

So the best thing might be to not add to many things in the framework folders. ;) I'm pretty sure you will save some time anyway :D

Thanks for your informative post!
[Desire HD Android Development] Dude360:
Bless ya :p MTM got back to me so Im going to sort out a thread for all info on the S3 stuff etc over the weekend in the Dev section :)

The problem I faced with the cleaner script in the sequence was that if it was flashed before the mods, even with data/system folder empty (just the cleaner script) then the shortcuts still wouldn't appear. Even flashing everything in the recommended sequence :confused:

Even more confusing is the script is perfect, nothing in it to cause problems :s

Flashing the rom then mods in sequence and first booting ensured the shortcuts 'stuck'. Rebooting and then flashing the script gave both the shortcuts and a clean rom. As the script gives a dalvik wipe as well, everything then seems to fall into place.

As for the widgets being messed (as expected) a clear of HTC Sense data cleans them all up and as you havnt setup your phone yet you dont lose anything :D Clearing the weather data etc at the same time also ensures the weather and lockscreen all sync up as well :D

Its been a massive pita as everything works bar the shortcuts, there seemed to SO many factors involved it was unreal and incredibly frusrating :mad: :confused: The fact that it only happened to a few of us was even worse :(

The script is great and adding stuff like apps and S3 independent mods to it make flashing so much faster :)

Anyway, I am now running a smooth clean EXT4 5.1.7 with ALL S3 mods up and running perfectly :smug: (And 3 nandroids so I dont have to do it again lol)
[Desire HD Android Development] Patrics83:
@Dude360 To be honest, I don't know what you mean about shortcuts :S

I don't use so many modds and I have never used other lockscreens. ;)

Do you have any suggestions about any lines that I might add to the script? All I know is that my script does basically what most addon script does.
[Desire HD Android Development] Dude360:
Ah, I mean the four configurable app shortcuts on the Sense 3 lockscreen which you drag into the ring to open directly into the app.

These were the shortcuts that would appear for second on boot then disappear never to come back! The extras like the clock widget and friendstream special effects would not show either just the background.

The script itself is perfect as is for a cleaner script though, I took a few things out of nosense to use such as htc wallpapers and 'scenes' images as I delete them all anyway, as well as added my personal deletions such as all the e-readers and so on.

I also added in some SD card folders but I dont think its actually deleting the folders though. Recursive works but not the standard delete.

I learnt a lot from your script, I think without it I would still be manually editing the rom or using root explorer!

Ive attached my personal one so if you see anything you want feel free :D

Its a little more broken down as once I learnt ui_print I couldnt help but use it some more. Also helped me keep track of things when testing and so forth :D
[Desire HD Android Development] Patrics83:
Ok, you should not remove these apks on first boot. And also make sure to enable that wizard in build.prop if yoy disabled it

Tell me if it worked :D

BTW. I like the idea with Removing Old SDCard Temp & OS Folders...

Maybe I will add it to my script.. but not all of them... :O You psycho cleaner ;) :P
[Desire HD Android Development] Dude360:
My bad , they aren't usually in there, I put them in as I had to run the cleaner after first boot ala shortcut probs :)

Psycho cleaner lol I liked that lol

;edit;

in the screenies, the weather one has working scuts, the other is what happens and why all the fuss lol (ignore wallpaper)
[Desire HD Android Development] Patrics83:
@Dude360

Hmm.

Try this, enable the HTCSetupWizard as I said.

Open the ROM Cleaner Script and [delete] all widgets from the updater-script.

I don't know if it will work, but you can try it if you want to. ;)

You should add Psycho Cleaner to your signature btw LOL
[Desire HD Android Development] Dude360:
Do you mean like comment them out for now (#Delete) or actually write them as [Delete]?

:D@sig
[Desire HD Android Development] Patrics83:
Yeah sorry for that ofc put # or just delete the lines in the script.

LOL you are a funny guy! :D :D
[Desire HD Android Development] Spaghetti-XRY:
@Dude360:

I notices a missing " ; " at line 207 of ur attached script =D

delete("/system/customize/resource/htc_wallpaper_preview_14.jpg")

@Patrics83:

I meant some lines to add to delete stuffs and others instructions that I've added. I'll try again... maybe It was just an error of formatting or writing text. I'll try to modify Dude script with notepad++ and let u know.
[Desire HD Android Development] Patrics83:
Yous hold not use Dude360s updater-script it's older then mine and it also has htcsetupwizard in it. And that will give you problems.

Please tell me if I can help you.
[Desire HD Android Development] Spaghetti-XRY:
I've deleted lines regardind Htcsetupwizard as u suggested in ur post, so I'll keep it.

I'm comparing my old script with urs and I've noticed some errors that i've done while modifing, I'll pack my script in some minutes and I'll ask u if I got problems (thanks an advance).

Just a thing, if I want to add SmS or USB S3 apks (as example) I've to write a line to delete the old files or the cleaner script just upgrade any files in the rom flashed with the new ones putted in the new .zip ?
[Desire HD Android Development] Patrics83:
You don't need to add any lines in the script if you want to add something with the ROM Cleaner.

Just open the ROM Cleaner zip and move the apk's you want to the correct folder. In your case, (SMS and USB S3.0) add them to system/app.
[Desire HD Android Development] reynierpm:
Here is the error I get:

Installing: /sdcard/ROM/SMF/ROM_Cleaner_v.1.2.zip
Finding update package ...
Opening update package ...
Installing update ...
E: Error in /sdcard/ROM/SMF/ROM_Cleaner_v.1.2.zip
(Status 0)
Installation aborted

This happen with the original file without changes, any help?
[Desire HD Android Development] Patrics83:
Hmm, I'm really not sure.

Did you format system and data before ROM flash?

You can try and unmount cache manually in recovery even if I don't belive it will work :p but you can try it.

If that don't work mount system and data manually in recovery and test.

Last test is to wipe everything and flash ROM cleaner before the ROM. Then we will see what happens.

Do this if you want and come back to me. I have one more thing for you to test but you will need a new ROM cleaner then with a log inside.
[Desire HD Android Development] reynierpm:
How I do that meaning format system and data? I just did a full wipe to everything but battery stats ;)
[Desire HD Android Development] Patrics83:
Well then you have format all needed partitions.

Go on with the test list ;)

Flash ROM.

Unmount cache. Flash ROM cleaner.

If it ain't working. Mount data and system. Flash ROM cleaner.
[Desire HD Android Development] reynierpm:
Nop, didn't work I try both :confused:
[Desire HD Android Development] Patrics83:
Wipe data and system manually in recovery. You can find it in advance menu or wipe and format menu. Then flash ROM cleaner.

If that ain't working I need to make a special ROM cleaner for you. But I can't do it until later this evening. Let's say 2 hours from now.
[Desire HD Android Development] reynierpm:
Ok, I'll wait until you can do it "my" ROM Cleaner, I try this latest and nothing still not working
[Desire HD Android Development] Patrics83:
Strange :confused:

Anyway here is a identical copy of ROM Cleaner v1.2 only diffrens is it will create a log on to your sdcard called LOG_ROM_Cleaner_v1.2.log

Flash this version and send me the log please.
[Desire HD Android Development] El Mariach1:
Same problem as reynierpm, hopefully you can fix it.
[Desire HD Android Development] Patrics83:
Same device and ROM also?
[Desire HD Android Development] Patrics83:
@reynierpm

Here is a possible fix, but I'm not sure if it will work.

Please flash this. And report back ;)

Thank you / Patric
[Desire HD Android Development] reynierpm:
How I can send you the log? After flash the new file with LOG support I come back to my old backup but the file isn't under my SDCard :)
[Desire HD Android Development] Patrics83:
What!?!?

What kind if device do you have ;)

The log should be in /sdcard (root of sdcard)

Did you get same error?

Did you flash LOG_-NoData_ROM_Cleaner_v.1.2 also?
[Desire HD Android Development] reynierpm:
From another planet I think LOL jajaja it's a HTC Magic 32A

It's not believe me I find several times

Yes, the same error (Error 0)

I flash this script only (this time)

;)
[Desire HD Android Development] Patrics83:
Just to be clear I posted you two version...

First this, LOG_ROM_Cleaner_v1.2

Then this, LOG_-NoData_ROM_Cleaner_v.1.2

The latest one I think should work if not I'm out of ideas for now, but we will work hard to bring you a ROM Cleaner that will work even on older devices.
[Desire HD Android Development] reynierpm:
This is what I test few minutes ago, my phone is saying me "no more, no more ..." lol

Hmmm so need to wait until you figure out how to solve this, I like Sense but ROMs have a lot of trash and your script remove most of them ;)
[Desire HD Android Development] Patrics83:
Yeah I'm so sorry but it's hard to make it work on every HTC device out there.. Newer once works just like a dream, but for you my frined :(

But I will fix it some day... Maybe I should talk to the dev of your ROM? :D

When I think I have a fix for you I let you know, just make sure your PM inbox is active ;)

Take care! And thanks for all your help!
[Desire HD Android Development] reynierpm:
I'm glad to help you on this and of course my PM is active and waiting for you. Anyway thanks fot take this time trying to help me ;) Take care you too
[Desire HD Android Development] slickrick54:
Cant wait for the update guys i love your script.
[Desire HD Android Development] Patrics83:
Thank you so much! :D
[Desire HD Android Development] Limerick_fr:
Hi guys,

Thanks and congratulations for your script and the one in progress.

Before you release it, perhaps you can do something for something that happens when some widgets are deleted.

When social networks widgets are deleted (everything dealing with [or related to] Facebook, Twitter and FriendStream), some bugs appear in the widget list as you can see in the screens below.

Is it something that can be fixed or is it mandatory to live with them or with Social Network widgets ?

Thanks anyway and good luck for coding ;)

Lim.
[Desire HD Android Development] Dude360:
This will always happen if the cleaner is used after first boot but is an easy fix by clearing data from sense :)
[Desire HD Android Development] Patrics83:
I already gave you an answer in Arhd thread this morning. And your answer is also in first post ;)

This issue happens only if you don't full wipe. Solution for your issue is then to wipe HTC sense data. This will also clear your home screen.
[Desire HD Android Development] El Mariach1:
I'm on JokerDroid 4.2, HTC Wildfire.
[Desire HD Android Development] Limerick_fr:
Thanks to both of you guys.

I put my question back in the right place in case any other people accounter the same problem.

In fact, I used your script after a Super Wipe + 5.2.2 installation + 5.2.3 update (few days later).

If I understand well, using your script once again with removing the # in front of

#ui_print("Deleting HTC Sense Data");
#delete_recursive("/data/data/com.htc.launcher/");

will remove the artefact in the widgets list as seen on the attached screens, but will also remove all the widget on the seven home screens.

Is that all, I won't lost anything else ? (I'm a bit fed up with reinstalling everything each time...)

Thanks to you... and any idea of Flashable ROMCleaner 2.0 release??? ;):o
[Desire HD Android Development] Dude360:
Yeah it was left that out deliberately to save the 'it erased my homescreen' comments ;)

The script is designed to be run directly after a flash and before first boot on a new install. While it will function perfectly on an 'upgrade', Sense data must be cleared to remove these artifacts.

HTC in there great wisdom bunged all Rosies data (layout, scenes, wallpapers etc) into one data/data database and as such it will all have to go :(

As for 2.0, I wont give much away, but our biggest and most important task is ensuring compatibility with as many roms as possible on as many devices as possible. With the many different variations of installing a rom it obviously takes time.

The core of it is down, (hence the teaser ;)) we are just now working out the finer details to make it as smooth and as easy to use as possible. Dont worry, we are working like dogs to get it all done asap :)

I will say though, its freaking cool, stupidly easy to use and faaassst!
[Desire HD Android Development] Limerick_fr:
Thanks Pat&Dude,

Everything is okay now.

There's so many information in all these threads that it is not s easy to guess which one belongs to your problem especially :

- when you are not fluent in English

- when you are not fluent in Android coding...

But with your help, it goes not so bad ;)
[Desire HD Android Development] Patrics83:
If you know how to do.

Please copy the updater-script from your ROM zip.

It's located in META-INF\com\google\android\ "updater-script"

Open the updater-script with notepad++ and copy all text in it (Ctrl+A).

Go to Pastebin.com and then send me the link you got there.

Thank you / Patric
[Desire HD Android Development] reneftw:
Does anybody know the name of Mobile Network widget so that I can remove it from the unninstalled applications?
[Desire HD Android Development] Patrics83:
It's already uninstalled with default ROM Cleaner v1.2

HtcDataStripWidget.apk

Maybe you flashed ROM Cleaner without data wipe?

If yes, please clear HTC Sense data. Your Home screen will be reset to stock.
[Desire HD Android Development] reneftw:
I already used ROM Cleaner with my new ARHD ROM. I removed from the script some things I wanted to keep, but unfortunately I forgot about mobile network. Had a previous backup made with titanium back-up, but although I restore datastrip, the widget won't do anything. How can I restore it?
[Desire HD Android Development] Patrics83:
First of never restore system apps! This is most stupid thing you could do to be honest. ;)

Flash ROM Cleaner again and Clear HTC Sense data manually. Or with the updater-script. Follow instructions in first post.

If you want to restore it. Push it with adb, or reflash ROM without data wipe and then flash a correctly edited ROM Cleaner.

Good luck
[Desire HD Android Development] Limerick_fr:
How can this be done ?
[Desire HD Android Development] craacK:
Select Applications > Manage Applications > HTC Sense > Clear Data
[Desire HD Android Development] slickrick54:
Patrics83

What I noticed was when flashing this script, it affects the widget add-on options. Basically you end up with Rosie Script data and not an actual option. When attempting to select one of the "broken" options, you'll get Sense FC's. Patrics83 can you please update the script to be compatible for MikG 2.42 because for some reason before this newest update from him the script worked perfectly and now that happens to me. I love this script and would love to continue to use it but now i ran into this problem and cant seem to figure it out. Thanks for everything and cant wait to see this new script update from you guys.
[Desire HD Android Development] evereste:
Sorry, this rom is not as good as the stock for my taste...Do I have to revert back to original radio or will the new radio be suffice? Thanks
[Desire HD Android Development] evereste:
Hmmn this is a really helpful post..maybe my reinstalling apps is the problem, I'll flash again without restoring any apps, the google saved......cheers...
[Desire HD Android Development] ABDOKRO1:
Wrong thread, mate...
[Desire HD Android Development] Patrics83:
Hmm, widgets has not been changed since a few versions back.

Did this happen, after data wipe and ROM flash?

Did you clear HTC sense data?

To be more clear, can you send me a screen shot or something...?

Was ROM cleaner v1.1r1 the last working script?

Edit, I just tried to reproduce this issue but nothing wrong here.

Did you edit the script? Maybe you restored some widgets but the actually app?

As you can understand I will do everything to bring you the most ultimate solution but I need detaild info from you.
[Desire HD Android Development] jolaren:
Great script. Gave me loads of memory. But my google search bar is gone, is that supposed to happend?

Edit: downloaded from market and pushed to system app
[Desire HD Android Development] Patrics83:
Thanks!

Yes it's suppose to happen if you ain't editing the script before flash.

Please check the app list and edit your updater-script in ROM Cleaner zip.

Good luck mate :D
[Desire HD Android Development] jolaren:
Not all of us are fortunate enough to have a computer nearby always! Though editing that via the phone seems like a hustle (therefore I asked if it was supposed to be). But as always it turned out nicely. Best "out of the box script" for me.
[Desire HD Android Development] Patrics83:
When ROM Cleaner 2.0 is out it will be like a dream for ppl without a computer nearby ;)

Damn I did it again. Always such a teaser! :p
[Desire HD Android Development] Dude360:
@Slickrick, I think whats happened there is youve flashed the cleaner after first boot on a fresh rom. Thats the only way to cause artifacts in the Rosie widgets.

There is a # out line in the script to clear Rosie data for you which is left # intentionally as clearing Rosie data will rest homescreens.
[Desire HD Android Development] Limerick_fr:
Yes you are!:mad:

;)

Hope the release will be at the same time (or just before) ARHD 5.2.4... :rolleyes:
[Desire HD Android Development] Patrics83:
Maybe it will :D
[Desire HD Android Development] slickrick54:
Damn once again Dude360 and Patrics83 come through with the perfect solution to why this has happen to me. My dumb ass forgot that you are suppose to flash the script right after flashing the ROM. So sorry guys you are the best. Also quick question for you. If i wanted to flash the script later on after i flashed the ROM all i would have to do is clear HTC sense data and i should be good to go. Thanks for everything guys cant wait to be able to customize the new script off my phone.;)
[Desire HD Android Development] Dude360:
:) No problem at all :)

As for flashing later on, yeah thats pretty much all youd have to do.

The main reason its preferable to flash straight after a rom is that apps arent able to add their files and folders to /data/data/ making for an even cleaner rom with no 'residue' left.

Sense is a pita anyway for stuff like this.

Same with a rom upgrade, make sure to uncomment sense data ;)

And 2.0 not far away... ;)
[Desire HD Android Development] erichung_13:
Please help, I get installation aborted when trying to use this on virtuous unity..

EDIT: I re-downloaded and that solved the problem, but I still have friendstream and twitter and everything :( I thought it was default to get rid of these things?
[Desire HD Android Development] Patrics83:
If you read the app list you will know what is being deleted default in the script.

Also removing friendstream will most likely give you sync issues...

If you want to edit the script follow instructions in first post. Also It's written in the thread very often.

Remember to use notepad++ when editing the updater-script ;)
[Desire HD Android Development] proalsren:
Thanks

I s there a list of people that have press your thanks button?

I don't remember helping anyone and I have a thanks listed.
[Desire HD Android Development] aamadorj:
Your question is definitely off-topic, but anyway here is the answer: click on your username (up at the xdadevelopers page, next to "Welcome") and then click on the "Statistics" tab. There you'll see the following link: Find all thanked posts by xxx.

That link is going to show you the information about the "thanks" received.