am 0c2df694: am 7d28ad9b: am cb54ffb2: Merge "Protect runtime storage mount points." into mnc-dev

* commit '0c2df6944c83eee291f3b8e588eed7adba401d46':
  Protect runtime storage mount points.
This commit is contained in:
Jeff Sharkey
2015-08-06 19:49:35 +00:00
committed by Android Git Automerger

View File

@@ -298,11 +298,11 @@ static bool MountEmulatedStorage(uid_t uid, jint mount_mode,
String8 storageSource;
if (mount_mode == MOUNT_EXTERNAL_DEFAULT) {
storageSource = "/mnt/runtime_default";
storageSource = "/mnt/runtime/default";
} else if (mount_mode == MOUNT_EXTERNAL_READ) {
storageSource = "/mnt/runtime_read";
storageSource = "/mnt/runtime/read";
} else if (mount_mode == MOUNT_EXTERNAL_WRITE) {
storageSource = "/mnt/runtime_write";
storageSource = "/mnt/runtime/write";
} else {
// Sane default of no storage visible
return true;