Android 4.3中的用户数据目录 [英] user data directory in Android 4.3

查看:239
本文介绍了Android 4.3中的用户数据目录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Android 4.2及更高版本中的用户数据存储在/data/user/<userId>
但是我仍然在android 4.3文件系统中找到了/data/data目录.我认为这里存储着所有用户通用的应用程序数据,而/data/user/<userId>用于存储用户特定的应用程序数据.这是真的吗?

User data in android 4.2 onwards is stored at /data/user/<userId>
But still I found /data/data directory in android 4.3 filesystem. I think it is there to store application data that is common for all users and /data/user/<userId> is used for storing user specific application data. Is this true?

推荐答案

否.

/data/data始终属于主要用户.您可以通过列出/data/user目录来查看此内容:

/data/data always belongs to the primary user. You can see this by listing /data/user directory:

/data/user/0是到/data/data的软链接,并且设置了权限,以便只有该用户0"可以访问存储在/data/data中的所有数据.

/data/user/0 is a soft-link to /data/data and the permissions are set so that only this "user 0" has access to all the data stored in /data/data.

因此/data/data并非对所有用户都通用.

Therefore /data/data is not common for all users.

这篇关于Android 4.3中的用户数据目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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