【发布时间】:2012-02-17 16:19:59
【问题描述】:
我制作了一个在使用 Ubuntu 的 VM 上运行的 bash 脚本,其开头如下:
nohup emulator @2.1 -snapshot 1 -no-snapshot-save &
echo ----------- Waiting for Device
adb wait-for-device
然后我做一些事情,并希望在脚本完成后关闭/退出模拟器放弃更改的状态。我的问题是,我不知道如何退出模拟器 - 干净。 我想过获取模拟器进程 ID 并 kill -9 它,但有没有“更好”的方法?
【问题讨论】:
标签: android bash process emulation