我找到了一个从命令行启动模拟器的命令:
$ android-sdk-path/emulator/emulator -avd Nexus_5X_API_26 -netdelay none -netspeed full
但我需要从命令行检查模拟器是否已经在运行,然后将它带到屏幕前面。这可以从命令行实现吗?
最佳答案
找到了我的问题的答案:
创建一个osscript文件showEmulator.scpt
tell application "System Events"
tell application process "Dock"
tell list 1
tell UI element "emulator"
perform action "AXPress"
end tell
end tell
end tell
end tell
然后以这种方式从终端执行
osascript ~/scripts/showEmulator.scpt
关于android - 如何从命令行将安卓模拟器调到最前面,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48041505/