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
diff --git a/Android.mk b/Android.mk
index dda7f0c..dc72ec6 100644
--- a/Android.mk
+++ b/Android.mk
@@ -24,6 +24,7 @@
 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 1368236..84ee599 100644
--- a/AndroidManifest.xml
+++ b/AndroidManifest.xml
@@ -19,7 +19,9 @@
 -->
 <manifest
     xmlns:android="http://schemas.android.com/apk/res/android"
-    package="com.android.launcher">
+    package="com.android.launcher"
+    android:sharedUserId="@string/sharedUserId"
+    >
 
     <original-package android:name="com.android.launcher2" />
 
@@ -62,6 +64,7 @@
     
     <application
         android:name="com.android.launcher2.LauncherApplication"
+        android:process="@string/process"
         android:label="@string/application_name"
         android:icon="@drawable/ic_launcher_home">
 
diff --git a/res/values/strings.xml b/res/values/strings.xml
index 35d4733..ec4fd95 100644
--- a/res/values/strings.xml
+++ b/res/values/strings.xml
@@ -18,6 +18,13 @@
 -->
 
 <resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
+    <!-- Manifest configuration. -->
+    <skip />
+    <!-- Do not translate. android:sharedUserId of this application. -->
+    <string name="sharedUserId" translate="false"><xliff:g id="x"></xliff:g></string>
+    <!-- Do not translate. android:process of this application. -->
+    <string name="process" translate="false"><xliff:g id="x"></xliff:g></string>
+    
     <!-- General -->
     <skip />
     <!-- Application name -->