diff options
| author | Christopher Tate <ctate@google.com> | 2013-09-18 18:31:59 -0700 |
|---|---|---|
| committer | Christopher Tate <ctate@google.com> | 2013-09-19 12:31:49 -0700 |
| commit | bd413f6c05d10ecd001b80c0f30fd031145da8ae (patch) | |
| tree | 671ee365c56a1f20add4485c6928b21261472e0f /core/java/android | |
| parent | dc3335429acf184cf67d022de6fe286c3672663a (diff) | |
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
Diffstat (limited to 'core/java/android')
| -rw-r--r-- | core/java/android/app/ActivityManager.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/core/java/android/app/ActivityManager.java b/core/java/android/app/ActivityManager.java index 2d28280fe71b..8a62d180608a 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; /** + * <meta-data> 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 <meta-data>. + */ + 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 |
