yashsingh1/xdaforums huggingface dataset:
[Desire HD Android Development] Patrics83:
Yes, I hope this will help.

Edit;

Guys it will still not remove more apk's then it's written in first post ;)

And removing 3D stuff is tricky. Some apk's works togheter and removing one apk might cause some serious issues so be carefull.
[Desire HD Android Development] Zahurtex:
Well, I will try and see if it works... Thank for the quick fix! :)
[Desire HD Android Development] Patrics83:
Don't say thanks to soon mate :D
[Desire HD Android Development] tdizzle404:
so if i just run this script as is i should be ok?
[Desire HD Android Development] jaypeg123:
same error
[Desire HD Android Development] Patrics83:
Yes I hope so, hard for me to test it. And its the first time some one reported such issue
[Desire HD Android Development] Patrics83:
Damn :(

And you flashed 1.1r1?
[Desire HD Android Development] tdizzle404:
Yea me to.
[Desire HD Android Development] jaypeg123:
yes I did, I am dead sure ha ha
[Desire HD Android Development] Patrics83:
Nice to here you like it :D

Yeah that's the whole idea. Kepp sense intact but clean a lot off stuff from the ROM. This will also make widget lists and appdrawer much cleaner. No unused apps at all :D

Your welcome mate!
[Desire HD Android Development] Euphorie:
What about ROM Cleaner?

I know it don't have options for everything, but for most of them or am i wrong?

Also don't be mad and don't feel offended if my question is stupid^^

I am still learning stuff about android :p
[Desire HD Android Development] Patrics83:
Ofc you can use ROM Cleaner application on your PC but with this script you can just put a untouched ROM on the sd card and flash it. After the flashing process just flash my script and with in less then 10 sec all files in the list will be removed. I like this way much better. ;) And in case of any issues with the ROM you can easily just reflash the ROM to be sure you didn't remove any sensitiv part from the ROM.

Why would I be mad? ;)
[Desire HD Android Development] Patrics83:
Minor update of my script (v1.0.2)

See file list for changes

Added folders to the script where you can add apk's or bootanimation.
[Desire HD Android Development] Whiskey103:
Nice.. especially the added folders option is awesome.

Sent from my Desire HD using Smoke Signals, Morse Code and Pigeon Post.
[Desire HD Android Development] Patrics83:
Yeah it's a very nice thing to have. For example I add all my modds and some other nice things. So the flashing process is going very fast for me :D
[Desire HD Android Development] no_johnr:
Ref: Chat in IRC-channel. You're right. I didn't understand in detail what your script did, until i read the whole thread! :P

So, what goes into which folder?

/system/app = ?

/data/app = ordinary apps?

/data/local = bootanimation.zip ?

And I guess I'll just add them directly to the zip with WinRar (or should I use 7zip *or what it is called*)?
[Desire HD Android Development] Dude360:
/system/app = Usually 'system' apps like replacement lockscreens, modded rosies etc. Ive found adding HTC widgets and normal market apps dont appear if added here though.

/data/app = User installed apps, this is where market apps usually get installed to.

/data/local = bootanimation.zip & android_audio (boot sound)

Theres also /system/media/audio/* where you can add ringtones and notification sounds :)

As I flash a lot and hate google & market keeping a list of my apps to redownload every time I reflash I tend to get all the apps I want installed then copy them to SD with root explorer. Add them to /data/app in the zip and they will be installed on first boot :) Saves a LOT of redownloading.

When theres an app update, I do the same and update my zip with the new version :)

You will the get odd app that will FC on first boot, I just leave them on the SD and install as normal :)

As for the winrar/7zip, Winrar will occasionally give you a 'bad zip' in CWM so if you find this often use 7zip, either one will do though :)

When editing the script I recommend Notepad++ or similar as it makes the whole thing a lot wasy to read and edit.

Definitely a massive time saver! Cuts my flashing time down by half with only 2 maybe 3 reboots needed sometimes.

I also learnt a lot about the scripts by looking through this one and the like of nosense :D

It also allows me to keep the rom zip untouched which is great for troubleshooting.
[Desire HD Android Development] Patrics83:
@no_johnr I guess I dont need to say anymore then what Dude360 already did :D

Thanks goes to Dude360 for this good explaination.
[Desire HD Android Development] no_johnr:
Thanks a lot :)

Will try it when ARHD 5.1.6 arrives.
[Desire HD Android Development] Patrics83:
Please do that. :D You will love it...

Just tell me If you need any help with the editing :D

It can be hard the first time.
[Desire HD Android Development] Patrics83:
Latest update of my script (v1.0.3) / HTC Setup Wizard Remover r2

Now mounted in EXT4 to avoid compatibility problems with newer ROMs

See file list for changes

Added more folders to the script.

Data/app = Add non system apps

Data/Local = Add bootanimations and bootsound

System/app = System apps

System/Framework = Modds (APM, CRT etc.) Dont add framework-res.apk here.

It will cause issues when flashing it before first boot.

If you are intrested I have a HTC Setup Wizard remover that ofc removes the wizard but it also gives you the ability to add addons that require at least one boot.

Just put the addons in the framework folder and flash it :D
[Desire HD Android Development] Dude360:
Im interested. Might solve the issue of merging the S3 LS and Weather together which causes the shortcuts to disappear...

:)
[Desire HD Android Development] Patrics83:
Well I will add it to the first post soon.

Edit: Uploaded! Enjoy a new way of fast flashing!
[Desire HD Android Development] Dude360:
Sweeeeeet! Will be having a fun night tonight :D
[Desire HD Android Development] rica2000:
Just flashed ARHD 5.1.7 with weather, locksreen and USB mods merged in your cleaner script and everything is ok. All shortcuts are where they are supposed to be :)
[Desire HD Android Development] Patrics83:
I'm happy to help you guys! :D

I guess you like the speed of this flashing process... ;)
[Desire HD Android Development] Dude360:
Thats really good to know, I spent days testing different merge combos. LS & weather were the only two that were chalk and cheese!

Havnt had chance yet :( Been out and missed yet another rom release (mike waits for me to go out, I know it!)
[Desire HD Android Development] Dude360:
Ok, just a quickie as busybox commands\syntax is a little new to me.

I dont need to remove the wizard as its already gone from rom (edited build.prop).

I just need to copy over the system folder again so should it be?:

run_program("/sbin/busybox", "mount", "/system");
package_extract_dir("system", "/system");
run_program("/sbin/busybox", "umount", "/system");

With obviously the framework folder renamed as system.

;edit; worked ok :) see my next post though :(

Could I ask what the difference is between using busybox to copy as opposed to mounting them?

I know 'what' busybox is, but not about its usage in sits like this.

Cheers again :)
[Desire HD Android Development] Spaghetti-XRY:
Can you please explain me, and also to everyone interested, how u've done?

I've tried to copy files from others scripts (ex. S3 - LS - USB - Task - Weather) into the folders and then added the lines of those updater-script to the one present in Rom Cleaner v.1.0.3 but I'll get an error "status 6" when i try to flash my .zip from CWM 3.0.0.6.

Status 6 means that there's a sintax error, so I've done something wrong, I tried to check if I forget signs in my sintax but didn't find it. It's possible that is just an error in "signing" the .zip ... uhm, i mean, something that i've to add in CERT and MANIFEST files ?

Any suggestion will be appreciated.

Thanks
[Desire HD Android Development] Patrics83:
:D

Ok I just make a new try then :D

Can someone please post a link to the Pyramid ROM development page...

Edit:

Can someone also join our live chat (link in my sig.) I need someone with a Pyramid ROM, faster to test stuff that way. ;)
[Desire HD Android Development] Zahurtex:
Giving error here also ... v1.1r1 only difference in beging error :

Unmouting partitions

(system is unmounted already)

(data is unmounted already)

Mounting partitions

assert failed:

edit**

pyramid rom link:

http://xdaforums.com/showthread.php?t=1075703
[Desire HD Android Development] Patrics83:
Well here is another attempt...

Didn't test it myself :D but it's more fun that way ;)

ROM Cleaner v1.1r2
[Desire HD Android Development] Zahurtex:
This time it seems to be working... it has given the message 'your phone is successfully cleaned' after a little while and now I am re-booting the phn. Will update here.

Edit**

:DYES!!!! its working mannn:D

I immediately see difference in free ram ... its up 40mb and free internal storage is gained 70mb more and now its 162mb that is after installing 70 apps. :eek:
[Desire HD Android Development] Patrics83:
GREAT!! :D

Thanks for the quick feedback!
[Desire HD Android Development] Zahurtex:
Just to let you know that HtcSetupWizard_Remover_- Addon Flasher_v3 is not working and giving the same error as the Rom Cleaner maybe you have to fix this also. :)

All other things are working and its really striped the sense without losing any functionality. Thanks
[Desire HD Android Development] tdizzle404:
Did you clean install it or just flash it? If you just flashe the zip what steps did you take before that?

thanks in advance.
[Desire HD Android Development] Patrics83:
Yeah I will fix it now :D

Damn you HD2 users :p
[Desire HD Android Development] tdizzle404:
"Damn you HD2 users" Yea were quite the pain!
[Desire HD Android Development] Zahurtex:
I did a clean intall on pyramid v1.3 tmous and got 276mb internal storage and ram is not as significant as in pyramid v1.2 its just 127mb and this on the clean rom without installing any of the apps. and other memory killers etc.
[Desire HD Android Development] Patrics83:
I know :D

I was one before ;)
[Desire HD Android Development] Patrics83:
HTC SetupWizard Remover + Addon Flasher v3r1 in the first post.

Now works on HD2 and Nokia 5110 :p
[Desire HD Android Development] tdizzle404:
Great Man thanks!
[Desire HD Android Development] Patrics83:
Don't forget the thanks button guys :D
[Desire HD Android Development] tdizzle404:
I flashed it and it said it was successful but it didn't remove anything.:confused:

I did a clean install and followed instructions,was i sappose to edit anything?
[Desire HD Android Development] Patrics83:
What?! :eek:

Some users reported it to be working...

Where is your system/app located? Internal memory or SD card?
[Desire HD Android Development] Patrics83:
Hmm, I never even tried to add that much stuff but it should work, on a clean ROM Cleaner script. Add all Apps before first boot. The unknown source check can't controll this at all.

What error with the setup cleaner?

And please only post pastebin.com links here with the edited scripts.
[Desire HD Android Development] Rolando88:
looks nice!

Thanks dude!, did my first try with your script!
[Desire HD Android Development] Rolando88:
Thanks dude!, but im still missing the stock live wallpaper its not shown in live wallpapers i did:

#delete("/system/app/LiveWallpapers.apk");

but im still missing it...

*EDIT*

Nevermind found issue...

#delete("/system/app/Mode10Wallpapers.apk");
[Desire HD Android Development] Patrics83:
Thanks mate!

Always nice to see when ppl find the issues them self :p
[Desire HD Android Development] Zahurtex:
It is working and damn goody... :)

I tried today on latest pyramid v1.4 I first flashed the rom w/o flashing rom cleaner and checked the free internal space it was sitting at 235mb ... then I flashed the rom cleaner and booted again this time internal free space is 276mb so Rom Cleaner is working and working damn good. :p

To gain more free space you can add to script more things to be removed .. I used it as it is and did not add any apks to remove infact I put #sign in few not to be removed.
[Desire HD Android Development] Dude360:
You should see mine :p

I took some from the nosense and nosense++ scripts as well such as htc wallpapers, scene icons etc :)
[Desire HD Android Development] Patrics83:
Thanks for the feedback :D

Well there is a lot of stuff that can be removed but where to draw the line? :)

I made this script to remove stuff that won't make sense look strange if you see what I mean... The problem is also if I start to delete all backgrounds and ringtones I will get tons of questions about how they can restore backgrounds and stuff, I don't need that :D

And I know most users now have learnd how to edit this script to be as good as possible.

I might be wrong but I have learnd from my master dev. Mike1986, keep it clean and you will succed :D

And I really do belive I succeded with this tool since HD2 users is using it also and a lot of diffrent devices outside the Desire HD forum.

If some one thinks I'm wrong please tell me.. ;)
[Desire HD Android Development] Patrics83:
HAHA yeah, that's why I gave you the nick; Psycho Cleaner :p
[Desire HD Android Development] nodiaque:
is there a log file created somewhere cause I get no error on the screen when it run. I also tried installing with setup cleaner and it didn't work. I should try less application to see but it does sit a long time at installing application.
[Desire HD Android Development] Patrics83:
Please send me a PM with your updater-scripts. Copy the text to pastebin.com and give the links.

Also write how you used the folder structure. Data/app? System/app? Etc.

You don't need to list all app names but just make sure I understand how you use it.

Thanks.

You can also add this to your script.

ui_print("Creating log file on SD card");
run_program("/sbin/busybox", "cp", "/tmp/recovery.log", "/sdcard/superwipe.log");

Set it after unmounting command like this.

run_program("/sbin/busybox", "umount", "/system");
run_program("/sbin/busybox", "umount", "/data");
ui_print("Creating log file on SD card");
run_program("/sbin/busybox", "cp", "/tmp/recovery.log", "/sdcard/superwipe.log");
[Desire HD Android Development] Zahurtex:
Can you guys... PLS... help me figure out which apps or files I can delete safely from the rom I am using in my sig. I have attached the names of included apps. / apks and widgets included in the rom.

I am right now using your stock updater-script with few things I wanted to keep I put #sign in begin of the line. Current script I using is attached as pastebin link. Thanks Guys :)

Pastebin Link
[Desire HD Android Development] Patrics83:
Well I can't help that much because its a lot of try n error in this. First of you can try to remove apks with root explorer then check how it behaves after. Check syncing and stuff like that. Also have in mind that removing one apk can break everything or others apps. After you successfully removed an apk, add it to the updater-script and flash it after full wipe, if it works, well then you have found an apk that can be removed ;)

This things isnt made over night as you might understand now...

Good luck my friend! :D
[Desire HD Android Development] Zahurtex:
Noo, its not like I want you try on your device .... I just wanted you experienced guys to have a look on those pages and just suggest which apps. Or widgets can be deleted then I will do the trial and error based on your opinion.
[Desire HD Android Development] maxfun_cn:
great work
[Desire HD Android Development] ProreX:
I would like to thank you. I've tried it on Virtuous Unity and I don't see any problems. Program Bankomap is giving me FC, but I think it is not script related.

Thank you,
[Desire HD Android Development] Patrics83:
Thank you so much guys!

Every "thank you" post is my pay check :D
[Desire HD Android Development] evilcuber:
can you choose what to keep? like some of the htc widgets i would like to keep and google search anywhere, i would like to keep as well. Also on average how much ram do you have after words? and will this work on the htc desire z with virtuous unity sense 3.0 rom?
[Desire HD Android Development] Patrics83:
If you take a close look at the app list in the first post you you will know exactlly what to remove or keep.

Follow the instructions in first post how you edit the script.

Just put a # in front of widget_name.apk if you wish to keep it.

It will work on all sense ROMs since v1.1r2

But have in mind that 3D widgets and other stuff that is sense 3.0 specific will still be left in the ROM after using my script.

As I said take a close look at the app list and all instructions in first post.

Good luck my friend! :D
[Desire HD Android Development] Rolando88:
Guys the script doesn't seem to work on ARHD 5.2.2 NVM thought dat facebook was deleted at default asswell
[Desire HD Android Development] Patrics83:
Don't you ever scare me like that AGAIN! :O

;)
[Desire HD Android Development] evilcuber:
When i change the script and try to save it it says save failed and says please check if this file is used in another program. i opened it with 7zip and edited with notepad++. any ideas?
[Desire HD Android Development] aliveanddead86:
I agree, I am also having this problem with 7-zip and trying to edit the updater-script file...

Using winrar did solve this problem. It is to do with 7-zip thinking the file has finished being used, and cleans the temporary location even though notepad++ just opened it.
[Desire HD Android Development] evilcuber:
Thanks, i tried win zip and it worked!
[Desire HD Android Development] Patrics83:
Guys, use Winzip if possible. And do like this.

1, Open ROM cleaner zip with Winzip.

2, Find the updater-script, and open it. Choose program (notepad++)

3, Edit the script.

4, When done just exit (X) notepad++. Save.

5, Bring Winzip to top and let it update the file you changed. When it's repacked close Winzip.

Done! :D
[Desire HD Android Development] evilcuber:
ok when i try to flash it it says error in /sdcard/rom_cleaner bla bla bal

(status 6)

installation aborted
[Desire HD Android Development] aliveanddead86:
I had that for the last hour or so.. I just ended up re-doing the whole script, remembering what I added and took out.

I tried it without anything added, which worked fine, then added stuff, section by section, and just kept flashing it as I went along.

If the default script works, then something you have written in it appears to be the culprit.
[Desire HD Android Development] evilcuber:
mkay il try that
[Desire HD Android Development] evilcuber:
ok it works. that mean i did something wrong in the script. i just gotta find out what.
[Desire HD Android Development] aliveanddead86:
Just re-add stuff section at a time, i.e system apps first, then data apps... then widgets... till you find either a problem, or hopefully, it will all be fine!
[Desire HD Android Development] evilcuber:
Thanks for all your help. also im doing this on a desire z instead of a desire hd :)
[Desire HD Android Development] aliveanddead86:
No problem, it is only as i spent a large hour doing the same thing, with the same problems!

I used this script before without any trouble, but this time it was causing me problems.

Good to see this script used else where, it is a fantastic addition to add/remove items
[Desire HD Android Development] evilcuber:
Ok i found the culprit. it was the application text file. im not sure if i need it. what does the application text file do? is it the built in text editor?
[Desire HD Android Development] evilcuber:
also one question. how much extra ram did you have after rom cleaner?
[Desire HD Android Development] aliveanddead86:
I honestly couldn't tell you! But if it is causing the script not to work, then just leave it out :)

Erm, I got rid of a few extra things, for example facebook, as I never use it, plus a few other items. I can't remember exactly what i started with, but I used to have about 170-190 free (from task manager) and I now have 229 free.

But using Applications->running services I have 430 from a restart free. Both seem to give different values!

Ps, don't forget the thanks button ;)
[Desire HD Android Development] evilcuber:
Well 40ish mb will help me cuz i have the DZ which only has 512mb of ram and since i installed sense 3.0 on it, i only gets around 80-90mb of free ram. hope to get it atleast over 100 to run heavy duty apps
[Desire HD Android Development] aliveanddead86:
Let me know how it goes :)
[Desire HD Android Development] Patrics83:
Guys, status 6 is updater-script failure. Even I struggled with a script once. Couldn't find but at last I found it. It was a missing " ; " after a ui_print. :D so check all types of commands and BTW app.txt can't mess with the the updater script. ;)

Edit; I might tease you a bit also... It happend when I was working on ROM Cleaner Extreme Edition :p
[Desire HD Android Development] evilcuber:
Everything went ok but when i open up the app drawer, the apps are in rows of 6????. all the apps are tiny?

EDIT: after a reboot, everything was ok.
[Desire HD Android Development] Patrics83:
LOL this the second false alarm post today :p
[Desire HD Android Development] craacK:
when i had a walk with my dog this day... there was a strange sound

it was something like "extreme edition"

gogo:D
[Desire HD Android Development] Rolando88:
Haha sorry mate
[Desire HD Android Development] no_johnr:
#Add # in front of the commands below to activate this function.
#ui_print("Deleting HTC Sense Data");
#delete_recursive("/data/data/com.htc.launcher/");

Shouldn't it be "Remove # in front..." ? ;)
[Desire HD Android Development] Patrics83:
Damn ;)

Well what can I say? Even the sun has dark places... :D

Will be corrected in next release.
[Desire HD Android Development] no_johnr:
I saw it was correct in the setup removed script ;)
[Desire HD Android Development] evilcuber:
is it ok if i link this thread to the desire z android development forums? since the desire z only has 512mb of ram, alot of people would probably benefit from this tool;)
[Desire HD Android Development] Patrics83:
Hi, mate no problem if you link to my thread here at Desire HD forum.

I wish to have only one thread since I don't get paid you know.

I dont want to work my ass off and keep track of several threads and make updates.

I guess you understand me.
[Desire HD Android Development] Whiskey103:
I think your cleaner should be on XDA Frontage mate. ;)

As always, nice work.
[Desire HD Android Development] Patrics83:
LOL Thanks, yeah that would be a nice thing ;)

Maybe edit it a bit to remove spam and other usless stuff from XDA :D

ROM/XDA Cleaner will soon be out :p
[Desire HD Android Development] Nipqer:
Hi there, love the cleaner, fantastic idea!

I have a small problem though. I hate the HTC Mms app, as I'm on a Desire Z and it doesn't support Send on Enter.

The Vanilla Mms app does though, so I normally replace it in roms.

I tried modifying your script so that it would delete Mms.apk from /system/app/ and putting the Vanilla Mms in /system/app for your script file, however it always aborts if I have the 'delete mms' line in it.

Any idea why this would be? And would just putting the Vanilla Mms.apk in /system/app replace it properly?

-Nipqer
[Desire HD Android Development] Dude360:
Yup, you dont need to have the delete command if you are also adding it to the zip to be flashed. It will overwrite it anyway :)
[Desire HD Android Development] Patrics83:
Thanks for your feedback mate :D

It is like Dude360 said, if you put Vanilla Mms apk inside the ROM Cleaner.zip System/app and the name of the apk is Mms.apk it will be overwritten.

Also make sure to use notepad++ if you want to edit the script, I guess that's why you got the error after editing it. ;)
[Desire HD Android Development] pfennig1:
Hey guys,

I have a little problem. Because i'm from Germany i would like to have the german keyboard layout, but when i go to settings there is only the option to select english keyboard layout. Could someone please help me.

Anyway, nice job and cool idea :)