summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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.");