also set crypto state for non-metadata FBE
Change-Id: I586878cc6134d798b1d087415cb694d6738f279a
diff --git a/partition.cpp b/partition.cpp
index 24d57d6..1ca505d 100755
--- a/partition.cpp
+++ b/partition.cpp
@@ -738,6 +738,7 @@
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.state", "encrypted");
property_set("ro.crypto.type", "file");
LOGINFO("File Based Encryption is present\n");
#ifdef TW_INCLUDE_FBE