summaryrefslogtreecommitdiffstats
path: root/service.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'service.cpp')
-rw-r--r--service.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/service.cpp b/service.cpp
index c8100b9..85f84d1 100644
--- a/service.cpp
+++ b/service.cpp
@@ -31,6 +31,9 @@
#include <hardware/power.h>
#include <hidl/HidlTransportSupport.h>
+#ifdef ARCH_ARM_32
+#include <hwbinder/ProcessState.h>
+#endif
#include <log/log.h>
#include "Power.h"
@@ -47,6 +50,10 @@ using android::hardware::power::V1_2::IPower;
using android::hardware::power::V1_2::implementation::Power;
int main() {
+#ifdef ARCH_ARM_32
+ android::hardware::ProcessState::initWithMmapSize((size_t)16384);
+#endif
+
status_t status;
android::sp<IPower> service = nullptr;