set crypto state/type when detected

Change-Id: I4506d3ef11052dbebf974b5c387a3c7d5055f2ea
This commit is contained in:
nebrassy
2020-11-11 01:59:11 +00:00
committed by bigbiff
parent 18aea279ca
commit f74255ea1e
2 changed files with 3 additions and 1 deletions
+1
View File
@@ -738,6 +738,7 @@ bool TWPartition::Decrypt_FBE_DE() {
if (TWFunc::Path_Exists("/data/unencrypted/key/version")) {
DataManager::SetValue(TW_IS_FBE, 1);
DataManager::SetValue(TW_CRYPTO_PWTYPE, "0"); // Set initial value so that recovery will not be confused when using unencrypted data or failed to decrypt data
property_set("ro.crypto.type", "file");
LOGINFO("File Based Encryption is present\n");
#ifdef TW_INCLUDE_FBE
Is_FBE = true;