Expose ApplicationInfo compileSdkVersion

Bug: 178116560

Test: none, move to public API

Change-Id: I321feec49f7c9d1a94f5a2140e0c4244ab776ce8
This commit is contained in:
Winson
2021-02-22 09:39:28 -08:00
parent db9ef8e719
commit 1206e776d4
2 changed files with 3 additions and 5 deletions

View File

@@ -11782,6 +11782,8 @@ package android.content.pm {
field public int category;
field public String className;
field public int compatibleWidthLimitDp;
field public int compileSdkVersion;
field @Nullable public String compileSdkVersionCodename;
field public String dataDir;
field public int descriptionRes;
field public String deviceProtectedDataDir;

View File

@@ -1105,19 +1105,15 @@ public class ApplicationInfo extends PackageItemInfo implements Parcelable {
* <p>
* This property is the compile-time equivalent of
* {@link android.os.Build.VERSION#CODENAME Build.VERSION.SDK_INT}.
*
* @hide For platform use only; we don't expect developers to need to read this value.
*/
public int compileSdkVersion;
/**
* The development codename (ex. "O", "REL") of the framework against which the application
* The development codename (ex. "S", "REL") of the framework against which the application
* claims to have been compiled, or {@code null} if not specified.
* <p>
* This property is the compile-time equivalent of
* {@link android.os.Build.VERSION#CODENAME Build.VERSION.CODENAME}.
*
* @hide For platform use only; we don't expect developers to need to read this value.
*/
@Nullable
public String compileSdkVersionCodename;