ArchivedPackageInfo


class ArchivedPackageInfo
kotlin.Any
   ↳ android.content.pm.ArchivedPackageInfo

Contains fields required for archived package installation, i.e. installation without an APK.

Summary

Public constructors
ArchivedPackageInfo(packageName: String, signingInfo: SigningInfo, launcherActivities: MutableList<ArchivedActivityInfo!>)

Public methods
String?

Package data will default to device protected storage.

MutableList<ArchivedActivityInfo!>

List of the package's activities that specify Intent#ACTION_MAIN and Intent#CATEGORY_LAUNCHER.

String

Name of the package as used to identify it in the system

String?

If true this app would like to run under the legacy storage model.

SigningInfo

Signing certificates used to sign the package.

Int

This is the SDK version number that the application is targeting, as specified by the <manifest> tag's android.R.styleable#AndroidManifestUsesSdk_targetSdkVersion attribute.

String?

If true the user is prompted to keep the app's data on uninstall.

Int

The version number of the package, as specified by the <manifest>tag's versionCode attribute.

Int

The major version number of the package, as specified by the <manifest>tag's versionCodeMajor attribute.

ArchivedPackageInfo

Package data will default to device protected storage.

ArchivedPackageInfo

List of the package's activities that specify Intent#ACTION_MAIN and Intent#CATEGORY_LAUNCHER.

ArchivedPackageInfo

Name of the package as used to identify it in the system

ArchivedPackageInfo

If true this app would like to run under the legacy storage model.

ArchivedPackageInfo

Signing certificates used to sign the package.

ArchivedPackageInfo

This is the SDK version number that the application is targeting, as specified by the <manifest> tag's android.R.styleable#AndroidManifestUsesSdk_targetSdkVersion attribute.

ArchivedPackageInfo

If true the user is prompted to keep the app's data on uninstall.

ArchivedPackageInfo

The version number of the package, as specified by the <manifest>tag's versionCode attribute.

ArchivedPackageInfo

The major version number of the package, as specified by the <manifest>tag's versionCodeMajor attribute.

Public constructors

ArchivedPackageInfo

ArchivedPackageInfo(
    packageName: String,
    signingInfo: SigningInfo,
    launcherActivities: MutableList<ArchivedActivityInfo!>)
Parameters
packageName String: This value cannot be null.
signingInfo SigningInfo: This value cannot be null.
launcherActivities MutableList<ArchivedActivityInfo!>: This value cannot be null.

Public methods

getDefaultToDeviceProtectedStorage

fun getDefaultToDeviceProtectedStorage(): String?

Package data will default to device protected storage. Specified by the <manifest> tag's android.R.styleable#AndroidManifestApplication_defaultToDeviceProtectedStorage attribute.

Return
String? This value may be null.

getLauncherActivities

fun getLauncherActivities(): MutableList<ArchivedActivityInfo!>

List of the package's activities that specify Intent#ACTION_MAIN and Intent#CATEGORY_LAUNCHER.

Return
MutableList<ArchivedActivityInfo!> This value cannot be null.

getPackageName

fun getPackageName(): String

Name of the package as used to identify it in the system

Return
String This value cannot be null.

getRequestLegacyExternalStorage

fun getRequestLegacyExternalStorage(): String?

If true this app would like to run under the legacy storage model. Specified by the <manifest> tag's android.R.styleable#AndroidManifestApplication_requestLegacyExternalStorage attribute.

Return
String? This value may be null.

getSigningInfo

fun getSigningInfo(): SigningInfo

Signing certificates used to sign the package.

Return
SigningInfo This value cannot be null.

getTargetSdkVersion

fun getTargetSdkVersion(): Int

This is the SDK version number that the application is targeting, as specified by the <manifest> tag's android.R.styleable#AndroidManifestUsesSdk_targetSdkVersion attribute.

getUserDataFragile

fun getUserDataFragile(): String?

If true the user is prompted to keep the app's data on uninstall. Specified by the <manifest> tag's android.R.styleable#AndroidManifestApplication_hasFragileUserData attribute.

Return
String? This value may be null.

getVersionCode

fun getVersionCode(): Int

The version number of the package, as specified by the <manifest>tag's versionCode attribute.

getVersionCodeMajor

fun getVersionCodeMajor(): Int

The major version number of the package, as specified by the <manifest>tag's versionCodeMajor attribute.

setDefaultToDeviceProtectedStorage

fun setDefaultToDeviceProtectedStorage(value: String): ArchivedPackageInfo

Package data will default to device protected storage. Specified by the <manifest> tag's android.R.styleable#AndroidManifestApplication_defaultToDeviceProtectedStorage attribute.

Parameters
value String: This value cannot be null.
Return
ArchivedPackageInfo This value cannot be null.

setLauncherActivities

fun setLauncherActivities(value: MutableList<ArchivedActivityInfo!>): ArchivedPackageInfo

List of the package's activities that specify Intent#ACTION_MAIN and Intent#CATEGORY_LAUNCHER.

Parameters
value MutableList<ArchivedActivityInfo!>: This value cannot be null.
Return
ArchivedPackageInfo This value cannot be null.

setPackageName

fun setPackageName(value: String): ArchivedPackageInfo

Name of the package as used to identify it in the system

Parameters
value String: This value cannot be null.
Return
ArchivedPackageInfo This value cannot be null.

setRequestLegacyExternalStorage

fun setRequestLegacyExternalStorage(value: String): ArchivedPackageInfo

If true this app would like to run under the legacy storage model. Specified by the <manifest> tag's android.R.styleable#AndroidManifestApplication_requestLegacyExternalStorage attribute.

Parameters
value String: This value cannot be null.
Return
ArchivedPackageInfo This value cannot be null.

setSigningInfo

fun setSigningInfo(value: SigningInfo): ArchivedPackageInfo

Signing certificates used to sign the package.

Parameters
value SigningInfo: This value cannot be null.
Return
ArchivedPackageInfo This value cannot be null.

setTargetSdkVersion

fun setTargetSdkVersion(value: Int): ArchivedPackageInfo

This is the SDK version number that the application is targeting, as specified by the <manifest> tag's android.R.styleable#AndroidManifestUsesSdk_targetSdkVersion attribute.

Return
ArchivedPackageInfo This value cannot be null.

setUserDataFragile

fun setUserDataFragile(value: String): ArchivedPackageInfo

If true the user is prompted to keep the app's data on uninstall. Specified by the <manifest> tag's android.R.styleable#AndroidManifestApplication_hasFragileUserData attribute.

Parameters
value String: This value cannot be null.
Return
ArchivedPackageInfo This value cannot be null.

setVersionCode

fun setVersionCode(value: Int): ArchivedPackageInfo

The version number of the package, as specified by the <manifest>tag's versionCode attribute.

Return
ArchivedPackageInfo This value cannot be null.

setVersionCodeMajor

fun setVersionCodeMajor(value: Int): ArchivedPackageInfo

The major version number of the package, as specified by the <manifest>tag's versionCodeMajor attribute.

Return
ArchivedPackageInfo This value cannot be null.