import com.google.common.collect.Lists;
-import com.android.ddmlib.AndroidDebugBridge;
-import com.android.ddmlib.IDevice;
import com.android.chimpchat.core.IChimpBackend;
import com.android.chimpchat.core.IChimpDevice;
+import com.android.ddmlib.AndroidDebugBridge;
+import com.android.ddmlib.IDevice;
import com.android.sdklib.SdkConstants;
import java.io.File;
}
private String findAdb() {
- File location =
- new File(AdbBackend.class.getProtectionDomain().getCodeSource().getLocation().getPath());
- String mrParentLocation = new File(location.getParent()).getParent();
+ String mrParentLocation =
+ System.getProperty("com.android.monkeyrunner.bindir"); //$NON-NLS-1$
+
// in the new SDK, adb is in the platform-tools, but when run from the command line
// in the Android source tree, then adb is next to monkeyrunner.
return platformTools.getAbsolutePath() + File.separator + SdkConstants.FN_ADB;
}
- return mrParentLocation + File.separator + SdkConstants.FD_OUTPUT +
- File.separator + SdkConstants.FN_ADB;
+ return mrParentLocation + File.separator + SdkConstants.FN_ADB;
}
return SdkConstants.FN_ADB;