am a84e1197: Merge "Uninitialized UiAutomationConnection incorrectly enforces caller id." into klp-dev

* commit 'a84e1197f5deaed95cea48f8e103119dc4b36c1b':
  Uninitialized UiAutomationConnection incorrectly enforces caller id.
This commit is contained in:
Svetoslav
2013-10-31 17:33:16 -07:00
committed by Android Git Automerger

View File

@@ -146,7 +146,9 @@ public final class UiAutomationConnection extends IUiAutomationConnection.Stub {
@Override
public void shutdown() {
synchronized (mLock) {
throwIfCalledByNotTrustedUidLocked();
if (isConnectedLocked()) {
throwIfCalledByNotTrustedUidLocked();
}
throwIfShutdownLocked();
mIsShutdown = true;
if (isConnectedLocked()) {