From 9b21af77e0f901e2b3ba38da6273e7f4666f8c8b Mon Sep 17 00:00:00 2001 From: Dees_Troy Date: Mon, 1 Oct 2012 15:51:46 -0400 Subject: Fix error message on encrypted devices --- partition.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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"; -- cgit v1.2.3