diff options
author | Ethan Yonker <dees_troy@teamw.in> | 2014-11-18 17:17:59 +0100 |
---|---|---|
committer | Ethan Yonker <dees_troy@teamw.in> | 2014-11-18 17:18:14 +0100 |
commit | cceebb8189788457ef3bdee408e285aa8912121a (patch) | |
tree | 7eea76e08b6f1e55cd292720d3b54776d55082a5 /partition.cpp | |
parent | Make libmincrypttwrp a shared library (diff) | |
download | android_bootable_recovery-cceebb8189788457ef3bdee408e285aa8912121a.tar android_bootable_recovery-cceebb8189788457ef3bdee408e285aa8912121a.tar.gz android_bootable_recovery-cceebb8189788457ef3bdee408e285aa8912121a.tar.bz2 android_bootable_recovery-cceebb8189788457ef3bdee408e285aa8912121a.tar.lz android_bootable_recovery-cceebb8189788457ef3bdee408e285aa8912121a.tar.xz android_bootable_recovery-cceebb8189788457ef3bdee408e285aa8912121a.tar.zst android_bootable_recovery-cceebb8189788457ef3bdee408e285aa8912121a.zip |
Diffstat (limited to 'partition.cpp')
-rw-r--r-- | partition.cpp | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/partition.cpp b/partition.cpp index 642c3dd65..4bd545b17 100644 --- a/partition.cpp +++ b/partition.cpp @@ -278,21 +278,6 @@ bool TWPartition::Process_Fstab_Line(string Line, bool Display_Error) { Setup_Data_Media(); #ifdef TW_INCLUDE_CRYPTO Can_Be_Encrypted = true; -#ifdef TW_INCLUDE_L_CRYPTO - int password_type = cryptfs_get_password_type(); - if (password_type == CRYPT_TYPE_DEFAULT) { - LOGINFO("Device is encrypted with the default password, attempting to decrypt.\n"); - property_set("ro.crypto.state", "encrypted"); - if (cryptfs_check_passwd("default_password") == 0) { - gui_print("Successfully decrypted with default password.\n"); - } else { - LOGERR("Unable to decrypt with default password."); - LOGERR("You may need to perform a Format Data.\n"); - } - } else { - DataManager::SetValue("TW_CRYPTO_TYPE", password_type); - } -#endif char crypto_blkdev[255]; property_get("ro.crypto.fs_crypto_blkdev", crypto_blkdev, "error"); if (strcmp(crypto_blkdev, "error") != 0) { |