AppVersionFetcher
public
final
class
AppVersionFetcher
extends Object
java.lang.Object | |
↳ | com.android.tradefed.util.AppVersionFetcher |
Utility class to get app version string from device.
Send dumpsys package command to device, then parse the return result string.
Summary
Nested classes | |
---|---|
enum |
AppVersionFetcher.AppVersionInfo
App version info types. |
Public constructors | |
---|---|
AppVersionFetcher()
|
Public methods | |
---|---|
static
String
|
fetch(ITestDevice device, String packageName, AppVersionFetcher.AppVersionInfo info)
Fetch application version string based on package name. |
Public constructors
AppVersionFetcher
public AppVersionFetcher ()
Public methods
fetch
public static String fetch (ITestDevice device, String packageName, AppVersionFetcher.AppVersionInfo info)
Fetch application version string based on package name.
Parameters | |
---|---|
device |
ITestDevice : ITestDevice, device instance |
packageName |
String : String, package name |
info |
AppVersionFetcher.AppVersionInfo : AppVersionInfo, app version info type |
Returns | |
---|---|
String |
version string of the package |
Throws | |
---|---|
DeviceNotAvailableException |
El contenido y las muestras de código que aparecen en esta página están sujetas a las licencias que se describen en la Licencia de Contenido. Java y OpenJDK son marcas registradas de Oracle o sus afiliados.
Última actualización: 2020-09-08 (UTC)
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"Falta la información que necesito"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"Muy complicado o demasiados pasos"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"Desactualizado"
},{
"type": "thumb-down",
"id": "translationIssue",
"label":"Problema de traducción"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"Problema con las muestras o los códigos"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Otro"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Fácil de comprender"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Resolvió mi problema"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Otro"
}]