Start paving the way for vold calls over Binder.
This change is the bare minimum needed to publish a new vold
Binder service and move the simple "reset" call over to go through
the new interface.
Test: builds, boots
Bug: 13758960
Change-Id: I5b70976653c69f92e1efc8d1f432b2038eb618a4
diff --git a/main.cpp b/main.cpp
index 30c839e..ec240ef 100644
--- a/main.cpp
+++ b/main.cpp
@@ -19,6 +19,7 @@
#include "CommandListener.h"
#include "CryptCommandListener.h"
#include "NetlinkManager.h"
+#include "VoldNativeService.h"
#include "cryptfs.h"
#include "sehandle.h"
@@ -106,6 +107,11 @@
exit(1);
}
+ if (android::vold::VoldNativeService::start() != android::OK) {
+ LOG(ERROR) << "Unable to start VoldNativeService";
+ exit(1);
+ }
+
bool has_adoptable;
bool has_quota;