summaryrefslogtreecommitdiffstats
path: root/partition.cpp
diff options
context:
space:
mode:
authorDees_Troy <dees_troy@teamw.in>2013-01-14 16:36:13 +0100
committerDees_Troy <dees_troy@teamw.in>2013-01-14 16:36:13 +0100
commit999b39d04148d2ff8806e4613cbbe3aaa32d367a (patch)
treeb5a541c7682a228aff8c1123f259d354ea033fba /partition.cpp
parentremove relink files for samsung encryption libraries. (diff)
downloadandroid_bootable_recovery-999b39d04148d2ff8806e4613cbbe3aaa32d367a.tar
android_bootable_recovery-999b39d04148d2ff8806e4613cbbe3aaa32d367a.tar.gz
android_bootable_recovery-999b39d04148d2ff8806e4613cbbe3aaa32d367a.tar.bz2
android_bootable_recovery-999b39d04148d2ff8806e4613cbbe3aaa32d367a.tar.lz
android_bootable_recovery-999b39d04148d2ff8806e4613cbbe3aaa32d367a.tar.xz
android_bootable_recovery-999b39d04148d2ff8806e4613cbbe3aaa32d367a.tar.zst
android_bootable_recovery-999b39d04148d2ff8806e4613cbbe3aaa32d367a.zip
Diffstat (limited to 'partition.cpp')
-rw-r--r--partition.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/partition.cpp b/partition.cpp
index f2386d7a8..076c1cfb1 100644
--- a/partition.cpp
+++ b/partition.cpp
@@ -705,7 +705,9 @@ bool TWPartition::Mount(bool Display_Error) {
return false;
} else {
#ifdef TW_INCLUDE_CRYPTO_SAMSUNG
- if (EcryptFS_Password.size() > 0 && PartitionManager.Mount_By_Path("/data", false)) {
+ string MetaEcfsFile = EXPAND(TW_EXTERNAL_STORAGE_PATH);
+ MetaEcfsFile += "/.MetaEcfsFile";
+ if (EcryptFS_Password.size() > 0 && PartitionManager.Mount_By_Path("/data", false) && TWFunc::Path_Exists(MetaEcfsFile)) {
if (mount_ecryptfs_drive(EcryptFS_Password.c_str(), Mount_Point.c_str(), Mount_Point.c_str(), 0) != 0) {
if (Display_Error)
LOGE("Unable to mount ecryptfs for '%s'\n", Mount_Point.c_str());