Merge "Expose Build.VERSION.FIRST_SDK_INT as module-lib API"

This commit is contained in:
Paul Hu
2021-01-22 11:50:09 +00:00
committed by Gerrit Code Review
2 changed files with 5 additions and 0 deletions

View File

@@ -52,6 +52,10 @@ package android.os {
method public final void markVintfStability();
}
public static class Build.VERSION {
field public static final int FIRST_SDK_INT;
}
public interface Parcelable {
method public default int getStability();
}

View File

@@ -317,6 +317,7 @@ public class Build {
* @see #SDK_INT
* @hide
*/
@SystemApi(client = SystemApi.Client.MODULE_LIBRARIES)
@TestApi
public static final int FIRST_SDK_INT = SystemProperties
.getInt("ro.product.first_api_level", 0);