user data directory in Android 4.3

Deadly 提交于 2020-01-03 08:48:08

问题


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?


回答1:


No.

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

/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.

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



来源:https://stackoverflow.com/questions/18464495/user-data-directory-in-android-4-3

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!