diff options
author | Dees_Troy <dees_troy@teamw.in> | 2012-11-14 23:27:31 +0100 |
---|---|---|
committer | Dees_Troy <dees_troy@teamw.in> | 2012-11-15 20:27:08 +0100 |
commit | 16b74353d99615b4acbb60f3fbe49f4443e0365f (patch) | |
tree | f4e4f76c1522d809646d213b6f54ab948b3a9a1e /partitionmanager.cpp | |
parent | add exfat to partitions.cpp (diff) | |
download | android_bootable_recovery-16b74353d99615b4acbb60f3fbe49f4443e0365f.tar android_bootable_recovery-16b74353d99615b4acbb60f3fbe49f4443e0365f.tar.gz android_bootable_recovery-16b74353d99615b4acbb60f3fbe49f4443e0365f.tar.bz2 android_bootable_recovery-16b74353d99615b4acbb60f3fbe49f4443e0365f.tar.lz android_bootable_recovery-16b74353d99615b4acbb60f3fbe49f4443e0365f.tar.xz android_bootable_recovery-16b74353d99615b4acbb60f3fbe49f4443e0365f.tar.zst android_bootable_recovery-16b74353d99615b4acbb60f3fbe49f4443e0365f.zip |
Diffstat (limited to 'partitionmanager.cpp')
-rw-r--r-- | partitionmanager.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
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 |