Merge "Expose Build.VERSION.FIRST_SDK_INT as module-lib API" am: 64625e9706 am: 7126f9404b am: f369634aae
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1540865 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: Ie9adc3def53e7708c715af665718669ff8e4c954
This commit is contained in:
@@ -178,6 +178,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();
|
||||
}
|
||||
|
||||
@@ -318,6 +318,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);
|
||||
|
||||
Reference in New Issue
Block a user