run IM provider in gapps process instead of acore, so everything GTalkService needs to run as a persistent service
lives inside a single process. This hopefully relieves some memory pressure in Donut.

The negative side effect of this is when the user upgrade to Donut, he will lose his old IM storage, which
in Donut contains any account username/pw for AIM/Yahoo/MSN, the provider settings (i.e. auto-login, notification
ringtones, etc), and the outgoing RMQ messages not yet received by MCS. The amount of data lost is not significant
and can all be recovered by the user. It's not he will lost chat messages because we don't store those in
persistent storage in Donut.

The things done to make IM provider running in gapps are:
- make IM provider use the google uid.
- make it run in the process "com.google.process.gapps"
- in the make file, make it use "vendor/google/certs/app" certificate.
diff --git a/Android.mk b/Android.mk
index f7f22cc..977074e 100644
--- a/Android.mk
+++ b/Android.mk
@@ -11,7 +11,7 @@
                                                         # classes defined in this plugin package)
 
 LOCAL_PACKAGE_NAME := ImProvider
-LOCAL_CERTIFICATE := shared
+LOCAL_CERTIFICATE := vendor/google/certs/app
 
 include $(BUILD_PACKAGE)
 
diff --git a/AndroidManifest.xml b/AndroidManifest.xml
index 8609528..5d39ed1 100644
--- a/AndroidManifest.xml
+++ b/AndroidManifest.xml
@@ -1,6 +1,6 @@
 <manifest xmlns:android="http://schemas.android.com/apk/res/android"
         package="com.android.providers.im"
-        android:sharedUserId="android.uid.shared">
+        android:sharedUserId="com.google.uid.shared">
 
     <permission android:name="com.android.providers.im.permission.READ_ONLY"
         android:permissionGroup="android.permission-group.MESSAGES"
@@ -17,7 +17,7 @@
     <uses-permission android:name="com.android.providers.im.permission.READ_ONLY" />
     <uses-permission android:name="com.android.providers.im.permission.WRITE_ONLY" />
 
-    <application android:process="android.process.acore"
+    <application android:process="com.google.process.gapps"
             android:label="@string/im_label"
             android:icon="@drawable/ic_launcher_im"
             android:taskAffinity="android.task.im">