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 |
boolean
|
isUpdatedSystemApp()
Returns |
Public methods
getPackageName
public String getPackageName ()
Returns the package name of the application.
Returns | |
---|---|
String |
getVersionName
public 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
public boolean isSystemApp ()
Returns true
if this is a system app.
Returns | |
---|---|
boolean |
isUpdatedSystemApp
public boolean isUpdatedSystemApp ()
Returns true
if this is a system app that has been updated.
Returns | |
---|---|
boolean |