From 5872cbdf02ee0a64f1a313f00eb1e635b452393b 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 acbeca233..8bd92ccdd 100644 --- a/init/builtins.cpp +++ b/init/builtins.cpp @@ -519,6 +519,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