如何隐藏在Android中我的数据文件夹? [英] How can I hide my data folder in Android?

查看:112
本文介绍了如何隐藏在Android中我的数据文件夹?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是有办法隐藏在我的Andr​​oid应用程序的数据文件夹?我存储SD卡/数据/ {包名}一些东西,我想它是私有的。

Is there are way to hide my application's data folder in Android? I'm storing some stuff in sdcard/data/{package name} and I would like it to be private.

感谢。

更新
对不起,我的意思是内部存储器。我会用它来缓存一些图片。

Update Sorry, I meant the internal memory. I'll be using it to cache some images.

推荐答案

在Android的安全模型是完好的,在你的应用程序的专用存储区域文件只对您的应用程序,并且您已经签署并指定任何其他应用程序共享它的可见用户ID,除非你设置他们的世界可读权限。

When the android security model is intact, files in your application's private storage area are only visible to your application and any other applications you have signed and assigned to share it's userid, unless you set them with world readable permission.

但是,你不能依靠这个,因为有设备在那里的一个显著数,其中原有的安全模式是不完整:包括开发设备和仿真器没有它打开时,那里的模型是由错误,或设备失效设备通过谁已自定义(即扎根)设备端用户所拥有。在这些情况下,应用程序的专用文件将被访问的最终用户,并且也有可能在设备上的一些附加的工具和应用程序。

However, you cannot rely on this because there are a significant number of devices out there where the original security model is not intact: including development devices and emulators without it turned on, devices where the model is invalidated by bugs, or devices owned by end users who have customized (ie, "rooted") the device. In these cases the application's private files will be accessible to the end user, and likely also to some add-on tools and applications on the device.

这篇关于如何隐藏在Android中我的数据文件夹?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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