AppVersionFetcher
public final class AppVersionFetcher
extends Object
java.lang.Object | |
↳ | com.android.tradefed.util.AppVersionFetcher |
Utility-Klasse zum Abrufen der App-Versionszeichenfolge vom Gerät.
Senden Sie den dumpsys-Paketbefehl an das Gerät und parsen Sie dann die zurückgegebene Ergebniszeichenfolge.
Zusammenfassung
Verschachtelte Klassen | |
---|---|
enum | AppVersionFetcher.AppVersionInfo App-Versionsinfotypen. |
Öffentliche Konstrukteure | |
---|---|
AppVersionFetcher () |
Öffentliche Methoden | |
---|---|
static String | fetch ( ITestDevice device, String packageName, AppVersionFetcher.AppVersionInfo info) Abrufen der Anwendungsversionszeichenfolge basierend auf dem Paketnamen. |
Öffentliche Konstrukteure
AppVersionFetcher
public AppVersionFetcher ()
Öffentliche Methoden
bringen
public static String fetch (ITestDevice device, String packageName, AppVersionFetcher.AppVersionInfo info)
Abrufen der Anwendungsversionszeichenfolge basierend auf dem Paketnamen.
Parameter | |
---|---|
device | ITestDevice : ITestDevice, Geräteinstanz |
packageName | String : String, Paketname |
info | AppVersionFetcher.AppVersionInfo : AppVersionInfo, Typ der App-Versionsinformationen |
Kehrt zurück | |
---|---|
String | Versionsstring des Pakets |
Wirft | |
---|---|
DeviceNotAvailableException |
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2022-08-15 UTC.
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"Benötigte Informationen nicht gefunden"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"Zu umständlich/zu viele Schritte"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"Nicht mehr aktuell"
},{
"type": "thumb-down",
"id": "translationIssue",
"label":"Problem mit der Übersetzung"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"Problem mit Beispielen/Code"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Sonstiges"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Leicht verständlich"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Mein Problem wurde gelöst"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Sonstiges"
}]