As the title says I am trying to get two apps to share process ids. Below are the two manifest files for the two applications:
the first manifest is an activity which retrieves information from the contentprovider from the second application (second Manifest). @string/automprocess and @string/myTestSharedUser is set to the same value in both applications. Both applications are developed and compiled in the same machine so should have the same signature. But even so, when I try the activity and retrieve from ContentProvider then run `ps` the PID for both applications is different. What can I do to get it to run in same PID?
Code:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.testapp"
android:versionCode="1"
android:versionName="1.0" android:sharedUserId="@string/myTestSharedUser">
<application android:icon="@drawable/icon" android:label="@string/app_name" android:process="@string/automprocess">
<activity android:name=".testapp"
android:label="@string/app_name">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<provider android:name="TextProvider"
android:authorities="com.testapp" />
</application>
<uses-sdk android:minSdkVersion="3" />
</manifest>
Code:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.testapp2"
android:versionCode="1"
android:versionName="1.0" android:sharedUserId="@string/myTestSharedUser">
<application android:icon="@drawable/icon" android:label="@string/app_name" android:process="@string/automprocess">
<provider android:name="TextProvider"
android:authorities="com.testapp2" android:process="@string/automprocess" />
</application>
<uses-sdk android:minSdkVersion="3" />
</manifest>
the first manifest is an activity which retrieves information from the contentprovider from the second application (second Manifest). @string/automprocess and @string/myTestSharedUser is set to the same value in both applications. Both applications are developed and compiled in the same machine so should have the same signature. But even so, when I try the activity and retrieve from ContentProvider then run `ps` the PID for both applications is different. What can I do to get it to run in same PID?