From e383334457b3cb6cdf2ddb32a82f2284120525d5 Mon Sep 17 00:00:00 2001 From: Paul Crowley Date: Tue, 17 Apr 2018 12:28:12 -0700 Subject: [PATCH] Set property for metadata encryption on first boot Bug: 77335096 Test: device boots twice with and without metadata encryption Change-Id: Iaed78288cb37865ba23833721b73b11414e7e862 --- init/builtins.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/init/builtins.cpp b/init/builtins.cpp index fc74dda4b..6f601ba44 100644 --- a/init/builtins.cpp +++ b/init/builtins.cpp @@ -522,6 +522,7 @@ static Result queue_fs_event(int code) { if (e4crypt_install_keyring()) { return Error() << "e4crypt_install_keyring() failed"; } + property_set("ro.crypto.state", "encrypted"); property_set("ro.crypto.type", "file"); // Although encrypted, vold has already set the device up, so we do not need to