Loading core/api/current.txt +18 −18 Original line number Diff line number Diff line Loading @@ -12181,32 +12181,32 @@ package android.content.pm { field public static final int REQUESTED_PERMISSION_GRANTED = 2; // 0x2 field public static final int REQUESTED_PERMISSION_IMPLICIT = 4; // 0x4 field public static final int REQUESTED_PERMISSION_NEVER_FOR_LOCATION = 65536; // 0x10000 field public android.content.pm.ActivityInfo[] activities; field @Nullable public android.content.pm.ActivityInfo[] activities; field @Nullable public android.content.pm.ApplicationInfo applicationInfo; field @Nullable public android.content.pm.Attribution[] attributions; field public int baseRevisionCode; field public android.content.pm.ConfigurationInfo[] configPreferences; field public android.content.pm.FeatureGroupInfo[] featureGroups; field @Nullable public android.content.pm.ConfigurationInfo[] configPreferences; field @Nullable public android.content.pm.FeatureGroupInfo[] featureGroups; field public long firstInstallTime; field public int[] gids; field @Nullable public int[] gids; field public int installLocation; field public android.content.pm.InstrumentationInfo[] instrumentation; field @Nullable public android.content.pm.InstrumentationInfo[] instrumentation; field public boolean isApex; field public long lastUpdateTime; field public String packageName; field public android.content.pm.PermissionInfo[] permissions; field public android.content.pm.ProviderInfo[] providers; field public android.content.pm.ActivityInfo[] receivers; field public android.content.pm.FeatureInfo[] reqFeatures; field public String[] requestedPermissions; field public int[] requestedPermissionsFlags; field public android.content.pm.ServiceInfo[] services; field public String sharedUserId; field @NonNull public String packageName; field @Nullable public android.content.pm.PermissionInfo[] permissions; field @Nullable public android.content.pm.ProviderInfo[] providers; field @Nullable public android.content.pm.ActivityInfo[] receivers; field @Nullable public android.content.pm.FeatureInfo[] reqFeatures; field @Nullable public String[] requestedPermissions; field @Nullable public int[] requestedPermissionsFlags; field @Nullable public android.content.pm.ServiceInfo[] services; field @Nullable public String sharedUserId; field public int sharedUserLabel; field @Deprecated public android.content.pm.Signature[] signatures; field public android.content.pm.SigningInfo signingInfo; field public String[] splitNames; field public int[] splitRevisionCodes; field @Deprecated @Nullable public android.content.pm.Signature[] signatures; field @Nullable public android.content.pm.SigningInfo signingInfo; field @NonNull public String[] splitNames; field @NonNull public int[] splitRevisionCodes; field @Deprecated public int versionCode; field @Nullable public String versionName; } core/java/android/content/pm/PackageInfo.java +26 −1 Original line number Diff line number Diff line Loading @@ -16,6 +16,7 @@ package android.content.pm; import android.annotation.NonNull; import android.annotation.Nullable; import android.compat.annotation.UnsupportedAppUsage; import android.os.Build; Loading @@ -31,11 +32,13 @@ public class PackageInfo implements Parcelable { * The name of this package. From the <manifest> tag's "name" * attribute. */ @NonNull public String packageName; /** * The names of any installed split APKs for this package. */ @NonNull public String[] splitNames; /** Loading Loading @@ -110,6 +113,7 @@ public class PackageInfo implements Parcelable { * {@link android.R.styleable#AndroidManifest_revisionCode revisionCode} * attribute. Indexes are a 1:1 mapping against {@link #splitNames}. */ @NonNull public int[] splitRevisionCodes; /** Loading @@ -117,6 +121,7 @@ public class PackageInfo implements Parcelable { * tag's {@link android.R.styleable#AndroidManifest_sharedUserId sharedUserId} * attribute. */ @Nullable public String sharedUserId; /** Loading Loading @@ -149,6 +154,7 @@ public class PackageInfo implements Parcelable { * All kernel group-IDs that have been assigned to this package. * This is only filled in if the flag {@link PackageManager#GET_GIDS} was set. */ @Nullable public int[] gids; /** Loading @@ -157,6 +163,7 @@ public class PackageInfo implements Parcelable { * or null if there were none. This is only filled in if the flag * {@link PackageManager#GET_ACTIVITIES} was set. */ @Nullable public ActivityInfo[] activities; /** Loading @@ -165,6 +172,7 @@ public class PackageInfo implements Parcelable { * or null if there were none. This is only filled in if the flag * {@link PackageManager#GET_RECEIVERS} was set. */ @Nullable public ActivityInfo[] receivers; /** Loading @@ -173,6 +181,7 @@ public class PackageInfo implements Parcelable { * or null if there were none. This is only filled in if the flag * {@link PackageManager#GET_SERVICES} was set. */ @Nullable public ServiceInfo[] services; /** Loading @@ -181,6 +190,7 @@ public class PackageInfo implements Parcelable { * or null if there were none. This is only filled in if the flag * {@link PackageManager#GET_PROVIDERS} was set. */ @Nullable public ProviderInfo[] providers; /** Loading @@ -189,6 +199,7 @@ public class PackageInfo implements Parcelable { * or null if there were none. This is only filled in if the flag * {@link PackageManager#GET_INSTRUMENTATION} was set. */ @Nullable public InstrumentationInfo[] instrumentation; /** Loading @@ -197,6 +208,7 @@ public class PackageInfo implements Parcelable { * or null if there were none. This is only filled in if the flag * {@link PackageManager#GET_PERMISSIONS} was set. */ @Nullable public PermissionInfo[] permissions; /** Loading @@ -207,6 +219,7 @@ public class PackageInfo implements Parcelable { * all permissions requested, even those that were not granted or known * by the system at install time. */ @Nullable public String[] requestedPermissions; /** Loading @@ -218,6 +231,7 @@ public class PackageInfo implements Parcelable { * the flags {@link #REQUESTED_PERMISSION_GRANTED} and * {@link #REQUESTED_PERMISSION_NEVER_FOR_LOCATION} set as appropriate. */ @Nullable public int[] requestedPermissionsFlags; /** Loading @@ -226,7 +240,8 @@ public class PackageInfo implements Parcelable { * is only filled if the flag {@link PackageManager#GET_ATTRIBUTIONS_LONG} was set. */ @SuppressWarnings({"ArrayReturn", "NullableCollection"}) public @Nullable Attribution[] attributions; @Nullable public Attribution[] attributions; /** * Flag for {@link #requestedPermissionsFlags}: the requested permission Loading Loading @@ -283,6 +298,7 @@ public class PackageInfo implements Parcelable { * @deprecated use {@code signingInfo} instead */ @Deprecated @Nullable public Signature[] signatures; /** Loading @@ -294,6 +310,7 @@ public class PackageInfo implements Parcelable { * Use this field instead of the deprecated {@code signatures} field. * See {@link SigningInfo} for more information on its contents. */ @Nullable public SigningInfo signingInfo; /** Loading @@ -303,6 +320,7 @@ public class PackageInfo implements Parcelable { * or null if there were none. This is only filled in if the flag * {@link PackageManager#GET_CONFIGURATIONS} was set. */ @Nullable public ConfigurationInfo[] configPreferences; /** Loading @@ -310,6 +328,7 @@ public class PackageInfo implements Parcelable { * * @see FeatureInfo#FLAG_REQUIRED */ @Nullable public FeatureInfo[] reqFeatures; /** Loading @@ -320,6 +339,7 @@ public class PackageInfo implements Parcelable { * * @see FeatureInfo#FLAG_REQUIRED */ @Nullable public FeatureGroupInfo[] featureGroups; /** Loading Loading @@ -388,12 +408,14 @@ public class PackageInfo implements Parcelable { * The restricted account authenticator type that is used by this application. * @hide */ @Nullable public String restrictedAccountType; /** * The required account type without which this application will not function. * @hide */ @Nullable public String requiredAccountType; /** Loading @@ -403,6 +425,7 @@ public class PackageInfo implements Parcelable { * @hide */ @UnsupportedAppUsage @Nullable public String overlayTarget; /** Loading @@ -411,6 +434,7 @@ public class PackageInfo implements Parcelable { * Overlayable name defined within the target package, or null. * @hide */ @Nullable public String targetOverlayableName; /** Loading @@ -418,6 +442,7 @@ public class PackageInfo implements Parcelable { * * @hide */ @Nullable public String overlayCategory; /** @hide */ Loading Loading
core/api/current.txt +18 −18 Original line number Diff line number Diff line Loading @@ -12181,32 +12181,32 @@ package android.content.pm { field public static final int REQUESTED_PERMISSION_GRANTED = 2; // 0x2 field public static final int REQUESTED_PERMISSION_IMPLICIT = 4; // 0x4 field public static final int REQUESTED_PERMISSION_NEVER_FOR_LOCATION = 65536; // 0x10000 field public android.content.pm.ActivityInfo[] activities; field @Nullable public android.content.pm.ActivityInfo[] activities; field @Nullable public android.content.pm.ApplicationInfo applicationInfo; field @Nullable public android.content.pm.Attribution[] attributions; field public int baseRevisionCode; field public android.content.pm.ConfigurationInfo[] configPreferences; field public android.content.pm.FeatureGroupInfo[] featureGroups; field @Nullable public android.content.pm.ConfigurationInfo[] configPreferences; field @Nullable public android.content.pm.FeatureGroupInfo[] featureGroups; field public long firstInstallTime; field public int[] gids; field @Nullable public int[] gids; field public int installLocation; field public android.content.pm.InstrumentationInfo[] instrumentation; field @Nullable public android.content.pm.InstrumentationInfo[] instrumentation; field public boolean isApex; field public long lastUpdateTime; field public String packageName; field public android.content.pm.PermissionInfo[] permissions; field public android.content.pm.ProviderInfo[] providers; field public android.content.pm.ActivityInfo[] receivers; field public android.content.pm.FeatureInfo[] reqFeatures; field public String[] requestedPermissions; field public int[] requestedPermissionsFlags; field public android.content.pm.ServiceInfo[] services; field public String sharedUserId; field @NonNull public String packageName; field @Nullable public android.content.pm.PermissionInfo[] permissions; field @Nullable public android.content.pm.ProviderInfo[] providers; field @Nullable public android.content.pm.ActivityInfo[] receivers; field @Nullable public android.content.pm.FeatureInfo[] reqFeatures; field @Nullable public String[] requestedPermissions; field @Nullable public int[] requestedPermissionsFlags; field @Nullable public android.content.pm.ServiceInfo[] services; field @Nullable public String sharedUserId; field public int sharedUserLabel; field @Deprecated public android.content.pm.Signature[] signatures; field public android.content.pm.SigningInfo signingInfo; field public String[] splitNames; field public int[] splitRevisionCodes; field @Deprecated @Nullable public android.content.pm.Signature[] signatures; field @Nullable public android.content.pm.SigningInfo signingInfo; field @NonNull public String[] splitNames; field @NonNull public int[] splitRevisionCodes; field @Deprecated public int versionCode; field @Nullable public String versionName; }
core/java/android/content/pm/PackageInfo.java +26 −1 Original line number Diff line number Diff line Loading @@ -16,6 +16,7 @@ package android.content.pm; import android.annotation.NonNull; import android.annotation.Nullable; import android.compat.annotation.UnsupportedAppUsage; import android.os.Build; Loading @@ -31,11 +32,13 @@ public class PackageInfo implements Parcelable { * The name of this package. From the <manifest> tag's "name" * attribute. */ @NonNull public String packageName; /** * The names of any installed split APKs for this package. */ @NonNull public String[] splitNames; /** Loading Loading @@ -110,6 +113,7 @@ public class PackageInfo implements Parcelable { * {@link android.R.styleable#AndroidManifest_revisionCode revisionCode} * attribute. Indexes are a 1:1 mapping against {@link #splitNames}. */ @NonNull public int[] splitRevisionCodes; /** Loading @@ -117,6 +121,7 @@ public class PackageInfo implements Parcelable { * tag's {@link android.R.styleable#AndroidManifest_sharedUserId sharedUserId} * attribute. */ @Nullable public String sharedUserId; /** Loading Loading @@ -149,6 +154,7 @@ public class PackageInfo implements Parcelable { * All kernel group-IDs that have been assigned to this package. * This is only filled in if the flag {@link PackageManager#GET_GIDS} was set. */ @Nullable public int[] gids; /** Loading @@ -157,6 +163,7 @@ public class PackageInfo implements Parcelable { * or null if there were none. This is only filled in if the flag * {@link PackageManager#GET_ACTIVITIES} was set. */ @Nullable public ActivityInfo[] activities; /** Loading @@ -165,6 +172,7 @@ public class PackageInfo implements Parcelable { * or null if there were none. This is only filled in if the flag * {@link PackageManager#GET_RECEIVERS} was set. */ @Nullable public ActivityInfo[] receivers; /** Loading @@ -173,6 +181,7 @@ public class PackageInfo implements Parcelable { * or null if there were none. This is only filled in if the flag * {@link PackageManager#GET_SERVICES} was set. */ @Nullable public ServiceInfo[] services; /** Loading @@ -181,6 +190,7 @@ public class PackageInfo implements Parcelable { * or null if there were none. This is only filled in if the flag * {@link PackageManager#GET_PROVIDERS} was set. */ @Nullable public ProviderInfo[] providers; /** Loading @@ -189,6 +199,7 @@ public class PackageInfo implements Parcelable { * or null if there were none. This is only filled in if the flag * {@link PackageManager#GET_INSTRUMENTATION} was set. */ @Nullable public InstrumentationInfo[] instrumentation; /** Loading @@ -197,6 +208,7 @@ public class PackageInfo implements Parcelable { * or null if there were none. This is only filled in if the flag * {@link PackageManager#GET_PERMISSIONS} was set. */ @Nullable public PermissionInfo[] permissions; /** Loading @@ -207,6 +219,7 @@ public class PackageInfo implements Parcelable { * all permissions requested, even those that were not granted or known * by the system at install time. */ @Nullable public String[] requestedPermissions; /** Loading @@ -218,6 +231,7 @@ public class PackageInfo implements Parcelable { * the flags {@link #REQUESTED_PERMISSION_GRANTED} and * {@link #REQUESTED_PERMISSION_NEVER_FOR_LOCATION} set as appropriate. */ @Nullable public int[] requestedPermissionsFlags; /** Loading @@ -226,7 +240,8 @@ public class PackageInfo implements Parcelable { * is only filled if the flag {@link PackageManager#GET_ATTRIBUTIONS_LONG} was set. */ @SuppressWarnings({"ArrayReturn", "NullableCollection"}) public @Nullable Attribution[] attributions; @Nullable public Attribution[] attributions; /** * Flag for {@link #requestedPermissionsFlags}: the requested permission Loading Loading @@ -283,6 +298,7 @@ public class PackageInfo implements Parcelable { * @deprecated use {@code signingInfo} instead */ @Deprecated @Nullable public Signature[] signatures; /** Loading @@ -294,6 +310,7 @@ public class PackageInfo implements Parcelable { * Use this field instead of the deprecated {@code signatures} field. * See {@link SigningInfo} for more information on its contents. */ @Nullable public SigningInfo signingInfo; /** Loading @@ -303,6 +320,7 @@ public class PackageInfo implements Parcelable { * or null if there were none. This is only filled in if the flag * {@link PackageManager#GET_CONFIGURATIONS} was set. */ @Nullable public ConfigurationInfo[] configPreferences; /** Loading @@ -310,6 +328,7 @@ public class PackageInfo implements Parcelable { * * @see FeatureInfo#FLAG_REQUIRED */ @Nullable public FeatureInfo[] reqFeatures; /** Loading @@ -320,6 +339,7 @@ public class PackageInfo implements Parcelable { * * @see FeatureInfo#FLAG_REQUIRED */ @Nullable public FeatureGroupInfo[] featureGroups; /** Loading Loading @@ -388,12 +408,14 @@ public class PackageInfo implements Parcelable { * The restricted account authenticator type that is used by this application. * @hide */ @Nullable public String restrictedAccountType; /** * The required account type without which this application will not function. * @hide */ @Nullable public String requiredAccountType; /** Loading @@ -403,6 +425,7 @@ public class PackageInfo implements Parcelable { * @hide */ @UnsupportedAppUsage @Nullable public String overlayTarget; /** Loading @@ -411,6 +434,7 @@ public class PackageInfo implements Parcelable { * Overlayable name defined within the target package, or null. * @hide */ @Nullable public String targetOverlayableName; /** Loading @@ -418,6 +442,7 @@ public class PackageInfo implements Parcelable { * * @hide */ @Nullable public String overlayCategory; /** @hide */ Loading