to top
public class

AaptParser

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

Class Overview

Class that extracts info from apk by parsing output of 'aapt dump badging'.

aapt must be on PATH

Summary

Public Methods
String getLabel()
String getPackageName()
String getVersionCode()
String getVersionName()
static AaptParser parse(File apkFile)
Parse info from the apk.
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public String getLabel ()

Returns
String

public String getPackageName ()

Returns
String

public String getVersionCode ()

Returns
String

public String getVersionName ()

Returns
String

public static AaptParser parse (File apkFile)

Parse info from the apk.

Parameters
apkFile File: the apk file
Returns
AaptParser the AaptParser or null if failed to extract the information