In Android5.0, an App(apk) can be installed in multiple users. When the App is running in another user, there is a new process of the App. I want to develop a App which is running in multiple users but only one process is created. Some system process, such like "com.android.phone" is running in this way. But I can not find the way to do that.
I have tried as below, but don't work.
- use sharedUserId as system, and mark persistent to be true;
- sign app as platform signature, put the apk to /system/app or /system/priv-app/;
However, service/recevier/provider can use in manifest.xml to share the same component although.(single user tag must be installed in /system/priv-app/).