简体   繁体   English

将adb shell命令传递到IntelliJ Android启动器中

[英]Passing adb shell commands into IntelliJ Android Launcher

I am building an Android application that is designed to help with load testing. 我正在构建一个旨在帮助进行负载测试的Android应用程序。 When the app launches we are sending extra values to the main activity so that we can control what kind of load each app executes. 当应用启动时,我们将向主活动发送额外的值,以便我们可以控制每个应用执行的负载类型。 Currently, we are doing this, scripted, via the terminal using adb directly which is pretty straight forward: 当前,我们正在通过终端直接使用adb编写脚本,这很简单:

adb shell am start -e key1 value1 -e key2 value2 -n bla.bla/bla.MainActivity

For debugging purposes, I'd like to be able to do this from IntelliJ but I don't see anything in my run configuration screen that let's me pass anything to adb. 出于调试目的,我希望能够从IntelliJ中执行此操作,但在运行配置屏幕中看不到任何东西可以将任何内容传递给adb。 Is this possible? 这可能吗?

可能在这件事上迟到了,但是您可以随时在IntelliJ Repo上尝试BashSupport插件。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM