PackageInfo

public class PackageInfo
extends Object

java.lang.Object
   ↳ com.android.tradefed.device.PackageInfo


Container for an application's package info parsed from device.

Summary

Public methods

String getPackageName()

Returns the package name of the application.

String getVersionName()

Returns the version name of the application.

boolean isSystemApp()

Returns true if this is a system app.

boolean isUpdatedSystemApp()

Returns true if this is a system app that has been updated.

Public methods

getPackageName

String getPackageName ()

Returns the package name of the application.

Returns
String

getVersionName

String getVersionName ()

Returns the version name of the application. Note: this will return null if 'versionName' attribute was not found, such as on froyo devices.

Returns
String

isSystemApp

boolean isSystemApp ()

Returns true if this is a system app.

Returns
boolean

isUpdatedSystemApp

boolean isUpdatedSystemApp ()

Returns true if this is a system app that has been updated.

Returns
boolean