summaryrefslogtreecommitdiff
path: root/light/2.0/default/service.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'light/2.0/default/service.cpp')
-rw-r--r--light/2.0/default/service.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/light/2.0/default/service.cpp b/light/2.0/default/service.cpp
index 20f0578f02..b50a2034f4 100644
--- a/light/2.0/default/service.cpp
+++ b/light/2.0/default/service.cpp
@@ -16,10 +16,14 @@
#include <android/hardware/light/2.0/ILight.h>
#include <hidl/LegacySupport.h>
+#include <hwbinder/ProcessState.h>
using android::hardware::light::V2_0::ILight;
using android::hardware::defaultPassthroughServiceImplementation;
int main() {
+#ifdef ARCH_ARM_32
+ android::hardware::ProcessState::initWithMmapSize((size_t)(32768));
+#endif
return defaultPassthroughServiceImplementation<ILight>();
}