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的,但它也不能工作。