Android 4.3中的用户数据目录 [英] user data directory in 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屋!