Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 76858f52 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Increase Sensor Service dumpsys priority"

parents aea93d26 5b23ad3c
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -17,6 +17,7 @@
#include <jni.h>
#include <nativehelper/JNIHelp.h>

#include <binder/IServiceManager.h>
#include <hidl/HidlTransportSupport.h>

#include <schedulerservice/SchedulingPolicyService.h>
@@ -34,7 +35,8 @@ static void android_server_SystemServer_startSensorService(JNIEnv* /* env */, jo
    char propBuf[PROPERTY_VALUE_MAX];
    property_get("system_init.startsensorservice", propBuf, "1");
    if (strcmp(propBuf, "1") == 0) {
        SensorService::instantiate();
        SensorService::publish(false /* allowIsolated */,
                               IServiceManager::DUMP_FLAG_PRIORITY_CRITICAL);
    }

}