summaryrefslogtreecommitdiff
path: root/init/builtins.cpp
diff options
context:
space:
mode:
authorPaul Crowley <paulcrowley@google.com>2018-04-17 12:28:12 -0700
committerPaul Crowley <paulcrowley@google.com>2018-04-18 14:40:54 -0700
commit5872cbdf02ee0a64f1a313f00eb1e635b452393b (patch)
treead6fe564370f3279d6d15f2e54267da221ce54e9 /init/builtins.cpp
parente58d713e47bc798a546c3d2a2c40e2339527133d (diff)
Set property for metadata encryption on first boot
Bug: 77335096 Test: device boots twice with and without metadata encryption Change-Id: Iaed78288cb37865ba23833721b73b11414e7e862
Diffstat (limited to 'init/builtins.cpp')
-rw-r--r--init/builtins.cpp1
1 files changed, 1 insertions, 0 deletions
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<Success> 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