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 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 getPackageName ()

public String getVersionCode ()

public String getVersionName ()

public static AaptParser parse (File apkFile)

Parse info from the apk.

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