Read the configuration before starting the native service.
Bug: 66739076
Bug: 65737446
Test: reboot-cycle.sh doesn't show a problem.
Change-Id: Ia0699cca7e07475d4df266b482a3b2c96519ed3b
diff --git a/main.cpp b/main.cpp
index 1bb7639..30f60a1 100644
--- a/main.cpp
+++ b/main.cpp
@@ -97,13 +97,6 @@
exit(1);
}
- ATRACE_BEGIN("VoldNativeService::start");
- if (android::vold::VoldNativeService::start() != android::OK) {
- LOG(ERROR) << "Unable to start VoldNativeService";
- exit(1);
- }
- ATRACE_END();
-
bool has_adoptable;
bool has_quota;
@@ -111,6 +104,13 @@
PLOG(ERROR) << "Error reading configuration... continuing anyways";
}
+ ATRACE_BEGIN("VoldNativeService::start");
+ if (android::vold::VoldNativeService::start() != android::OK) {
+ LOG(ERROR) << "Unable to start VoldNativeService";
+ exit(1);
+ }
+ ATRACE_END();
+
ATRACE_BEGIN("NetlinkManager::start");
if (nm->start()) {
PLOG(ERROR) << "Unable to start NetlinkManager";