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

This commit is contained in:
Svetoslav
2013-11-01 00:31:02 +00:00
committed by Android (Google) Code Review

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()) {