Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

user data directory in Android 4.3

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?

like image 399
xpankaj Avatar asked Aug 27 '13 11:08

xpankaj


1 Answers

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.

like image 151
Robert Avatar answered Oct 24 '22 19:10

Robert