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 |