PackageSource Enum
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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 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 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 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 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 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. |