Language

PackageSource Enum

Definition

public enum PackageSource
type PackageSource = 
Inheritance
PackageSource

Fields

Name Value Description
Unspecified 0

The installer did not call PackageInstaller.SessionParams.setPackageSource(int) to specify the package source.

Android reference for android.content.pm.PackageInstaller.PACKAGE_SOURCE_UNSPECIFIED.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Other 1

Code indicating that the package being installed is from a source not reflected by any other package source constant.

Android reference for android.content.pm.PackageInstaller.PACKAGE_SOURCE_OTHER.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Store 2

Code indicating that the package being installed is from a store. An app store that installs an app for the user would use this.

Android reference for android.content.pm.PackageInstaller.PACKAGE_SOURCE_STORE.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

LocalFile 3

Code indicating that the package being installed comes from a local file on the device. A file manager that is facilitating the installation of an APK file would use this.

Android reference for android.content.pm.PackageInstaller.PACKAGE_SOURCE_LOCAL_FILE.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

DownloadedFile 4

Code indicating that the package being installed comes from a file that was downloaded to the device by the user. For use in place of PACKAGE_SOURCE_LOCAL_FILE when the installer knows the package was downloaded.

Android reference for android.content.pm.PackageInstaller.PACKAGE_SOURCE_DOWNLOADED_FILE.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to