FastbootHelper
public class FastbootHelper
extends Object
java.lang.Object | |
↳ | com.android.tradefed.device.FastbootHelper |
快速啟動操作的幫助程序類。
概要
公共建設者 | |
---|---|
FastbootHelper (IRunUtil runUtil, String fastbootPath) 構造函數。 |
公開方法 | |
---|---|
String | executeCommand (String serial, String command) 在設備上執行fastboot命令並返回輸出。 |
getBootloaderAndFastbootdDevices () 返回設備序列的映射以及它們是否處於快速引導模式。 | |
getDevices () 在快速啟動模式下返回一組設備序列號;如果沒有快速啟動設備,則返回空集合。 | |
boolean | isFastbootAvailable () 確定是否可以使用fastboot。 |
boolean | isFastbootd (String serial) 返回設備是否在Fastbootd中而不是Bootloader中。 |
公共建設者
FastbootHelper
public FastbootHelper (IRunUtil runUtil, String fastbootPath)
構造函數。
參量 | |
---|---|
runUtil | IRunUtil :一個IRunUtil 。 |
fastbootPath | String |
公開方法
executeCommand
public String executeCommand (String serial, String command)
在設備上執行fastboot命令並返回輸出。
參量 | |
---|---|
serial | String :設備序列號。 |
command | String :要運行的fastboot命令。 |
退貨 | |
---|---|
String | fastboot命令的輸出。如果命令失敗,則返回null。 |
getBootloaderAndFastbootdDevices
publicgetBootloaderAndFastbootdDevices ()
返回設備序列的映射以及它們是否處於快速引導模式。
退貨 | |
---|---|
bootloader或fastbootd中的串行映射,如果在fastbootd中,則布爾值為true |
getDevices
publicgetDevices ()
在快速啟動模式下返回一組設備序列號;如果沒有快速啟動設備,則返回空集合。
退貨 | |
---|---|
一組設備序列號。 |
isFastboot可用
public boolean isFastbootAvailable ()
確定是否可以使用fastboot。
退貨 | |
---|---|
boolean |
isFastbootd
public boolean isFastbootd (String serial)
返回設備是否在Fastbootd中而不是Bootloader中。
參量 | |
---|---|
serial | String |
退貨 | |
---|---|
boolean |