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

Commit a0c7d1fb authored by Jeff Davidson's avatar Jeff Davidson
Browse files

Expose Intent#EXTRA_REASON as a SystemApi.

It's expected to be set with ACTION_FACTORY_RESET intents, and this
action was exposed as a @SystemApi in b/32974361.

Change-Id: Ib29ffb8d62460eb4ec0208076331bbba3272f290
Fixes: 67751036
Test: Just TreeHugger; no functional changes
parent 32d9a5f3
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -10197,6 +10197,7 @@ package android.content {
    field public static final java.lang.String EXTRA_PROCESS_TEXT_READONLY = "android.intent.extra.PROCESS_TEXT_READONLY";
    field public static final java.lang.String EXTRA_QUICK_VIEW_FEATURES = "android.intent.extra.QUICK_VIEW_FEATURES";
    field public static final java.lang.String EXTRA_QUIET_MODE = "android.intent.extra.QUIET_MODE";
    field public static final java.lang.String EXTRA_REASON = "android.intent.extra.REASON";
    field public static final java.lang.String EXTRA_REFERRER = "android.intent.extra.REFERRER";
    field public static final java.lang.String EXTRA_REFERRER_NAME = "android.intent.extra.REFERRER_NAME";
    field public static final java.lang.String EXTRA_REMOTE_CALLBACK = "android.intent.extra.REMOTE_CALLBACK";
+10 −3
Original line number Diff line number Diff line
@@ -3444,11 +3444,12 @@ public class Intent implements Parcelable, Cloneable {
    /**
     * A broadcast action to trigger a factory reset.
     *
     * <p> The sender must hold the {@link android.Manifest.permission#MASTER_CLEAR} permission.
     * <p>The sender must hold the {@link android.Manifest.permission#MASTER_CLEAR} permission. The
     * reason for the factory reset should be specified as {@link #EXTRA_REASON}.
     *
     * <p>Not for use by third-party applications.
     *
     * @see #EXTRA_FORCE_MASTER_CLEAR
     * @see #EXTRA_FORCE_FACTORY_RESET
     *
     * {@hide}
     */
@@ -4827,7 +4828,13 @@ public class Intent implements Parcelable, Cloneable {
    /** @hide */
    public static final int EXTRA_TIME_PREF_VALUE_USE_LOCALE_DEFAULT = 2;

    /** {@hide} */
    /**
     * Intent extra: the reason that the operation associated with this intent is being performed.
     *
     * <p>Type: String
     * @hide
     */
    @SystemApi
    public static final String EXTRA_REASON = "android.intent.extra.REASON";

    /**