summaryrefslogtreecommitdiffstats
path: root/partitionmanager.cpp
diff options
context:
space:
mode:
authornkk71 <nkk71x@gmail.com>2017-11-06 16:27:21 +0100
committerDees Troy <dees_troy@teamw.in>2017-11-28 23:05:54 +0100
commit7d1222a5fe2c2dfa393e0d37cb58605734b9af7f (patch)
tree654075439f74c31051af4b3fa130afad243d8be1 /partitionmanager.cpp
parentFBE for Pixel 2 (diff)
downloadandroid_bootable_recovery-7d1222a5fe2c2dfa393e0d37cb58605734b9af7f.tar
android_bootable_recovery-7d1222a5fe2c2dfa393e0d37cb58605734b9af7f.tar.gz
android_bootable_recovery-7d1222a5fe2c2dfa393e0d37cb58605734b9af7f.tar.bz2
android_bootable_recovery-7d1222a5fe2c2dfa393e0d37cb58605734b9af7f.tar.lz
android_bootable_recovery-7d1222a5fe2c2dfa393e0d37cb58605734b9af7f.tar.xz
android_bootable_recovery-7d1222a5fe2c2dfa393e0d37cb58605734b9af7f.tar.zst
android_bootable_recovery-7d1222a5fe2c2dfa393e0d37cb58605734b9af7f.zip
Diffstat (limited to '')
-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