top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

Share app process in Android 5.0 multiple user environment?

+1 vote
321 views

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.

  1. use sharedUserId as system, and mark persistent to be true;
  2. 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/).

posted Apr 16, 2015 by anonymous

Looking for an answer?  Promote on:
Facebook Share Button Twitter Share Button LinkedIn Share Button

Similar Questions
+3 votes

I found a config value in packages/app/Bluetooth/res/values/config.xml and a hide class

  • false
  • android.bluetooth.BluetoothHeadsetClient, this provides HFP client API, such as dial, accept call.

I set profile_supported_hfpclient to true, and remake and flash the system. I write a test app to using BluetoothHeadsetClient API, and it can dial and accept call. However, the voice is not working when calling. The speaker doesn't make sound, and the voice received by mic isn't transferred by Bluetooth SCO.

So does android support HFP client fully? How can I make voice works well

+1 vote

I want Android OS with no usable features, the only task the OS would have is to turn on and redirect the user to a APP.

Here are the steps
1. The user turns on the phone
2. The OS is loading as the phone turns on. When it's on you enter the homescreen.
3. You see the homescreen with a logo as background in a few seconds as the app loads
4. App has loaded and the OS opens the APP
5. The APP opens and inside the app is all the features.

You can now use the phone to it's intended task, and it's not possible to quit the app.

Any suggestion would be helpful?

0 votes

I made an app (Java based, without JNI stuff), to stress our android device. It does some intensive work and /sdcard IO writes (They are 60 threads) all of them are with FOREGROUND priority.

After a couple of minutes appeared crashes in different places (system_server - FinalizerDaemon timeouts) and then the Watchdog rebooted the device with message Watchdog killing system process: null.

I tested it also on Nexus 7 and other android devices in production, the behavior is the SAME. It seems that some apk, can overload the system and to reboot the user-space.

Is this behavior (under high pressure/load from FOREGROUND threads) is by design in android Jelly-Bean and are there any plans for some remedy for this situation.

+2 votes

Hi, I have built an application using android programming and I want to forward & sharing image from one application to other which was loaded from a remote url.

void onShareItem(View v) {

ImageView ivImage = (ImageView) findViewById(R.id.ivResult);

Uri bmpUri = getLocalBitmapUri(ivImage);
if (bmpUri != null) {

    Intent shareIntent = new Intent();
    shareIntent.setAction(Intent.ACTION_SEND);
    shareIntent.putExtra(Intent.EXTRA_STREAM, bmpUri);
    shareIntent.setType("image/*");
...