Added in API level 35

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

Added in API level 35
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

Added in API level 35
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

Added in API level 35
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

Added in API level 35
fun getPackageName(): String

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

Return
String This value cannot be null.

getRequestLegacyExternalStorage

Added in API level 35
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

Added in API level 35
fun getSigningInfo(): SigningInfo

Signing certificates used to sign the package.

Return
SigningInfo This value cannot be null.

getTargetSdkVersion

Added in API level 35
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

Added in API level 35
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

Added in API level 35
fun getVersionCode(): Int

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

getVersionCodeMajor

Added in API level 35
fun getVersionCodeMajor(): Int

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

setDefaultToDeviceProtectedStorage

Added in API level 35
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

Added in API level 35
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

Added in API level 35
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

Added in API level 35
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

Added in API level 35
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

Added in API level 35
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

Added in API level 35
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

Added in API level 35
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

Added in API level 35
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.