ok but does it also delete the cache of other apps installed on the phone?
Why?
Read again the answer
Them try it and let us know, if it worked for you
Taifun
it doesn't work I'm using Android 12 with the ai2 companion,
I tried to see the cache from the settings for example of YouTube which is 702mb and after the "cleaning" it's still 702mb
what am I doing wrong?
thank you all
Cachecleaner.aia (1.8 KB)
could you give me the aia file if possible?
so I can understand how it works
Thank you
Cachecleaner2.aia (5.3 KB)
You must build the APK, because this permission is not declared in the Companion's Manifest.
ok thanks a lot I'll try now
ok I think it works but is there a way to make it work on older versions of Android?
then no? I needed it to work on Android 9 too
and how can I select the apps I want to clean the cache? example:
There were not many storage restrictions in older versions.
Find external cache folder of all apps and then delete one by one.
/storage/emulated/0/Android/data/<package_name>/cache
I would suggest you to explore Files and Storage related topics in community, especially when you are trying copy feature of a full fledged App.
Hmm, means?
thanks but how do I delete the files inside the App Cache folder? and how do I display a list with apps like in the photo?
Where are these /cache
folders?
Aren't they in internal storage?
/data/data/<packageName>/cache/
or
/data/user/0/<packageName>/cache/
Internal and external storage both have cache folders.
This is external cache folder.
and this is internal cache folders.
I am unable to recall whether internal one can be accessed by other apps or not.
On two of my test devices (Pixel, A13 + 14) I only found a cache folder (in the external storage) in 2 or 3 cases and only one of those was not empty. And that was the Telegram app.
So it seems that many apps use the cache folder in the internal storage.
In the companion apps of AI2, Kodular and Niotron, only Kodular has/uses a cache folder in the external storage.