Skip to content

Instantly share code, notes, and snippets.

@mlc
Created July 1, 2013 02:14
Show Gist options
  • Save mlc/5897951 to your computer and use it in GitHub Desktop.
Save mlc/5897951 to your computer and use it in GitHub Desktop.
necessary change to ConnectedDevice.java to get things to compile
diff --git a/builder/src/main/java/com/android/builder/testing/ConnectedDevice.java b/builder/src/main/java/com/android/builder/testing/ConnectedDevice.java
index 8a1aa64..edfe30a 100644
--- a/builder/src/main/java/com/android/builder/testing/ConnectedDevice.java
+++ b/builder/src/main/java/com/android/builder/testing/ConnectedDevice.java
@@ -28,7 +28,6 @@ import com.android.utils.ILogger;
import java.io.File;
import java.io.IOException;
-import java.util.concurrent.TimeUnit;
/**
* Local device connected to with ddmlib. This is a wrapper around {@link IDevice}.
@@ -92,10 +91,10 @@ public class ConnectedDevice extends DeviceConnector {
@Override
public void executeShellCommand(String command, IShellOutputReceiver receiver,
- long maxTimeToOutputResponse, TimeUnit maxTimeUnits)
+ int maxTimeToOutputResponse)
throws TimeoutException, AdbCommandRejectedException,
ShellCommandUnresponsiveException, IOException {
- iDevice.executeShellCommand(command, receiver, maxTimeToOutputResponse, maxTimeUnits);
+ iDevice.executeShellCommand(command, receiver, maxTimeToOutputResponse);
}
@Override
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment