From b9fd6bedbca31cd394f1e43017e6b6b32e1b9fce Mon Sep 17 00:00:00 2001 From: Varun Shah Date: Mon, 22 Oct 2018 19:16:33 -0700 Subject: [PATCH] Exposes Intent.METADATA_SETUP_VERSION as SystemApi for SUW. Bug: 114363691 Test: manual (run setup wizard) Change-Id: I4f2b9ee04a641421b7061c87380fa71235967683 --- api/system-current.txt | 1 + core/java/android/content/Intent.java | 8 ++++++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/api/system-current.txt b/api/system-current.txt index 26036ea9c2815..791f356a2f277 100644 --- a/api/system-current.txt +++ b/api/system-current.txt @@ -1013,6 +1013,7 @@ package android.content { field public static final java.lang.String EXTRA_RESULT_NEEDED = "android.intent.extra.RESULT_NEEDED"; field public static final java.lang.String EXTRA_UNKNOWN_INSTANT_APP = "android.intent.extra.UNKNOWN_INSTANT_APP"; field public static final java.lang.String EXTRA_VERIFICATION_BUNDLE = "android.intent.extra.VERIFICATION_BUNDLE"; + field public static final java.lang.String METADATA_SETUP_VERSION = "android.SETUP_VERSION"; } public class IntentFilter implements android.os.Parcelable { diff --git a/core/java/android/content/Intent.java b/core/java/android/content/Intent.java index c0463e9ae7afc..9543ad22ce2be 100644 --- a/core/java/android/content/Intent.java +++ b/core/java/android/content/Intent.java @@ -1726,10 +1726,14 @@ public class Intent implements Parcelable, Cloneable { = "android.intent.extra.UNINSTALL_ALL_USERS"; /** - * A string associated with a {@link #ACTION_UPGRADE_SETUP} activity - * describing the last run version of the platform that was setup. + * A string that associates with a metadata entry, indicating the last run version of the + * platform that was setup. + * + * @see #ACTION_UPGRADE_SETUP + * * @hide */ + @SystemApi public static final String METADATA_SETUP_VERSION = "android.SETUP_VERSION"; /**