summaryrefslogtreecommitdiffstats
path: root/partitionmanager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'partitionmanager.cpp')
-rw-r--r--partitionmanager.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/partitionmanager.cpp b/partitionmanager.cpp
index 54ce6912d..7adcc9f46 100644
--- a/partitionmanager.cpp
+++ b/partitionmanager.cpp
@@ -1658,6 +1658,16 @@ int TWPartitionManager::Decrypt_Device(string Password) {
#ifdef TW_CRYPTO_USE_SYSTEM_VOLD
if (pwret != 0) {
pwret = vold_decrypt(Password);
+ switch (pwret) {
+ case VD_SUCCESS:
+ break;
+ case VD_ERR_MISSING_VDC:
+ gui_msg(Msg(msg::kError, "decrypt_data_vold_os_missing=Missing files needed for vold decrypt: {1}")("/system/bin/vdc"));
+ break;
+ case VD_ERR_MISSING_VOLD:
+ gui_msg(Msg(msg::kError, "decrypt_data_vold_os_missing=Missing files needed for vold decrypt: {1}")("/system/bin/vold"));
+ break;
+ }
}
#endif // TW_CRYPTO_USE_SYSTEM_VOLD