OSDN Git Service

Mount emulated volumes as consistent location.
authorJeff Sharkey <jsharkey@android.com>
Tue, 7 Jul 2015 21:37:03 +0000 (14:37 -0700)
committerJeff Sharkey <jsharkey@android.com>
Wed, 8 Jul 2015 21:07:39 +0000 (14:07 -0700)
commit81f55c6dc1a14ed68e404fa3a2c244dd343e4990
treef52c87ae5d93c8a9d1c83d6f80ff2531b2acf1c7
parentc86ab6f538bec63638c168d6c843fe7cf73add3b
Mount emulated volumes as consistent location.

We really only support a single emulated volume on the device at a
time, either on internal storage, or moved to a private volume.  To
avoid kicking off a giant rescan of all media when moved, keep all
the paths the same when mounted as primary.

Also ensure we have /data/media/0 ready on private volumes.

Bug: 20275423
Change-Id: I0c102f430b865ca7536772b1fae56d8c9660a97a
Benchmark.cpp
EmulatedVolume.cpp
PrivateVolume.cpp