• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Root [Merit] [release] clear app cache

valueforvalue

Well-Known Member
I made a quick script that can be used with init.d to clear you app cache. No need for an app to do it for ya anymore.

This script doesn't touch the app data so all your settings will remain. You can also just run it from scripter or terminal, instead of installing to init.d. Make sure it's ran as root from the terminal.

To use it with init.d just extract it to your /etc/init.d folder and set permissions to 777 and your done. Don't forget to remove that useless app that used to serve this purpose that's taking up precious space. ;-)

This is version 2 of the script I might improve on it later if necessary if so I will update it here.
EDIT: Ok I made some changes and removed busybox and got the script working properly. It worked before but definitely wasn't the best way to do this.

*Thanks to stayboogy for his help on this!*

*Thanks to Redfield for being one more person who doesn't like busybox *

Him and stayboogy gave me a reason to figure out how to get it to work without it.

This script should be perfectly safe to use on your phone I tested it thoroughly. That being said I am not responsible for any damage you do to your phone with it. Use at your own risk and discretion.

New Download Here:http://www.sendspace.com/file/hu1w9r
 
I dont understand why everyone uses busybox for simple task that simple shell scripting can do on its own.

On a side note, good work but I'll stick with my own script. ;)
 
i sent you my findings in email.

and i agree with red, busybox is USELESS.

when busybox is installed it symlinks rm to toolbox, not busybox


*edit--script actually deletes caches in /data/data/xxx.xxx.xxx/cache like it's supposed to. was a misunderstanding on my part.
 
i sent you my findings in email.

my conclusions are that the script doesn't do anything.

and i agree with red, busybox is USELESS.

when busybox is installed it symlinks rm to toolbox, not busybox

when /data/data is actually cleared it produces a quasi-reset in that all personal settings are cleaned, but userapps remain. that's why all my testing of relocating /data/data to /dev resulted in such...
I had the same issue with moving /data/data to /dev stayboogy. Data seems to be forced to stay where it is located by default.

I'm still trying though.. I work a lot of hours so my scripting time is limited.
 
I had the same issue with moving /data/data to /dev stayboogy. Data seems to be forced to stay where it is located by default.

I'm still trying though.. I work a lot of hours so my scripting time is limited.


that's interesting. yeah, no matter what i tried it never worked for me.

i've seen a script that supposedly moves it to sd-ext though without issue.

see here--script A2SD++ INIT.D SCRIPTS BY CRONICCOREY
 
I dont understand why everyone uses busybox for simple task that simple shell scripting can do on its own.

On a side note, good work but I'll stick with my own script. ;)

I used busybox because when I tried it with a simple rm command it wouldn't work. I couldn't figure out why very strange.
 
i sent you my findings in email.

my conclusions are that the script doesn't do anything.

and i agree with red, busybox is USELESS.

when busybox is installed it symlinks rm to toolbox, not busybox

when /data/data is actually cleared it produces a quasi-reset in that all personal settings are cleaned, but userapps remain. that's why all my testing of relocating /data/data to /dev resulted in such...

The script does work, I think you might have misunderstood its purpose a bit stayboogy. It Again may not be the best way to do it, but it is functional in its current form. I submitted it to you so with your help I could make improvements. Because it's far from perfect. But basic functionality comes first then the fine tuning.
 
Back
Top Bottom