Merge "Add Build.Version.RELEASE_OR_PREVIEW_DISPLAY" am: a789b92644
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2003053 Change-Id: Iab0ad2e55f21ba464ae1b7d4c3ac3252638f711b
This commit is contained in:
@@ -29555,6 +29555,7 @@ package android.os {
|
|||||||
field public static final int PREVIEW_SDK_INT;
|
field public static final int PREVIEW_SDK_INT;
|
||||||
field public static final String RELEASE;
|
field public static final String RELEASE;
|
||||||
field @NonNull public static final String RELEASE_OR_CODENAME;
|
field @NonNull public static final String RELEASE_OR_CODENAME;
|
||||||
|
field @NonNull public static final String RELEASE_OR_PREVIEW_DISPLAY;
|
||||||
field @Deprecated public static final String SDK;
|
field @Deprecated public static final String SDK;
|
||||||
field public static final int SDK_INT;
|
field public static final int SDK_INT;
|
||||||
field public static final String SECURITY_PATCH;
|
field public static final String SECURITY_PATCH;
|
||||||
|
|||||||
@@ -285,12 +285,19 @@ public class Build {
|
|||||||
public static final String RELEASE = getString("ro.build.version.release");
|
public static final String RELEASE = getString("ro.build.version.release");
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The version string we show to the user; may be {@link #RELEASE} or
|
* The version string. May be {@link #RELEASE} or {@link #CODENAME} if
|
||||||
* {@link #CODENAME} if not a final release build.
|
* not a final release build.
|
||||||
*/
|
*/
|
||||||
@NonNull public static final String RELEASE_OR_CODENAME = getString(
|
@NonNull public static final String RELEASE_OR_CODENAME = getString(
|
||||||
"ro.build.version.release_or_codename");
|
"ro.build.version.release_or_codename");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The version string we show to the user; may be {@link #RELEASE} or
|
||||||
|
* a descriptive string if not a final release build.
|
||||||
|
*/
|
||||||
|
@NonNull public static final String RELEASE_OR_PREVIEW_DISPLAY = getString(
|
||||||
|
"ro.build.version.release_or_preview_display");
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The base OS build the product is based on.
|
* The base OS build the product is based on.
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user