From 16b74353d99615b4acbb60f3fbe49f4443e0365f Mon Sep 17 00:00:00 2001 From: Dees_Troy Date: Wed, 14 Nov 2012 22:27:31 +0000 Subject: Fixes for multi-user in 4.2 Also fixed inability to delete backups with a space in the name. Change-Id: I2f6639d33caa3c4542960f76adbd59b25ab64f5d --- partitionmanager.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'partitionmanager.cpp') diff --git a/partitionmanager.cpp b/partitionmanager.cpp index a8e7ec179..57e110867 100644 --- a/partitionmanager.cpp +++ b/partitionmanager.cpp @@ -1582,6 +1582,15 @@ int TWPartitionManager::Decrypt_Device(string Password) { ui_print("Data successfully decrypted, new block device: '%s'\n", crypto_blkdev); // Sleep for a bit so that the device will be ready sleep(1); +#ifdef RECOVERY_SDCARD_ON_DATA + if (dat->Mount(false) && TWFunc::Path_Exists("/data/media/0")) { + dat->Storage_Path = "/data/media/0"; + dat->Symlink_Path = dat->Storage_Path; + DataManager::SetValue(TW_INTERNAL_PATH, "/data/media/0"); + dat->UnMount(false); + DataManager::SetBackupFolder(); + } +#endif Update_System_Details(); UnMount_Main_Partitions(); } else -- cgit v1.2.3