From 12687cf14426e50a8646fec19cddd127a0b13121 Mon Sep 17 00:00:00 2001 From: Dianne Hackborn Date: Tue, 9 Mar 2010 15:03:20 -0800 Subject: [PATCH] Allow shared user id and process to be set via overlays. This fiddles the manifest to allow the app's shared user id and process to be changed at build time via resource overlays, so we can build launcher to run in the acore process for low-end devices. Also switches the cert of launcher back to shared, to allow for this. (Note this only really matters if the shared user id is set, otherwise launcher will still get its own uid.) Change-Id: I0bd0a06e1442c4bfe5ceb2d438cb58f29d911578 --- Android.mk | 1 + AndroidManifest.xml | 5 ++++- res/values/strings.xml | 7 +++++++ 3 files changed, 12 insertions(+), 1 deletion(-) diff --git a/Android.mk b/Android.mk index dda7f0c4e4..dc72ec6dbc 100644 --- a/Android.mk +++ b/Android.mk @@ -24,6 +24,7 @@ LOCAL_STATIC_JAVA_LIBRARIES := android-common LOCAL_SRC_FILES := $(call all-subdir-java-files) LOCAL_PACKAGE_NAME := Launcher2 +LOCAL_CERTIFICATE := shared LOCAL_OVERRIDES_PACKAGES := Home diff --git a/AndroidManifest.xml b/AndroidManifest.xml index 13682367bc..84ee599095 100644 --- a/AndroidManifest.xml +++ b/AndroidManifest.xml @@ -19,7 +19,9 @@ --> + package="com.android.launcher" + android:sharedUserId="@string/sharedUserId" + > @@ -62,6 +64,7 @@ diff --git a/res/values/strings.xml b/res/values/strings.xml index 35d47338a9..ec4fd95996 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -18,6 +18,13 @@ --> + + + + + + +