清除其它应用程序缓存 [英] Clear another applications cache

查看:126
本文介绍了清除其它应用程序缓存的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

从来就一直在读在这里有关清洁另一个应用cahce内存,并且从来就还试图编码自己的应用程序。结果从来就得到的,是用机器人目前securitylayer,it's不可能的。

I´ve been reading around here about cleaning another applications cahce-memory, and I´ve also tried coding my own app. The result I´ve got, is that with Androids current securitylayer, it´s not possible.

不过,目前许多缓存清洁应用程序在那里的市场(谷歌播放)?

But, there is currently many cache-cleaner applications out there on the Market (Google Play)?

当我开始,我给了 android.permission.DELETE_CACHE_FILES 许可我的应用程序,打印的LogCat中

When I started my application which I gave the android.permission.DELETE_CACHE_FILES permission, the LogCat printed

Not granting permission android.permission.DELETE_CACHE_FILES to package <MY_PACKAGE_NAME> (protectionLevel=3 flags=0x8be46)

经过一番研究,我发现,3:第三方应用程序将不会被授予的权限的ProtectionLevel = 3 所以,我遇到一个java.lang.SecurityException异常每当我尝试删除其他应用程序缓存(逻辑)

After some research I found out that 3:rd party apps would not be granted permissions with protectionLevel=3 so, I encounter a java.lang.SecurityException whenever I try to delete another application cache (logically)

我的问题是为此:如何在谷歌这些应用中发挥允许并能够删除其他应用程序缓存?

My question is therefor: "How is these applications on Google Play permitted and able to delete other applications cache?"

对不起,我的英语不好,而不是母语的人

推荐答案

您只能这样做,如果该设备是植根和你的应用程序有超级用户权限。

You can only do this if the device is rooted and your application has super user rights.

这篇关于清除其它应用程序缓存的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆