am 7382f81f: Unmount external storage on multi-user devices.
* commit '7382f81fba895f1ac970ac2fad875f35836b8082':
Unmount external storage on multi-user devices.
diff --git a/cryptfs.c b/cryptfs.c
index cebe625..b66f1ac 100644
--- a/cryptfs.c
+++ b/cryptfs.c
@@ -1179,11 +1179,14 @@
snprintf(lockid, sizeof(lockid), "enablecrypto%d", (int) getpid());
acquire_wake_lock(PARTIAL_WAKE_LOCK, lockid);
- /* Get the sdcard mount point */
- sd_mnt_point = getenv("EXTERNAL_STORAGE");
- if (! sd_mnt_point) {
- sd_mnt_point = "/mnt/sdcard";
- }
+ /* Get the sdcard mount point */
+ sd_mnt_point = getenv("MULTIUSER_EXTERNAL_STORAGE");
+ if (!sd_mnt_point) {
+ sd_mnt_point = getenv("EXTERNAL_STORAGE");
+ }
+ if (!sd_mnt_point) {
+ sd_mnt_point = "/mnt/sdcard";
+ }
num_vols=vold_getNumDirectVolumes();
vol_list = malloc(sizeof(struct volume_info) * num_vols);