Switch to new FBE emulation property.
Also prepare CE/DE storage directories for owner user at boot.
Bug: 22358539
Change-Id: I76228952c990ebed83360c69ef36321b99114196
diff --git a/main.cpp b/main.cpp
index 648f36a..537e0a0 100644
--- a/main.cpp
+++ b/main.cpp
@@ -18,6 +18,7 @@
#include "VolumeManager.h"
#include "CommandListener.h"
#include "CryptCommandListener.h"
+#include "Ext4Crypt.h"
#include "NetlinkManager.h"
#include "cryptfs.h"
#include "sehandle.h"
@@ -96,6 +97,9 @@
vm->setDebug(true);
}
+ // Prepare owner storage
+ e4crypt_prepare_user_storage(nullptr, 0);
+
cl = new CommandListener();
ccl = new CryptCommandListener();
vm->setBroadcaster((SocketListener *) cl);