argedion
The TechnoFrog
I have several wallpaper apps and a few other apps that put cache on my sdcard. I backup my sdcard quite a bit as I'm always putting stuff on it. What I don't want though is all the cache that is pretty much useless to me. At first I added the wipe into my Backup Bash however I kept getting errors with the bash. There was either permission errors or it wouldn't remove stuff without full names (something I would have no way of knowing unless I went into the sdcard and wrote them all down something that would defeat the purpose as I would have to do so every week) I then Had a wonderful Idea and that was what if I could just flash a wipe every week before starting my backup? I opened Caulkins Format all (Edify) which only wipes:
Boot
Cache
Data
System
Nothing from the sdcard so I said hmm that sux. Then I though well what about Superwipe. So I opened it up and found that indeed superwipe had some references to the sdcard. It wipes a few temp things from the sdcard. so I said well I can use the code as a foundation for my script then. My only issue is that Superwipe uses Amend Scripting and I wanted it to be Edify so it would be compatible with newer stuff (Assuming I'll be able to use it on my new phone when I get it a year or so down the road) So I used Caulkins to Help me with the Edify format and Superwipe to help with the paths and info. I've had to make a couple of adjustments but it works pretty well.
Note If you decide to use this as a basis for your's please make sure you have your path's correct. Also as Always
I AM NOT RESPONSIBLE FOR WHAT HAPPENS TO YOUR PHONE OR CARD AS A RESULT OF USING THIS SCRIPT. BY USING THIS SCRIPT YOU AGREE THAT ANY ILL AFFECT IS THE RESULT OF SOMETHING YOU HAVE DONE AND NOT THE RESULT OF THE SCRIPTS ORIGINAL AUTHOR.
Now with that being said here is the code. I am not going to make this downloadable as you will need to modify it for your own use.
Also Credit Goes to Caulkin and Virus for their wipes which was the foundation of which this was coded.
You can add
run_program("/sbin/reboot");
to automatically reboot when the script is done.
Hope this can help someone and if you need any help hit me up
Boot
Cache
Data
System
Nothing from the sdcard so I said hmm that sux. Then I though well what about Superwipe. So I opened it up and found that indeed superwipe had some references to the sdcard. It wipes a few temp things from the sdcard. so I said well I can use the code as a foundation for my script then. My only issue is that Superwipe uses Amend Scripting and I wanted it to be Edify so it would be compatible with newer stuff (Assuming I'll be able to use it on my new phone when I get it a year or so down the road) So I used Caulkins to Help me with the Edify format and Superwipe to help with the paths and info. I've had to make a couple of adjustments but it works pretty well.
Note If you decide to use this as a basis for your's please make sure you have your path's correct. Also as Always
I AM NOT RESPONSIBLE FOR WHAT HAPPENS TO YOUR PHONE OR CARD AS A RESULT OF USING THIS SCRIPT. BY USING THIS SCRIPT YOU AGREE THAT ANY ILL AFFECT IS THE RESULT OF SOMETHING YOU HAVE DONE AND NOT THE RESULT OF THE SCRIPTS ORIGINAL AUTHOR.
Now with that being said here is the code. I am not going to make this downloadable as you will need to modify it for your own use.
Also Credit Goes to Caulkin and Virus for their wipes which was the foundation of which this was coded.
Code:
ui_print("Now Deleting Wallpaper apps Cache ");
show_progress(0.1, 0);
delete_recursive("/sdcard/.BBHD3/thumbs/");
delete_recursive("/sdcard/zedge/cache/");
delete_recursive("/sdcard/WpcasaCache/");
delete_recursive("/sdcard/Wallbase/.WallbaseCache/");
delete_recursive("/sdcard/santabanta/cache/");
delete_recursive("/sdcard/PicSpeed Wallpapers/PicSpeed Wallpapers/PicSpeedcache/");
delete_recursive("/sdcard/PicSpeed Wallpapers/PicSpeed Wallpapers/cache/");
delete_recursive("/sdcard/MovieWallpapers/cache/");
delete_recursive("/sdcard/MODIGM/A+ Backgrounds HD/Cache/");
delete_recursive("/sdcard/MODIGM/A+ Backgrounds HD/Temp/");
delete_recursive("/sdcard/Flikie/.tmp/");
delete_recursive("/sdcard/Flikie/hdlocalcache/");
delete_recursive("/sdcard/cache/com.acteam.hdwide/");
delete_recursive("/sdcard/cache/com.acteam.fixedhdwide.new/");
delete_recursive("/sdcard/Android/data/io.vov.vimage/cache/");
delete_recursive("/sdcard/Android/data/io.vov.vimage/files/Pictures/fthumbs/");
delete_recursive("/sdcard/Android/data/com.alensw.PicFolder/cache/");
ui_print("Now Deleting Apps Cache on Sd Card ");
delete_recursive("/sdcard/SpeedSoftware/.thumbnails/");
delete_recursive("/sdcard/SpeedSoftware/temp/");
delete_recursive("/sdcard/myalbum/");
delete_recursive("/sdcard/getjar/cache/");
delete_recursive("/sdcard/FOUND.000/");
delete_recursive("/sdcard/dcim/.thumbnails/");
delete_recursive("/sdcard/.cache/");
delete_recursive("/sdcard/Android/data/com.google.android.apps.maps/cache/");
delete_recursive("/sdcard/Android/data/com.facebook.katana/cache/");
delete_recursive("/sdcard/Android/data/com.amazon.venezia/cache/");
delete_recursive("/sdcard/airdroid/cache/");
show_progress 0.1 10
ui_print(" Cache has been cleaned. You may now Reboot ");
You can add
run_program("/sbin/reboot");
to automatically reboot when the script is done.
Hope this can help someone and if you need any help hit me up
