AppVersionFetcher
public final class AppVersionFetcher
extends Object
java.lang.Object | |
↳ | com.android.tradefed.util.AppVersionFetcher |
Cihazdan uygulama sürümü dizesini almak için yardımcı program sınıfı.
Cihaza dumpsys paketi komutunu gönderin, ardından dönüş sonucu dizesini ayrıştırın.
Özet
İç içe geçmiş sınıflar | |
---|---|
enum | AppVersionFetcher.AppVersionInfo Uygulama sürümü bilgi türleri. |
Kamu inşaatçıları | |
---|---|
AppVersionFetcher () |
Genel yöntemler | |
---|---|
static String | fetch (ITestDevice device, String packageName, AppVersionFetcher.AppVersionInfo info) Paket adına göre uygulama sürümü dizesini getir. |
Kamu inşaatçıları
AppVersionFetcher
public AppVersionFetcher ()
Genel yöntemler
gidip getirmek
public static String fetch (ITestDevice device, String packageName, AppVersionFetcher.AppVersionInfo info)
Paket adına göre uygulama sürümü dizesini getir.
Parametreler | |
---|---|
device | ITestDevice : ITestDevice, cihaz örneği |
packageName | String : Dize, paket adı |
info | AppVersionFetcher.AppVersionInfo : AppVersionInfo, uygulama sürümü bilgi türü |
İadeler | |
---|---|
String | paketin sürüm dizesi |
Atar | |
---|---|
DeviceNotAvailableException |
Bu sayfadaki içerik ve kod örnekleri, İçerik Lisansı sayfasında açıklanan lisanslara tabidir. Java ve OpenJDK, Oracle ve/veya satış ortaklarının tescilli ticari markasıdır.
Son güncelleme tarihi: 2023-12-01 UTC.
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"İhtiyacım olan bilgiler yok"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"Çok karmaşık / çok fazla adım var"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"Güncel değil"
},{
"type": "thumb-down",
"id": "translationIssue",
"label":"Çeviri sorunu"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"Örnek veya kod sorunu"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Diğer"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Anlaması kolay"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Sorunumu çözdü"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Diğer"
}]