From 228223bbb1aaa29ec29b531265d8de3a4286ecf4 Mon Sep 17 00:00:00 2001 From: Captain Throwback Date: Sat, 24 Oct 2020 17:17:09 -0400 Subject: [PATCH] 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 --- partitionmanager.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/partitionmanager.cpp b/partitionmanager.cpp index d85ae2a8..f263b5f7 100755 --- a/partitionmanager.cpp +++ b/partitionmanager.cpp @@ -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); }