FastbootHelper
public
class
FastbootHelper
extends Object
| java.lang.Object | |
| ↳ | com.android.tradefed.device.FastbootHelper |
fastboot オペレーションのヘルパークラス。
概要
パブリック コンストラクタ | |
|---|---|
FastbootHelper(IRunUtil runUtil, String fastbootPath)
コンストラクタ。 |
|
パブリック メソッド | |
|---|---|
String
|
executeCommand(String serial, String command)
デバイスで fastboot コマンドを実行し、出力を返します。 |
Map<String, Boolean>
|
getBootloaderAndFastbootdDevices()
デバイスのシリアルと、fastbootd モードかどうかをマッピングしたものを返します。 |
Map<String, Boolean>
|
getBootloaderAndFastbootdTcpDevices(Map<String, String> serials)
デバイスのシリアルと、fastbootd モードかどうかをマッピングしたものを返します。 |
Set<String>
|
getDevices()
Fastboot モードのデバイスのシリアル番号のセットを返します。Fastboot デバイスがない場合は空のセットを返します。 |
boolean
|
isFastbootAvailable()
fastboot を使用できるかどうかを判断します。 |
boolean
|
isFastbootd(String serial)
デバイスがブートローダーではなく Fastbootd になっているかどうかを返します。 |
パブリック コンストラクタ
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
public Map<String, Boolean> getBootloaderAndFastbootdDevices ()
デバイスのシリアルと、fastbootd モードかどうかをマッピングしたものを返します。
| 戻り値 | |
|---|---|
Map<String, Boolean> |
ブートローダーまたは fastbootd のシリアルのマップ。fastbootd の場合はブール値は true |
getBootloaderAndFastbootdTcpDevices
public Map<String, Boolean> getBootloaderAndFastbootdTcpDevices (Map<String, String> serials)
デバイスのシリアルと、fastbootd モードかどうかをマッピングしたものを返します。
| パラメータ | |
|---|---|
serials |
Map: デバイスのシリアル番号と fastboot モードのシリアル番号のマップ。 |
| 戻り値 | |
|---|---|
Map<String, Boolean> |
ブートローダーまたは fastbootd のシリアルのマップ。fastbootd の場合はブール値は true |
getDevices
public Set<String> getDevices ()
Fastboot モードのデバイスのシリアル番号のセットを返します。Fastboot デバイスがない場合は空のセットを返します。
| 戻り値 | |
|---|---|
Set<String> |
デバイスのシリアル番号のセット。 |
isFastbootAvailable
public boolean isFastbootAvailable ()
fastboot を使用できるかどうかを判断します。
| 戻り値 | |
|---|---|
boolean |
|
isFastbootd
public boolean isFastbootd (String serial)
デバイスがブートローダーではなく Fastbootd にあるかどうかを返します。
| パラメータ | |
|---|---|
serial |
String |
| 戻り値 | |
|---|---|
boolean |
|