summaryrefslogtreecommitdiffstats
path: root/partition.cpp
diff options
context:
space:
mode:
authorDees_Troy <dees_troy@teamw.in>2012-10-01 21:51:46 +0200
committerDees_Troy <dees_troy@teamw.in>2012-10-01 21:51:46 +0200
commit9b21af77e0f901e2b3ba38da6273e7f4666f8c8b (patch)
tree70ffd1157d7cc318069d85e2f3db2142cac404c1 /partition.cpp
parentUpdate ORS and recovery commands (diff)
downloadandroid_bootable_recovery-9b21af77e0f901e2b3ba38da6273e7f4666f8c8b.tar
android_bootable_recovery-9b21af77e0f901e2b3ba38da6273e7f4666f8c8b.tar.gz
android_bootable_recovery-9b21af77e0f901e2b3ba38da6273e7f4666f8c8b.tar.bz2
android_bootable_recovery-9b21af77e0f901e2b3ba38da6273e7f4666f8c8b.tar.lz
android_bootable_recovery-9b21af77e0f901e2b3ba38da6273e7f4666f8c8b.tar.xz
android_bootable_recovery-9b21af77e0f901e2b3ba38da6273e7f4666f8c8b.tar.zst
android_bootable_recovery-9b21af77e0f901e2b3ba38da6273e7f4666f8c8b.zip
Diffstat (limited to 'partition.cpp')
-rw-r--r--partition.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/partition.cpp b/partition.cpp
index 3ef206a80..06084b64a 100644
--- a/partition.cpp
+++ b/partition.cpp
@@ -175,7 +175,6 @@ bool TWPartition::Process_Fstab_Line(string Line, bool Display_Error) {
Has_Data_Media = true;
Is_Storage = true;
Storage_Path = "/data/media";
- Recreate_Media_Folder();
if (strcmp(EXPAND(TW_EXTERNAL_STORAGE_PATH), "/sdcard") == 0) {
Make_Dir("/emmc", Display_Error);
Symlink_Path = "/data/media";
@@ -204,6 +203,14 @@ bool TWPartition::Process_Fstab_Line(string Line, bool Display_Error) {
DataManager::SetValue(TW_CRYPTO_PASSWORD, "");
DataManager::SetValue("tw_crypto_display", "");
}
+ #ifdef RECOVERY_SDCARD_ON_DATA
+ if (!Is_Encrypted || (Is_Encrypted && Is_Decrypted))
+ Recreate_Media_Folder();
+ #endif
+#else
+ #ifdef RECOVERY_SDCARD_ON_DATA
+ Recreate_Media_Folder();
+ #endif
#endif
} else if (Mount_Point == "/cache") {
Display_Name = "Cache";