Set property for metadata encryption on first boot

Bug: 77335096
Test: device boots twice with and without metadata encryption
Change-Id: Iaed78288cb37865ba23833721b73b11414e7e862
diff --git a/init/builtins.cpp b/init/builtins.cpp
index fc74dda..6f601ba 100644
--- a/init/builtins.cpp
+++ b/init/builtins.cpp
@@ -522,6 +522,7 @@
         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