Deleting Cache with Tasker!

464 views
Skip to first unread message

Jan

unread,
Jun 18, 2015, 5:37:32 PM6/18/15
to tas...@googlegroups.com
Hi guys

I'd like to delete my Google Play Services Cache automatically with Tasker.

    busybox find /data/data/com.google.android.gms/ -type d -iname "cache*" -exec busybox rm -f {}/ ';' -exec echo "Cleared {}" ';'

I found this string on the internet. For some reason, it doesn't work for me. I set up a task in Tasker, put the command inside "Run Shell" and executed it to try if it works; it does not!

Any kind of help is much appreciated!

Cheers

Jan

Jay M

unread,
Jun 18, 2015, 5:39:45 PM6/18/15
to tas...@googlegroups.com

Did you tick use root?


--
You received this message because you are subscribed to the Google Groups "Tasker" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tasker+un...@googlegroups.com.
Visit this group at http://groups.google.com/group/tasker.
For more options, visit https://groups.google.com/d/optout.
Message has been deleted

Jan

unread,
Jun 19, 2015, 10:41:18 AM6/19/15
to tas...@googlegroups.com
Yes, I did. It's also showing the superuser rights notification.

It doesn't delete anything however, from what I can tell.

joaomgcd

unread,
Jun 20, 2015, 9:47:51 AM6/20/15
to tas...@googlegroups.com
You could try something like this: https://www.youtube.com/watch?v=yii4EWdxXPo

Jan

unread,
Jun 22, 2015, 1:50:00 PM6/22/15
to tas...@googlegroups.com
Thanks for the tip.

Unfortunately, you have to pay to use AutoShare, which is required to make this solution work.

I'm not against paying generally, but as there are more direct options (clearing the data in the android.gms folder), I'd much prefer to make those work.

John Doe

unread,
Jun 22, 2015, 1:56:40 PM6/22/15
to tas...@googlegroups.com
You could use java code to clear all caches. I don't think Tasker has the permission CLEAR_APP_CACHE, but I think you could export the task as app adding the permission. In this way, however, you delete all caches.

Jan

unread,
Jun 22, 2015, 2:57:46 PM6/22/15
to tas...@googlegroups.com
And there is no possibility to clear only certain cache with Java Code?

Because clearing all cache is not really my intention.

John Doe

unread,
Jun 22, 2015, 3:00:50 PM6/22/15
to tas...@googlegroups.com
No, you can't
Reply all
Reply to author
Forward
0 new messages