Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ef48689e authored by Colin Cross's avatar Colin Cross
Browse files

Add Build.Version.RELEASE_OR_PREVIEW_DISPLAY

Build.Version.RELEASE_OR_PREVIEW_DISPLAY propagates a string that
contains a user-friendly version name for preview releases, or the
Build.Version.RELEASE version for final releases.

Test: manual
Bug: 221950960
Change-Id: I31f8f67996e3e5e7edc00704b16b8df0db17d3a3
parent 7a25b6f3
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -29495,6 +29495,7 @@ package android.os {
    field public static final int PREVIEW_SDK_INT;
    field public static final String RELEASE;
    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 public static final int SDK_INT;
    field public static final String SECURITY_PATCH;
+9 −2
Original line number Diff line number Diff line
@@ -285,12 +285,19 @@ public class Build {
        public static final String RELEASE = getString("ro.build.version.release");

        /**
         * The version string we show to the user; may be {@link #RELEASE} or
         * {@link #CODENAME} if not a final release build.
         * The version string.  May be {@link #RELEASE} or {@link #CODENAME} if
         * not a final release build.
         */
        @NonNull public static final String RELEASE_OR_CODENAME = getString(
                "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.
         */