設備恢復模式實用程式

public class DeviceRecoveryModeUtil
extends Object

java.lang.Object
com.android.tradefed.util.DeviceRecoveryModeUtil


概括

公共構造函數

DeviceRecoveryModeUtil ()

公共方法

static void bootOutOfRecovery (IManagedTestDevice managedDevice, long timeoutMs, long bufferMs)

將處於復原模式的裝置引導回主作業系統。

static void bootOutOfRecovery (IManagedTestDevice device, long timeoutMs)

將處於復原模式的裝置引導回主作業系統。

公共構造函數

設備恢復模式實用程式

public DeviceRecoveryModeUtil ()

公共方法

啟動恢復

public static void bootOutOfRecovery (IManagedTestDevice managedDevice, 
                long timeoutMs, 
                long bufferMs)

將處於復原模式的裝置引導回主作業系統。可以選擇在 RECOVERY 狀態開始後等待,因為恢復開始時可能無法立即發送 adb 命令。

參數
managedDevice IManagedTestDevice :要啟動的IManagedTestDevice

timeoutMs long : 等待裝置進入恢復狀態的時間

bufferMs long : 設備進入恢復狀態後等待的毫秒數

投擲
DeviceNotAvailableException

啟動恢復

public static void bootOutOfRecovery (IManagedTestDevice device, 
                long timeoutMs)

將處於復原模式的裝置引導回主作業系統。

參數
device IManagedTestDevice :要啟動的IManagedTestDevice

timeoutMs long : 等待裝置進入恢復狀態的時間

投擲
DeviceNotAvailableException