From e04a63b3053270d64890f156869e7cf75c436fbb Mon Sep 17 00:00:00 2001 From: Mathias Agopian Date: Thu, 19 May 2011 16:21:32 -0700 Subject: [PATCH] Fix a crasher in SensorService SensorService main thread wasn't java-enabled. however, in some situations we end-up calling into the BatteryService from that thread which causes a crash. Change-Id: Iffba90e4c4b743dba84d62f1342001a9db31916d --- services/sensorservice/SensorService.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/services/sensorservice/SensorService.cpp b/services/sensorservice/SensorService.cpp index ce1ab3df2..c5e69ff61 100644 --- a/services/sensorservice/SensorService.cpp +++ b/services/sensorservice/SensorService.cpp @@ -44,8 +44,7 @@ namespace android { // --------------------------------------------------------------------------- SensorService::SensorService() - : Thread(false), - mDump("android.permission.DUMP"), + : mDump("android.permission.DUMP"), mInitCheck(NO_INIT) { }