Hi I am trying to clear cache of installed applications, I have achieved this below android 6.0 versions.But When While I am trying to achieve it in android 6.0, it throws java.lang.SecurityException: Neither user nor current process has android.permission.CLEAR_APP_CACHE. But I have defined it in mainfest.xml. But I also read it can't be done in android 6.0 due to security reasons, but the most popular applications like Clean Master clears cache. how do clean master clear application's cache? Please help me. I have stuck here. Thanx.
Asked
Active
Viewed 3,268 times
0
-
Hi guys, I got the hack that is used by other apps to clear cache memory in android M (6.0). Now I am able to clear cache memory in android M. Thanks for replying guys.. Thanks again – Jitendra Singh Apr 29 '16 at 06:33
-
@jitendar Sign can you share what was the solutions. – silentsudo Oct 19 '16 at 08:22
-
@sector11 they uses accessibility service to do it... – Jitendra Singh Oct 27 '16 at 09:49
-
@JitendraSingh Can you please answer https://stackoverflow.com/questions/56206710/clearing-the-cache-on-os-versions-above-marshmallow question. I have started a bounty worth 100 points. – Rahulrr2602 May 27 '19 at 17:10
-
Did anyone get any solution? – Bhaven Shah Dec 15 '21 at 07:36