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

Commit 69b09b0b authored by Narayan Kamath's avatar Narayan Kamath Committed by Android (Google) Code Review
Browse files

Merge "Build: Add PREVIEW_SDK_FINGERPRINT."

parents a7943e25 b081e079
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -4445,6 +4445,10 @@ package android.os {
    method public abstract java.lang.Object onTransactStarted(android.os.IBinder, int);
  }
  public static class Build.VERSION {
    field public static final java.lang.String PREVIEW_SDK_FINGERPRINT;
  }
  public final class ConfigUpdate {
    field public static final java.lang.String ACTION_UPDATE_CARRIER_ID_DB = "android.os.action.UPDATE_CARRIER_ID_DB";
    field public static final java.lang.String ACTION_UPDATE_CARRIER_PROVISIONING_URLS = "android.intent.action.UPDATE_CARRIER_PROVISIONING_URLS";
+20 −0
Original line number Diff line number Diff line
@@ -288,6 +288,26 @@ public class Build {
        public static final int PREVIEW_SDK_INT = SystemProperties.getInt(
                "ro.build.version.preview_sdk", 0);

        /**
         * The SDK fingerprint for a given prerelease SDK. This value will always be
         * {@code REL} on production platform builds/devices.
         *
         * <p>When this value is not {@code REL}, it contains a string fingerprint of the API
         * surface exposed by the preview SDK. Preview platforms with different API surfaces
         * will have different {@code PREVIEW_SDK_FINGERPRINT}.
         *
         * <p>This attribute is intended for use by installers for finer grained targeting of
         * packages. Applications targeting preview APIs should not use this field and should
         * instead use {@code PREVIEW_SDK_INT} or use reflection or other runtime checks to
         * detect the presence of an API or guard themselves against unexpected runtime
         * behavior.
         *
         * @hide
         */
        @SystemApi
        public static final String PREVIEW_SDK_FINGERPRINT = SystemProperties.get(
                "ro.build.version.preview_sdk_fingerprint", "REL");

        /**
         * The current development codename, or the string "REL" if this is
         * a release build.