From bd413f6c05d10ecd001b80c0f30fd031145da8ae Mon Sep 17 00:00:00 2001 From: Christopher Tate Date: Wed, 18 Sep 2013 18:31:59 -0700 Subject: Support for "not the home app you're looking for" metadata * Make sure that pm.getHomeActivities() returns the activity metadata as well, so that the caller can trace the reference * Add a public canonical name for that metadata key Bug 10749961 Change-Id: Ic4d0750d61001ffe5af180398f042afa30eea1ce --- core/java/android/app/ActivityManager.java | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'core') diff --git a/core/java/android/app/ActivityManager.java b/core/java/android/app/ActivityManager.java index 2d28280..8a62d18 100644 --- a/core/java/android/app/ActivityManager.java +++ b/core/java/android/app/ActivityManager.java @@ -68,6 +68,13 @@ public class ActivityManager { private final Handler mHandler; /** + * string for a 'home' Activity that names a package that is to be + * uninstalled in lieu of the declaring one. The package named here must be + * signed with the same certificate as the one declaring the . + */ + public static final String META_HOME_ALTERNATE = "android.app.home.alternate"; + + /** * Result for IActivityManager.startActivity: an error where the * start had to be canceled. * @hide -- cgit v1.1