11

I know multi-user functionality is available in Android 4.2 JellyBean:

I have gone through THIS and THIS.

But I want to test this feature on my emulator and not on the actual device.

My Questions:

  1. Is it possible to test multi-user feature on an emulator?

  2. If yes, how it can be?

1
  • Highly dubious that this is possible at the moment right now, best to wait and see what Google does, perhaps in the next release of their SDK, there will be an emulator by then, wait and see....
    – t0mm13b
    Dec 19, 2012 at 21:15

1 Answer 1

6
+50

The Android emulator doesn't currently support this, unfortunately. There is a configuration file in the build system that determines whether or not to enable the user accounts feature, and it is disabled in the emulator images distributed by Google. You can star this issue on the bug tracker in the meantime.

However there are two alternatives you can look at:

  1. You can alter the configuration file and build a new emulator image from the AOSP source and use that in place of the system image that the AVD uses by default. The file in question is in /frameworks/base/core/res/res/values/config.xml within the Android source. There should be an option named config_multiuserMaximumUsers which needs to be set to a value greater than 1.

  2. You can try the Jar of Beans emulator package. It has experimental support for multiple user accounts. Note, however, that this is an x86 emulator, not an ARM one.

4
  • Thanks for your Support. but i could not able to find the "/frameworks/base/core/res/res/values/config.xml" path in my ubantu 11.10 could you help me? Dec 20, 2012 at 7:47
  • 1
    @Bhavesh: Do you have all of the source code synced to your computer? What steps did you use to set it up? Dec 20, 2012 at 18:03
  • which source code i should have for it? could you please give me link for it? Dec 21, 2012 at 4:48
  • 1
    @Bhavesh: You need the full Android source. It's pretty large, but the instructions for setting it up start here if you'd like to try it: source.android.com/source/initializing.html Dec 21, 2012 at 13:24

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .