1
什么是错的这个脚本?如何使用monkeyrunner我重新启动Android模拟器?
# Imports the monkeyrunner modules used by this program
from com.android.monkeyrunner import MonkeyRunner, MonkeyDevice
# Connects to the current device, returning a MonkeyDevice object
device = MonkeyRunner.waitForConnection()
#Reboot
device.reboot('None')
我也试图改变bootloadType。最后一行我,device.reboot(“引导程序”)和device.reboot(“复苏”)试过的insted的,但它也不能工作。