OSDN Git Service

Don't do private app-dir permissions/quota on public volumes.
authorMartijn Coenen <maco@google.com>
Mon, 20 Apr 2020 13:14:48 +0000 (15:14 +0200)
committerMartijn Coenen <maco@google.com>
Mon, 20 Apr 2020 13:20:09 +0000 (15:20 +0200)
commitbf205ab7d41e04e19fa3e652a5730047716b8b7b
tree1f792d2ef279e56abe3e79ef27556fd509261e4a
parent0fbd0c15422c2ba72d86bc5b0059854ed76c95ed
Don't do private app-dir permissions/quota on public volumes.

While looking at some emulator logs, I noticed that we fail to create
dirs like /Android/data/com.foo/cache on public volumes, because we try
to chmod it; public volumes go completely through FUSE, even for
Android/, and so these operations will fail, because the underlying
UID/GID is not setup correctly.

Really the only thing we really have to do on public volumes is create
the dirs, like we used to do.

Bug: 152618535
Test: manually verify cache dirs can be created successfully
Change-Id: I66e5d0873f1198123787943b17b468eadf0a853d
VolumeManager.cpp