am 5ad40971: am 6abf7c8f: Merge change Iad66a274 into eclair

Merge commit '5ad409719809b4070ba0bb36c5326c7cac7c75ea' into eclair-mr2-plus-aosp

* commit '5ad409719809b4070ba0bb36c5326c7cac7c75ea':
  Fix race condition in WindowManagerService.disableKeyguard()
This commit is contained in:
Mike Lockwood
2009-10-12 11:26:58 -07:00
committed by Android Git Automerger

View File

@@ -3971,7 +3971,9 @@ public class WindowManagerService extends IWindowManager.Stub
!= PackageManager.PERMISSION_GRANTED) { != PackageManager.PERMISSION_GRANTED) {
throw new SecurityException("Requires DISABLE_KEYGUARD permission"); throw new SecurityException("Requires DISABLE_KEYGUARD permission");
} }
mKeyguardDisabled.acquire(token, tag); synchronized (mKeyguardDisabled) {
mKeyguardDisabled.acquire(token, tag);
}
} }
public void reenableKeyguard(IBinder token) { public void reenableKeyguard(IBinder token) {