vold uses health filesystem HAL
to runDevGc(). This fixes a Treble violation.
Bug: 111655771
Test: manual
Change-Id: I53d6db6ffa99e43e281f8086442151692c1826ca
diff --git a/main.cpp b/main.cpp
index 5525e85..c4071d1 100644
--- a/main.cpp
+++ b/main.cpp
@@ -28,6 +28,7 @@
#include <android-base/properties.h>
#include <android-base/stringprintf.h>
#include <cutils/klog.h>
+#include <hidl/HidlTransportSupport.h>
#include <utils/Trace.h>
#include <stdio.h>
@@ -108,6 +109,8 @@
PLOG(ERROR) << "Error reading configuration... continuing anyways";
}
+ android::hardware::configureRpcThreadpool(1, false /* callerWillJoin */);
+
ATRACE_BEGIN("VoldNativeService::start");
if (android::vold::VoldNativeService::start() != android::OK) {
LOG(ERROR) << "Unable to start VoldNativeService";