21

It seems to store some kind of application data, but how is it different from /data/data directory?

GAThrawn
  • 22,064
  • 9
  • 78
  • 126
zduny
  • 1,847
  • 3
  • 14
  • 10

1 Answers1

34

/data/user was added in Jelly Bean as part of multi-user support. Each user on the device gets a directory in there named after their user ID, and that directory contains each app's data directory for that user. /data/user/0 is a symlink to /data/data.

Dan Hulme
  • 35,000
  • 17
  • 90
  • 155
  • This is not true. See: http://androidxref.com/7.0.0_r1/xref/frameworks/native/cmds/installd/commands.cpp#135 – w3bMak3r Nov 07 '18 at 16:45
  • 6
    @w3bMak3r What exactly are you claiming is not true, and how does that source code (which postdates this question and answer) relate to it? – Dan Hulme Nov 07 '18 at 17:01