PackageInfoFlags 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.
Enumerates values returned by several methods of PackageInfoFlags and taken as a parameter of several types.
This enumeration supports a bitwise combination of its member values.
[System.Flags]
public enum PackageInfoFlags
[<System.Flags>]
type PackageInfoFlags =
- Inheritance
-
PackageInfoFlags
- Attributes
Fields
| Name | Value | Description |
|---|---|---|
| Attributions | -2147483648 | This constant was deprecated in API level 34. Use GET_ATTRIBUTIONS_LONG to avoid unintended sign extension. Operations with this flag may cause unintended results and potential RuntimeException. 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. |
| Activities | 1 | PackageInfo flag: return information about activities in the package in Activities. |
| Receivers | 2 | PackageInfo flag: return information about intent receivers in the package in Receivers. |
| Services | 4 | PackageInfo flag: return information about services in the package in Services. |
| Providers | 8 | PackageInfo flag: return information about content providers in the package in Providers. |
| Instrumentation | 16 | PackageInfo flag: return information about instrumentation in the package in Instrumentation. |
| IntentFilters | 32 | PackageInfoflag: return information about the intent filters supported by the activity. |
| ResolvedFilter | 64 | ResolveInfo flag: return the IntentFilter that was matched for a particular ResolveInfo in Filter. |
| Signatures | 64 | PackageInfoflag: return information about the signatures included in the package. |
| MetaData | 128 | ComponentInfo flag: return the ComponentInfo.metaData data Bundles that are associated with a component. This applies for any API returning a ComponentInfo subclass. 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. |
| Gids | 256 | PackageInfo flag: return the group ids that are associated with an application. This applies for any API returning a PackageInfo class, either directly or nested inside of another. 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. |
| DisabledComponents | 512 | PackageInfoflag: include disabled components in the returned info. |
| MatchDisabledComponents | 512 | PackageInfo flag: include disabled components in the returned info. 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. |
| SharedLibraryFiles | 1024 | ApplicationInfo flag: return the paths to the shared libraries that are associated with an application. This applies for any API returning an ApplicationInfo class, either directly or nested inside of another. 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. |
| UriPermissionPatterns | 2048 | ProviderInfo flag: return the URI permission patterns that are associated with a content provider. This applies for any API returning a ProviderInfo class, either directly or nested inside of another. 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. |
| Permissions | 4096 | PackageInfo flag: return information about permissions in the package in Permissions. |
| MatchUninstalledPackages | 8192 | Flag parameter to retrieve some information about all applications (even uninstalled ones) which have data directories. This state could have resulted if applications have been deleted with flag DELETE_KEEP_DATA with a possibility of being replaced or reinstalled in future. Note: this flag may cause less information about currently installed applications to be returned. Note: use of this flag requires the android.permission.QUERY_ALL_PACKAGES permission to see uninstalled packages. 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. |
| UninstalledPackages | 8192 | This constant was deprecated in API level 24. replaced with MATCH_UNINSTALLED_PACKAGES 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. |
| Configurations | 16384 | PackageInfo flag: return information about hardware preferences in PackageInfo.configPreferences, and requested features in PackageInfo.reqFeatures and PackageInfo.featureGroups. 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. |
| DisabledUntilUsedComponents | 32768 | This constant was deprecated in API level 24. replaced with MATCH_DISABLED_UNTIL_USED_COMPONENTS. 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. |
| MatchDisabledUntilUsedComponents | 32768 | PackageInfo flag: include disabled components which are in that state only because of COMPONENT_ENABLED_STATE_DISABLED_UNTIL_USED in the returned info. Note that if you set this flag, applications that are in this disabled state will be reported as enabled. 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. |
| MatchDefaultOnly | 65536 | Resolution and querying flag: if set, only filters that support the CategoryDefaultwill be considered for matching. |
| MatchAll | 131072 | Querying flag: if set and if the platform is doing any filtering of the results, then the filtering will not happen. This is a synonym for saying that all results should be returned. This flag should be used with extreme care. 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. |
| MatchDirectBootUnaware | 262144 | Querying flag: match components which are direct boot unaware in the returned info, regardless of the current user state. When neither MATCH_DIRECT_BOOT_AWARE nor MATCH_DIRECT_BOOT_UNAWARE are specified, the default behavior is to match only runnable components based on the user state. For example, when a user is started but credentials have not been presented yet, the user is running "locked" and only MATCH_DIRECT_BOOT_AWARE components are returned. Once the user credentials have been presented, the user is running "unlocked" and both MATCH_DIRECT_BOOT_AWARE and MATCH_DIRECT_BOOT_UNAWARE components are returned. 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. |
| MatchDirectBootAware | 524288 | Querying flag: match components which are direct boot aware in the returned info, regardless of the current user state. When neither MATCH_DIRECT_BOOT_AWARE nor MATCH_DIRECT_BOOT_UNAWARE are specified, the default behavior is to match only runnable components based on the user state. For example, when a user is started but credentials have not been presented yet, the user is running "locked" and only MATCH_DIRECT_BOOT_AWARE components are returned. Once the user credentials have been presented, the user is running "unlocked" and both MATCH_DIRECT_BOOT_AWARE and MATCH_DIRECT_BOOT_UNAWARE components are returned. 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. |
| MatchSystemOnly | 1048576 | Querying flag: include only components from applications that are marked with ApplicationInfo.FLAG_SYSTEM. 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. |
| SigningCertificates | 134217728 | PackageInfo flag: return the signing certificates associated with this package. Each entry is a signing certificate that the package has proven it is authorized to use, usually a past signing certificate from which it has rotated. 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. |
Remarks
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.