From d7cd29da91ccc0aba1f1097e19366f9ca36c7ce1 Mon Sep 17 00:00:00 2001 From: Dianne Hackborn Date: Wed, 1 Jul 2009 11:22:45 -0700 Subject: Add facility to run setup wizard after an update. The system now keeps a tag of the last version (just an arbitrary string) that the setup wizard was run for. If this is different than the current one in the setup wizard, then setup is launched at boot. This introduces a new intent action for the part of the setup wizard that gets run for an ungrade, which the system uses to find its current version tag for comparing against what was last stored. It is up to the launched setup activity update the stored setting to reflect its current value, once it is happy. --- core/java/android/content/Intent.java | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'core/java/android/content') diff --git a/core/java/android/content/Intent.java b/core/java/android/content/Intent.java index 6b723bc..263f927 100644 --- a/core/java/android/content/Intent.java +++ b/core/java/android/content/Intent.java @@ -1085,6 +1085,27 @@ public class Intent implements Parcelable { @SdkConstant(SdkConstantType.ACTIVITY_INTENT_ACTION) public static final String ACTION_POWER_USAGE_SUMMARY = "android.intent.action.POWER_USAGE_SUMMARY"; + /** + * Activity Action: Setup wizard to launch after a platform update. This + * activity should have a string meta-data field associated with it, + * {@link #METADATA_SETUP_VERSION}, which defines the current version of + * the platform for setup. The activity will be launched only if + * {@link android.provider.Settings.Secure#LAST_SETUP_SHOWN} is not the + * same value. + *

Input: Nothing. + *

Output: Nothing. + * @hide + */ + @SdkConstant(SdkConstantType.ACTIVITY_INTENT_ACTION) + public static final String ACTION_UPGRADE_SETUP = "android.intent.action.UPGRADE_SETUP"; + + /** + * A string associated with a {@link #ACTION_UPGRADE_SETUP} activity + * describing the last run version of the platform that was setup. + * @hide + */ + public static final String METADATA_SETUP_VERSION = "android.SETUP_VERSION"; + // --------------------------------------------------------------------- // --------------------------------------------------------------------- // Standard intent broadcast actions (see action variable). -- cgit v1.1