OSDN Git Service

Public volumes belong to a single user.
authorJeff Sharkey <jsharkey@android.com>
Mon, 31 Oct 2016 20:33:49 +0000 (14:33 -0600)
committerJeff Sharkey <jsharkey@google.com>
Mon, 31 Oct 2016 20:35:19 +0000 (20:35 +0000)
commit8b38d083c42e2706e1ff5a1410fa61d1f5dea3f5
tree6ddc285b40c25542a3c99900a4905e93c5298cdd
parente97969b4d0c6eaeeb373d716238e47e49c80d992
Public volumes belong to a single user.

When a public (vfat) device is inserted, it's strongly associated
with the current foreground user, and no other users should be able
to access it, since otherwise that would be a cross-user data leak.

To use the device under a different user, switch users and then
eject/remount the device.

Test: verified user isolation of USB drive
Bug: 32523490
Change-Id: I590c791996f1fea8d78f625dc942d149f1f41614
packages/ExternalStorageProvider/src/com/android/externalstorage/ExternalStorageProvider.java