yashsingh1/xdaforums huggingface dataset:
[HTC Sensation] MarckX:
Hi all,

Just want to give some feedback to the dev's and users how I'm using these scriptfiles. Maybe it can be usefull for some ppl to show it's not difficult at all to gain a lot of time during Rom installation taking almost no effort at all. If I can do it, everyone can :D So what I wanted to do after I read the manual in OP by DUDE360 was:

- Backup apps that I'm using at the moment;

- Flash Rom;

- Remove most of the Sense stuff accept (weather)lockscreen;

- Auto-install all backuped files;

- Apply my mods (All-in-One, CRT, Quick settings XL, UOT, boot- and downanimation and OC daemon settings automatically;

I can tell you that all of the above worked out perfectly!!!! :)

So here's what I did flasing a new ROM (and will be doing in the future, for sure). In this post I use the same numbers as I do on my SD-card so I can recall what I did, or do a fast re-install.

Preparation:

Before I went flashing I made sure my mods were added to the SD-Card in /SDCard/Romcleaner/secondboot/ in exact the same format as the are in the mod-zips.

Example: In AIO mod there's a dir: /system/media/weather. Copy it to /sdcard/ROMCLeaner/secondboot/system/media/weather. I opened two windows and copied (extracted) everything. Just like that. Did this with all mods leaving out the META-INF dirs.

If you use a more than om mods make sure you add them to your SD-Card in exact the same order as you flash them normally and let the new files overwrite the existing ones. It's no guarantee it will work, but it is the safest way to get it fully working. It works for me, using all of the mods mentioned above (and even more right now)

Actual Flashing order:

00 Flashed: Folder_Creator.zip only the first time to make sure all directories are there where they belong;

01 Flashed: Backup_Apps_to_SDCARD.zip (all insatlled apps in backup dir);

02 Flashed: Superwipe.zip (automatic reboot into recovery);

03 Flashed: ROM (ARHD in this case);

04 Flashed: Rom_Cleaner_v2.2.zip (did no modifications to it. Lockscreen is kept by the satandard script) It reboots itself in a normal way (not into recovery that is);

05 Skip the HTC Setup Wizard for the biggest part - I only do the Wifi setup.

06 Reboot into recovery;

07 Flashed: HtcSetupWizard_Remover_v4.0.zip

08 Flashed: Mods_and_App_Installer_v1.2.zip

Now I know, if I want to keep Sense (I'm not a Sense hater, lol), I can always use the "auto-install" option flashing a new rom by skipping step 04, 05 and 07....

I'm now flashing and installing (almost 200 apps) and do a full setup of my phone in Less than 25 minutes after a full wipe!!!!! :eek:

PS Sorry for the long post, :o just hope it's an addition on the manual in OP and useful for some....:D

Cheers
[HTC Sensation] Dude360:
Awesome post mate :) Excellent example of how easy it is to plonk the cleaner and installer into the flashing routine!

You pretty much have it down exactly like me with numbered zips ;)

Thanks for the feedback mate, very much appreciated
[HTC Sensation] MarckX:
Thank you too mate. I hope more people will see the advantage of this script, how easy it is to use it and the great work are doing!!! ;)
[HTC Sensation] Patrics83:
@MarckX

Thanks for that great feedback! I really like that kind of reading! :D :p
[HTC Sensation] MarckX:
Very welcome... as always!! :D
[HTC Sensation] skadoosh:
noob ques:

whats the difference between using this and titanium backup
[HTC Sensation] craacK:
In general, all points of "Why you should use it?" (written in first post) are advantages of ROMCleaner over Titanium Backup.

Biggest plus: u delete apps before they even get started once (before 1st boot)!

ofcourse, you should run it after a fresh install of your ROM!

this means no trash, no remnants, no nothing

Furthermore, you would not have to delete the apps manually which could take an enormous amount of time.
[HTC Sensation] asapelectric:
Thanks for this, only difference I noticed was I had go into Sense(even when uninstalled LP and re-installed) , in applications and clear default home. And widget locker FC'd, but fixed with re-install. Thank you for this app.
[HTC Sensation] Patrics83:
Thanks for your feedback!

You will get best results if you flash ROM cleaner after full wipe and ROM flash.

Otherwise you need to clear HTC sense data.

*Manually after your device has booted.

*Or activate this function in romcleaner_user.txt and HTC sense data will be cleared.

Remember this will also clear your home screen.

Sent from my Desire HD
[HTC Sensation] mr2boysloot:
What i'm doing wrong ? it won't delete anything. :confused::confused:
[HTC Sensation] Patrics83:
Hmm, after a quick look at your logs I can't find any issues. :O

The only thing I can think of is that you didn't use notepad++ when you made that romcleaner_user.txt

Edit: Flash a default ROM Cleaner and report back...

Sent from my Desire HD
[HTC Sensation] mr2boysloot:
Thanks , i will try
[HTC Sensation] Patrics83:
Was I right about the edited romcleaner_user.txt?

Please confirm so I can make a FAQ.

Thank you.

Sent from my Desire HD
[HTC Sensation] mr2boysloot:
now everything is going fine with the standaard romcleaner.txt

So yes , my fault not using the notepad++ for the romcleaner_user.txt file :rolleyes:

Found some apk not listed in your romcleaner.txt :

system/app/htcfmradio.apk

system/app/trimit.apk

system/app/pvwmdrmproxy.apk (dont know what this is)

system/app/pvwmdrmservice.apk (dont know what this is)

Thanks for your quick response .. :D
[HTC Sensation] PaulGiz:
The way this works makes so much sense to me.

I retain the original ROM, no need to make multiple copies for troubleshooting. Just reflash with modified script.

Despite this, the junk is removed before first boot, which means no elements are scattered around. This gives a clean install, with no wasted memory or extra dead end paths for the ROM to waste time with.

Mike has an ARHD 3.6.1 upgrade coming today, I'm looking forward to trying the new version with settings restoration -- it's already configured (I hope), so I'll report back with results later today.

P.
[HTC Sensation] Patrics83:
Thanks for your support! Also you understood how this script works and also why this method is preferred ;)

Looking forward to hear about your results, just remember this is kinda experimental :p me and my small "team" has been using this backup and restore method for some time now and it worked flawless every time so I really hope it will work even for you.

Basically this backup tool will backup same files and folders as titanium backup would do.

Also remember if you switch base you might not be able to restore mail accounts for example due to newer version on HTC mail.

For most ppl this is obvious, but maybe not to everyone...

/Patric

Sent from my HTC Desire HD
[HTC Sensation] PaulGiz:
Just had the maiden voyage of ROM Cleaner v2.4 with settings restore.

Started fresh with folder creator.

Made my own 2.4 user text file, using my old version as model.

Loaded my mods (battery, Fly in Animations, Blue Overscroll, APM, Extended QuickSettings, bootanimation and downanimation) into Second Boot folder.

Worked fine. Restored my Mods, restored my mail accounts, BT, WiFi just fine.

P.
[HTC Sensation] Patrics83:
Did you add this to your old user list?

/system/app/test

Damn nice to hear :D

Thx for letting me know!
[HTC Sensation] PaulGiz:
Yes it was there. I used the new text file you made and just used my old one as a model to remind myself what stays and goes. Saves finding something is missing and pushing it back into system.

Yup, the first time I used BT it said "paired, not connected", so I connected manually. After that it's been pairing up automatically just as it should. Other than that, smooth as a lounge singer.

P.

P.
[HTC Sensation] sumasage:
Does this work with the new Sense 3.5 rom (2.08.401.1 ) that's out?
[HTC Sensation] MarckX:
It should work on every Sense Rom. The devs looked into Sense 3.5 as well and made adjustments to the scripts for it.

Just give it a try and please report back.. ;)
[HTC Sensation] sumasage:
I ran the back up on the Sensation XE rom that is running 3.0 then did the clean (which restore settings) on the 3.5 sense. I got FC on the launcher constantly.

Edit: I reinstalled ROM and ran a clean install of the Cleaner and everything worked just fine. I think it might have been i did a back up and restore of the old version of sense.
[HTC Sensation] Patrics83:
Backup tool - Apps. (only apk) wifi, bt, mail accounts.

ROM Cleaner - Deletes apps and restoring Apps (only apk not data).

Settings restorer - WiFi, bt and mail accounts.

I think the reason for FC is because you by accident disabled locations services over wireless data. Please check first post for instructions.

Sent from my HTC Desire HD
[HTC Sensation] Patrics83:
Just want you guys to know that we are working on a new ROMCleaner.txt (ROMCleaner_user.txt)

What you will get.

*Better overview in the list.

*Better sections.

*Hopefully we will also be able to add app info behind every *.apk in the list so don't need to compare it to the firstpost app list anymore.

Since we had loads of new ROMs based on new builds (Sense 3.0/3.5) lately the list got a bit messy and now we are doing our best to bring back some structure and order :D

Stay tuned!

Sent from my HTC Desire HD
[HTC Sensation] akamustang:
I have a bit of an issue/bug to report

After putting my alarms, notifications and ringtones into /sdcard/ROMCleaner/FirstBoot/system/media/audio they get copied from sdcard to system, fantastic!

However now my sound personalisation list is showing duplicate entries, once for the files in system (good) and once for the files in sdcard (bad)

Is it possible to find a solution to this and only display those that are in system?

There are probably many ways to fix this

My suggestion would be to rename the sdcard path to /sdcard/ROMCleaner/FirstBoot/system-rc/media-rc/audio-rc

Then remove the -rc when copying them over to system
[HTC Sensation] PaulGiz:
Those are the things that should be put in the second boot folder and restored with Mods and Apps Installer after booting up, setting up, then rebooting to recovery.

P.
[HTC Sensation] Patrics83:
Hmm, I don't see how this can fix the issue?

Also why not just copy your non stock ringtones to your sdcard. Folder name whatever :p

I mean if they work from sdcard you could delete the stock ringtones from /system/* and only use your own ringtones but they will always be located on your sdcard.

Sent from my HTC Desire HD
[HTC Sensation] akamustang:
It fixes it because it changes the file path to something the file selection app will ignore.

When the SD card is mounted on PC it is not available to the phone.

Swyped from my HTC Sensation
[HTC Sensation] Patrics83:
Uhm but it can't make any difference if you rename the folders..... I mean if you call it. PleaseIgnoreThisRingtones/your ringtones. The system will find them anyway. Right?

Ofc they won't work when connected to pc but then you need to delete all unwanted ringtones from the system and add only yours.

Sent from my HTC Desire HD
[HTC Sensation] sumasage:
Any ETA on this? :D
[HTC Sensation] Patrics83:
Well I have rebuilt it from scratch now but we might have found an even better way to make the list even more clear so it might take some more time...

I will do my best ;) But this takes so looooong time to edit it since all app info must be in the list and also it must still match the first post.
[HTC Sensation] akamustang:
No, this is what I am saying

It will only look for */media/audio/alarms, */media/audio/notifications and */media/audio/ringtones respectively

So throwing a different folder name into the mix will mean the files won't get listed and hence duplicates disappear

Hmm, maybe I didn't explain it so well

It's not the other sound files that are being duplicated, only those that are appearing both in /system/<etc> and /sdcard/ROMCleaner/system/<etc>
[HTC Sensation] MarckX:
Just to let you guys know:

This afternoon I contacted the RomCleaner devs with my concern about the HTC security hole posted by TrevE as described here: TrevE at Androidpolice.com :eek:

Ofc they had read it themselves and they will be releasing a new version of RomCleaner (v2.4r1) probably tonight.... This version will remove the known HTC spyware :D
[HTC Sensation] Patrics83:
ROM Cleaner v2.4r1

ROM Cleaner v2.4r1 - 2011-10-03

-Due to a big security hole in Sense 3.0 and 3.5 ROMs we released this quick fix. Source http://tinyurl.com/68z8lse

-Added following apps.

*HtcLoggers.apk

*RamdumpEnabler.apk

*NetLogger.apk

-Also included data folders created by these apps.

From the script

/system/app/HtcLoggers.apk
/data/data/com.htc.loggers
/system/lib/libhtc_loggers.so
/system/app/RamdumpEnabler.apk
/data/data/com.htc.android.ramdump
/system/lib/libhtc_ramdump.so
/system/app/NetLogger.apk
/data/data/com.htc.android.netlogger
/system/lib/libhtc_netlogger.so
/system/app/PowerLogCollector.apk
/data/data/com.htc.PowerLogCollector
/system/app/restartapp.apk
/data/data/com.android.restartapp
/system/lib/libhtcqxdm2sd.so
[HTC Sensation] Astug:
Hi.

I flashed super-wipe, Android Revolution HD 3.6.1 XE and then rom cleaner (the latest version). Everything went fine, the phone booted, I went through the setup wizard, I pressed no for the location stuff (so both are on, as shown in the screenshot) and when you go the next page you have to agree/disagree with google stuff about locations, so I agreed. After all this the launcher still force closes. I've tryed this all again, 3 times so far, no luck.

Any ideas?

EDIT: Tryed a 4th time, this time I didn't disable auto sync and I did connect to a wifi, still getting launcher force close. :(
[HTC Sensation] Patrics83:
Strange, is your weather beeing shown in the sense clock?

Also what did you add or remove in your user list?
[HTC Sensation] Astug:
No, my weather is not shown in the sense clock, because I have no country setup.

No user list, just the default list.
[HTC Sensation] Patrics83:
Your current location should be displayed. Maybe that's the problem.
[HTC Sensation] Astug:
Ah I see, I'll give it another try tomorrow, currently trying out different rom's. Thanks for the help.
[HTC Sensation] Patrics83:
No problem mate! :D

I will do my best to help you out...
[HTC Sensation] Astug:
I just tryed it again, with auto sync enabled, connected to wifi, launcher force closed once (location didn't show on the weather widget), after the force close, location was shown correctly and no more force closes, so I'm guessing it's fixed.

Can I disable auto sync and google locations stuff now?
[HTC Sensation] Patrics83:
Yeah, thats what I thought.

Try it but I bet you will have those FCs back again :(

Why don't you have those options enabled?

Anyway I will look in to it. But so far we haven't found any good solution for it except this one.

Sent from my HTC Desire HD
[HTC Sensation] imlijunda:
Good job!thanks
[HTC Sensation] Patrics83:
Your welcome :D

Sent from my HTC Desire HD
[HTC Sensation] Astug:
Simply removing the weather widget allows for disabling auto sync & google locations without any launcher force closes.

I disable auto sync for longer battery life and disabling the google locations stuff is just me being paranoid. ;)
[HTC Sensation] Patrics83:
Well it is a solution yes, but also a boring solution :p

You can try one more thing, but its not recommended or supported by us.

Flash ROM Cleaner after first boot... And I think it will work, give it a shot if you want.

Sent from my HTC Desire HD
[HTC Sensation] loveubuntu:
Helping a friend with his Sensation to get rid of this latest HTC security issue and will be using Rom Cleaner. Great work.

questions:

1-The OP says it should work on any rom. How about other devices? Can I use this on Verizon's HTC Thunderbolt?

2-the OP also mentions the superwipe zip file. I assume we can just manually do a wipe in CWM (data/cache/system/davlik), correct? Where do I download this superwipe zip file anyways. TIA

3- I personally use an AOSP rom (droidtheory's shift). Obviously there is no Sense involved to be removed. Can this be somehow used with AOSP roms to remove/backup/reinstall pieces of the rom?
[HTC Sensation] akamustang:
If the folder structure is the same, i.e. the files being removed are in the same locations, then yes. This has not been tested on all devices. I think the easiest thing to say is it should work fine, if not then report back with your troubles.

ARHD thread or here is the direct link http://tinyurl.com/6bh9jvc

Sense or no sense doesn't matter. Once again, if the files/folders exists at the specified locations then they will be removed.

Swyped from my HTC Sensation
[HTC Sensation] Patrics83:
0, Thank you! :D

1, Yes it should work, and since a few versions back ROM Cleaner use all important commands from a know working busybox. Before it was all up to the recovery.

2, Super wipe (also know as a ext4 formatter tool) it's like full wipe or as you said.

3, You need to make your own romcleaner_user.txt and add apps from that ROM because as you said it will remove htc sense stuff but also Google apps. With a self edited user.txt you can remove what ever.you want.

Good luck and please report back any problems and we will do our best to help you.

Thanks akamustang for your explanation :D

Sent from my HTC Desire HD
[HTC Sensation] loveubuntu:
Thanks. Ok here I go. I'm going to test this on Verizon HTC Thunderbolt after flashing XDABOLT rom (very close to stock). I will just format data, system, cache, and davlik manually. Will report.
[HTC Sensation] loveubuntu:
works as advertised on HTC Thunderbolt 4g on Verizon Wireless. Thanks. Followed the steps from the OP:

Backup Data (used titanium backup to backup my data in rom I normally use)

Folder Creator (flashed the Folder Creator v1.2 from the OP in CWM)

Backup Apps (flashed the Backup Tool v1.0)

SuperWipe (wiped system, data, cache, davlik manually)

Flash Rom (flashed my stock rom nandroid backup )

Flash Cleaner which will also install apps

First Boot

Setup Phone

Flash HTCSetupRemover

Restore Data

Normal Reboot

Use clean and smooth running Phone!

thanks
[HTC Sensation] Patrics83:
Great! :D

Did ROM Cleaner also delete apps?

Sent from my HTC Desire HD
[HTC Sensation] loveubuntu:
I'm confused now. I flashed my original nandroid backup right after the boot and do not see tell htc apk or htclogger anywhere. It was late last night so I'm going to start again from the beginning. You know what to look for when I have the rooted stock rom up regarding this new HTC fiasco?> What programs? I saw the ones mentioned in the txt file for the latest version but do not see any of the files, even before running the script. Is it possible that my htc thunderbolt did not come with it?
[HTC Sensation] loveubuntu:
ok i just realized my original rom was froyo not GB and this issue is a GB issue. So I will flash a gb-sense rom and re-test and report my success/issue. stay tuned...
[HTC Sensation] loveubuntu:
I need help with this testing the script on Verizon's HTC Thunderbolt. I have flashed GB roms and froyo roms, then tried to look for the files the script would remove with the latest edition to make sure they are there. Specifically /system/app/HtcLoggers.apk and /data/data/com.htc.loggers.

I skipped through all the initial setup, did not setup a google account or an NTC account (is this the reason?). Then used rootexplorer to look for the files so I could confirm they are there. This way when I use the script and they get erased I could come back and report. The problem? I don't see these files on any rom that I have flashed. And I flashed 6 of them. (5GB and 1 Froyo) Can skipping the account creation be the problem? Also, all the roms I used were last updated before this security hole was discovered so they can't have the fix. Confused.
[HTC Sensation] Patrics83:
OMG! ;)

HTC loggers is in sense 3.0/3.5 ROMs only.

Also check your romcleaner.log located in /sdcard/ROMCleaner/Logs.

Btw, upload all logs here. Including your romcleaner_user.txt

Sent from my HTC Desire HD
[HTC Sensation] loveubuntu:
there is only one pure sense 3.0 rom for the Thunderbolt.

http://xdaforums.com/showthread.php?t=1003891

and that appears to have all the spyware components removed. Someone suggested, I'd unroot and do all the OTAs manually and then try. But Sense 3.0 is not out for the Thunderbolt (at least I don't think so since GB is not even officially out).
[HTC Sensation] Patrics83:
I'm not sure about what you are trying to do....?

Remove only HTC loggers?

Sent from my HTC Desire HD
[HTC Sensation] loveubuntu:
trying to see rom cleaner works removing this new HTC security fiasco files from a Verizon HTC thunderbolt. But I have yet to find a GB Sense 3.0 or 2.1/3.0 hybrid that actually has the files (htclogger or tellhtc.apk) so I could test it.

Nothing essential but was bored and wanted to see if this script works on other HTC phones.
[HTC Sensation] Patrics83:
And why don't you make it 10 times easier? ;)

Just flash ROM Cleaner. Pay attention to the script when flashing it. It will tell you if it works. Or after you have flashed it, just check the ROMCleaner.log

There is no need to find a ROM with those apps inside. If it works it works.

Sent from my HTC Desire HD
[HTC Sensation] :
Just a quick question, how can I stop ROM cleaner from removing the skins and scenes from the personalise page.

I Have put hashes by burgundy.apk and others but they still seem to be removed am I missing some files I should be excluding from the cleaning process?

Great work with romcleaner I use it after each flash.

Thanks

Nik
[HTC Sensation] Patrics83:
Don't forget SkinPicker.apk

Thanks, happy to hear that :D

Sent from my HTC Desire HD
[HTC Sensation] :
Thanks for the quick reply, I had already removed skin picker. I remove anything with the word "skin" "theme" or to do with the BlueSky.apk or burgundy.apk.

If I attach my romcleaner_user.txt later would you kindly take a look?

Sent from my HTC Sensation using the XDA App
[HTC Sensation] Patrics83:
Yes ofc no problems!

Sent from my HTC Desire HD
[HTC Sensation] :
Romcleaner_user

Hi Patrics83 I have attached my custom text file. I don't really change much from the the standard text file, other than wanting to keep the Skins and Scene parts personalise display.

If you could take a look and let me know what I need to # out of the text in order to keep these I would really appreciate it.

Thanks

Nik
[HTC Sensation] Patrics83:
It looks ok. Except you didn't comment out all scene pictures.

Try this ROMCleaner_user.txt
[HTC Sensation] :
I'll give it a go tonight. Many thanks for your help

Sent from my HTC Sensation using the XDA App
[HTC Sensation] Patrics83:
Anytime, I hope this will do the trick ;)

Sent from my HTC Desire HD
[HTC Sensation] :
It's works even better now, I can't thank you enough

Nik
[HTC Sensation] TheEyes:
Hey, will this work with the new 3.6.2 Revolution ROM update? I can't really see why it wouldn't, but I figure it's better to ask before using it rather than after. :D
[HTC Sensation] Patrics83:
Np mate.

ARHD is still a Sense ROM so just flash and be happy :p

Sent from my HTC Desire HD