summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoroshmoun <oshmoun100@googlemail.com>2018-04-10 17:45:55 +0200
committerDees Troy <dees_troy@teamw.in>2018-05-25 18:31:44 +0200
commita82a754bbeb49b2d44fa25d5abd64a3c3f4e9ae0 (patch)
treeb4524e3b08a586404bf9bb03a1f7ddf8aeb1b39c
parentTWRP: vold_crypto: Allow custom strace path (diff)
downloadandroid_bootable_recovery-a82a754bbeb49b2d44fa25d5abd64a3c3f4e9ae0.tar
android_bootable_recovery-a82a754bbeb49b2d44fa25d5abd64a3c3f4e9ae0.tar.gz
android_bootable_recovery-a82a754bbeb49b2d44fa25d5abd64a3c3f4e9ae0.tar.bz2
android_bootable_recovery-a82a754bbeb49b2d44fa25d5abd64a3c3f4e9ae0.tar.lz
android_bootable_recovery-a82a754bbeb49b2d44fa25d5abd64a3c3f4e9ae0.tar.xz
android_bootable_recovery-a82a754bbeb49b2d44fa25d5abd64a3c3f4e9ae0.tar.zst
android_bootable_recovery-a82a754bbeb49b2d44fa25d5abd64a3c3f4e9ae0.zip
-rw-r--r--partitionmanager.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/partitionmanager.cpp b/partitionmanager.cpp
index 7adcc9f46..87849685c 100644
--- a/partitionmanager.cpp
+++ b/partitionmanager.cpp
@@ -1608,6 +1608,7 @@ int TWPartitionManager::Decrypt_Device(string Password) {
(*iter)->Mount(true);
}
}
+ property_set("twrp.mount_to_decrypt", "1");
property_get("ro.crypto.state", crypto_state, "error");
if (strcmp(crypto_state, "error") == 0) {
@@ -1677,6 +1678,7 @@ int TWPartitionManager::Decrypt_Device(string Password) {
(*iter)->UnMount(false);
}
}
+ property_set("twrp.mount_to_decrypt", "0");
if (pwret != 0) {
gui_err("fail_decrypt=Failed to decrypt data.");