Merge change 21763 into donut

* changes:
  Enable adb forwarding and starting up of monkey server
This commit is contained in:
Android (Google) Code Review
2009-08-18 15:49:12 -07:00

View File

@@ -45,8 +45,8 @@ import javax.imageio.ImageIO;
*/
public class MonkeyRunner {
static String monkeyServer = null;
static int monkeyPort;
static String monkeyServer = "127.0.0.1";
static int monkeyPort = 1080;
static Socket monkeySocket = null;
static IDevice monkeyDevice;
@@ -150,9 +150,13 @@ public class MonkeyRunner {
monkeyDevice = devices[0];
}
} finally {
}
monkeyDevice.createForward(monkeyPort, monkeyPort);
String command = "monkey --port " + monkeyPort;
monkeyDevice.executeShellCommand(command, new NullOutputReceiver());
} catch(IOException e) {
e.printStackTrace();
}
}
/**