AaptParser

public class AaptParser
extends Object

java.lang.Object
com.android.tradefed.util.AaptParser


Classe que extrai informações do apk analisando a saída de 'aapt dump badging'.

aapt deve estar no PATH

Resumo

Métodos públicos

String getLabel ()
getNativeCode ()
String getPackageName ()
int getSdkVersion ()
int getTargetSdkVersion ()
String getVersionCode ()
String getVersionName ()
boolean isRequestingLegacyStorage ()

Verifique se o aplicativo está solicitando armazenamento herdado.

boolean isUsingPermissionManageExternalStorage ()
static AaptParser parse (File apkFile, AaptParser.AaptVersion aaptVersion)

Analisar informações do apk.

static AaptParser parse (File apkFile)

Analisar informações do apk.

Métodos públicos

getLabel

public String getLabel ()

devoluções
String

getNativeCode

public  getNativeCode ()

devoluções

getPackageName

public String getPackageName ()

devoluções
String

getSdkVersion

public int getSdkVersion ()

devoluções
int

getTargetSdkVersion

public int getTargetSdkVersion ()

devoluções
int

getVersionCode

public String getVersionCode ()

devoluções
String

getVersionName

public String getVersionName ()

devoluções
String

isRequestingLegacyStorage

public boolean isRequestingLegacyStorage ()

Verifique se o aplicativo está solicitando armazenamento herdado.

devoluções
boolean boolean return true se requestLegacyExternalStorage for true em AndroidManifest.xml

isUsingPermissionManageExternalStorage

public boolean isUsingPermissionManageExternalStorage ()

devoluções
boolean

analisar

public static AaptParser parse (File apkFile, 
                AaptParser.AaptVersion aaptVersion)

Analisar informações do apk.

Parâmetros
apkFile File : o arquivo apk

aaptVersion AaptParser.AaptVersion : a versão aapt

devoluções
AaptParser o AaptParser ou null se falhou ao extrair as informações

analisar

public static AaptParser parse (File apkFile)

Analisar informações do apk.

Parâmetros
apkFile File : o arquivo apk

devoluções
AaptParser o AaptParser ou null se falhou ao extrair as informações