diff options
author | Dees_Troy <dees_troy@teamw.in> | 2012-10-01 21:51:46 +0200 |
---|---|---|
committer | Dees_Troy <dees_troy@teamw.in> | 2012-10-01 21:51:46 +0200 |
commit | 9b21af77e0f901e2b3ba38da6273e7f4666f8c8b (patch) | |
tree | 70ffd1157d7cc318069d85e2f3db2142cac404c1 /partition.cpp | |
parent | Update ORS and recovery commands (diff) | |
download | android_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.cpp | 9 |
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"; |