FastbootYardımcısı
public class FastbootHelper
extends Object
java.lang.Object | |
↳ | com.android.tradefed.device.FastbootHelper |
Fastboot işlemleri için bir yardımcı sınıf.
Özet
kamu inşaatçılar | |
---|---|
FastbootHelper ( IRunUtil runUtil, String fastbootPath) Yapıcı. |
Genel yöntemler | |
---|---|
String | executeCommand (String serial, String command) Bir aygıtta bir fastboot komutu yürütür ve çıktıyı döndürür. |
getBootloaderAndFastbootdDevices () Cihaz dizilerinin bir haritasını ve bunların fastbootd modunda olup olmadıklarını döndürür. | |
getBootloaderAndFastbootdTcpDevices ( serials) getBootloaderAndFastbootdTcpDevices ( serials) Cihaz dizilerinin bir haritasını ve bunların fastbootd modunda olup olmadıklarını döndürür. | |
getDevices () Fastboot modunda bir dizi cihaz dizisini veya fastboot cihazı yoksa boş bir set döndürür. | |
boolean | isFastbootAvailable () Fastboot'un kullanım için uygun olup olmadığını belirleyin. |
boolean | isFastbootd (String serial) Bir aygıtın Bootloader yerine Fastbootd'da olup olmadığını döndürür. |
kamu inşaatçılar
FastbootYardımcısı
public FastbootHelper (IRunUtil runUtil, String fastbootPath)
Yapıcı.
parametreler | |
---|---|
runUtil | IRunUtil : bir IRunUtil . |
fastbootPath | String |
Genel yöntemler
Komutu çalıştır
public String executeCommand (String serial, String command)
Bir aygıtta bir fastboot komutu yürütür ve çıktıyı döndürür.
parametreler | |
---|---|
serial | String : bir cihaz seri numarası. |
command | String : çalıştırılacak bir fastboot komutu. |
İadeler | |
---|---|
String | fastboot komutunun çıktısı. komut başarısız olursa boş. |
getBootloaderAndFastbootdDevices
publicgetBootloaderAndFastbootdDevices ()
Cihaz dizilerinin bir haritasını ve bunların fastbootd modunda olup olmadıklarını döndürür.
İadeler | |
---|---|
bootloader veya fastbootd'da bir seri Haritası, fastbootd'da ise boolean doğrudur |
getBootloaderAndFastbootdTcpDevices
publicgetBootloaderAndFastbootdTcpDevices ( serials)
Cihaz dizilerinin bir haritasını ve bunların fastbootd modunda olup olmadıklarını döndürür.
parametreler | |
---|---|
serials |
İadeler | |
---|---|
bootloader veya fastbootd'da bir seri Haritası, fastbootd'da ise boolean doğrudur |
aygıtları al
publicgetDevices ()
Fastboot modunda bir dizi cihaz dizisini veya fastboot cihazı yoksa boş bir set döndürür.
İadeler | |
---|---|
bir dizi cihaz dizisi. |
isFastbootMevcut
public boolean isFastbootAvailable ()
Fastboot'un kullanım için uygun olup olmadığını belirleyin.
İadeler | |
---|---|
boolean |
isFastbootd
public boolean isFastbootd (String serial)
Bir aygıtın Bootloader yerine Fastbootd'da olup olmadığını döndürür.
parametreler | |
---|---|
serial | String |
İadeler | |
---|---|
boolean |