OSDN Git Service

Release wakelock in LocationManagerService if client thread is dead
authorYu-Han Yang <yuhany@google.com>
Wed, 11 Jul 2018 22:24:11 +0000 (15:24 -0700)
committerYu-Han Yang <yuhany@google.com>
Tue, 17 Jul 2018 00:39:24 +0000 (17:39 -0700)
commit241898259eb8ea608a93fd6355e3266a43f6c88c
treed15f707a410853778c1219a4f2edaca8aeb3ee9b
parentef6a5bf7559b984090be347c221d382992e432bf
Release wakelock in LocationManagerService if client thread is dead

- also put a timeout on the wakelock so that it won't be held forever.

Bug: 111321558
Fixes: 111321558
Test: Tested on device.
Change-Id: I36e90f73143ff12d8622dbbb3aad643b283d17ce
location/java/android/location/LocationManager.java
services/core/java/com/android/server/LocationManagerService.java