Loading core/java/android/app/UiAutomationConnection.java +29 −24 Original line number Diff line number Diff line Loading @@ -227,7 +227,7 @@ public final class UiAutomationConnection extends IUiAutomationConnection.Stub { } @Override public void executeShellCommand(String command, ParcelFileDescriptor sink) public void executeShellCommand(final String command, final ParcelFileDescriptor sink) throws RemoteException { synchronized (mLock) { throwIfCalledByNotTrustedUidLocked(); Loading @@ -235,6 +235,8 @@ public final class UiAutomationConnection extends IUiAutomationConnection.Stub { throwIfNotConnectedLocked(); } Thread streamReader = new Thread() { public void run() { InputStream in = null; OutputStream out = null; Loading @@ -259,6 +261,9 @@ public final class UiAutomationConnection extends IUiAutomationConnection.Stub { IoUtils.closeQuietly(out); IoUtils.closeQuietly(sink); } }; }; streamReader.start(); } @Override Loading Loading
core/java/android/app/UiAutomationConnection.java +29 −24 Original line number Diff line number Diff line Loading @@ -227,7 +227,7 @@ public final class UiAutomationConnection extends IUiAutomationConnection.Stub { } @Override public void executeShellCommand(String command, ParcelFileDescriptor sink) public void executeShellCommand(final String command, final ParcelFileDescriptor sink) throws RemoteException { synchronized (mLock) { throwIfCalledByNotTrustedUidLocked(); Loading @@ -235,6 +235,8 @@ public final class UiAutomationConnection extends IUiAutomationConnection.Stub { throwIfNotConnectedLocked(); } Thread streamReader = new Thread() { public void run() { InputStream in = null; OutputStream out = null; Loading @@ -259,6 +261,9 @@ public final class UiAutomationConnection extends IUiAutomationConnection.Stub { IoUtils.closeQuietly(out); IoUtils.closeQuietly(sink); } }; }; streamReader.start(); } @Override Loading