fde: set ro.crypto.type to block

Since we set ro.crypto.type to "file" for FBE, we should also set
this prop for FDE.

Change-Id: Id3a581da5d4b58c41c2c361593ad7266898a6f54
This commit is contained in:
Captain Throwback
2020-10-28 12:22:56 +00:00
committed by bigbiff
parent 58d1e7a13a
commit 228223bbb1
+1
View File
@@ -1865,6 +1865,7 @@ int TWPartitionManager::Decrypt_Device(string Password, int user_id) {
property_get("ro.crypto.state", crypto_state, "error");
if (strcmp(crypto_state, "error") == 0) {
property_set("ro.crypto.state", "encrypted");
property_set("ro.crypto.type", "block");
// Sleep for a bit so that services can start if needed
sleep(1);
}