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
This commit is contained in:
parent
b1c14906ba
commit
e04a63b305
@ -44,8 +44,7 @@ namespace android {
|
||||
// ---------------------------------------------------------------------------
|
||||
|
||||
SensorService::SensorService()
|
||||
: Thread(false),
|
||||
mDump("android.permission.DUMP"),
|
||||
: mDump("android.permission.DUMP"),
|
||||
mInitCheck(NO_INIT)
|
||||
{
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user