Fastboot도우미
public class FastbootHelper
extends Object
java.lang.객체 | |
↳ | com.android.tradefed.device.FastbootHelper |
빠른 부팅 작업을 위한 도우미 클래스입니다.
요약
공개 생성자 | |
---|---|
FastbootHelper ( IRunUtil runUtil, String fastbootPath) 건설자. |
공개 방법 | |
---|---|
String | executeCommand (String serial, String command) 장치에서 fastboot 명령을 실행하고 출력을 반환합니다. |
getBootloaderAndFastbootdDevices () 기기 시리얼의 맵과 fastbootd 모드인지 여부를 반환합니다. | |
getBootloaderAndFastbootdTcpDevices ( serials) getBootloaderAndFastbootdTcpDevices ( serials) 기기 시리얼의 맵과 fastbootd 모드인지 여부를 반환합니다. | |
getDevices () 빠른 부팅 모드에서 장치 일련 번호 집합을 반환하거나 빠른 부팅 장치가 없는 경우 빈 집합을 반환합니다. | |
boolean | isFastbootAvailable () fastboot를 사용할 수 있는지 확인합니다. |
boolean | isFastbootd (String serial) 장치가 Bootloader 대신 Fastbootd에 있는지 여부를 반환합니다. |
공개 생성자
Fastboot도우미
public FastbootHelper (IRunUtil runUtil, String fastbootPath)
건설자.
매개변수 | |
---|---|
runUtil | IRunUtil : IRunUtil . |
fastbootPath | String |
공개 방법
실행 명령
public String executeCommand (String serial, String command)
장치에서 fastboot 명령을 실행하고 출력을 반환합니다.
매개변수 | |
---|---|
serial | String : 디바이스 시리얼. |
command | String : 실행할 fastboot 명령입니다. |
보고 | |
---|---|
String | fastboot 명령의 출력. 명령이 실패하면 null입니다. |
getBootloaderAndFastbootd장치
publicgetBootloaderAndFastbootdDevices ()
기기 시리얼의 맵과 fastbootd 모드인지 여부를 반환합니다.
보고 | |
---|---|
부트로더 또는 fastbootd의 직렬 맵, fastbootd에 있는 경우 부울은 true입니다. |
getBootloaderAndFastbootdTcpDevices
publicgetBootloaderAndFastbootdTcpDevices ( serials)
기기 시리얼의 맵과 fastbootd 모드인지 여부를 반환합니다.
매개변수 | |
---|---|
serials |
보고 | |
---|---|
부트로더 또는 fastbootd의 직렬 맵, fastbootd에 있는 경우 부울은 true입니다. |
getDevices
publicgetDevices ()
빠른 부팅 모드에서 장치 일련 번호 집합을 반환하거나 빠른 부팅 장치가 없는 경우 빈 집합을 반환합니다.
보고 | |
---|---|
일련의 장치 일련 번호. |
isFastboot 사용 가능
public boolean isFastbootAvailable ()
fastboot를 사용할 수 있는지 확인합니다.
보고 | |
---|---|
boolean |
isFastbootd
public boolean isFastbootd (String serial)
장치가 Bootloader 대신 Fastbootd에 있는지 여부를 반환합니다.
매개변수 | |
---|---|
serial | String |
보고 | |
---|---|
boolean |