5,593,876 Members 47,333 Now Online
XDA Developers Android and Mobile Development Forum

[HOWTO][4.2]Now there's an app for that. Enable Multiple Users in Android

Tip us?
 
zanderman112
Old
(Last edited by zanderman112; 15th March 2013 at 09:43 AM.)
#1  
zanderman112's Avatar
Recognized Themer - OP
Thanks Meter 1839
Posts: 7,927
Join Date: Oct 2010
Location: SouthEast USA

 
DONATE TO ME
Default [HOWTO][4.2]Now there's an app for that. Enable Multiple Users in Android

For Android 4.2 Try this:

Quote:
Originally Posted by mildlydisturbed View Post
FYI, since I stumbled across this looking for 4.2 and it came up because *not 4.2* is in the title, in case it's not here - 4.2 how to (possibly depending on build)

adb shell
su
pm get-max-users (should show 1)
setprop fw.max_users (some number above 2, I chose 7)
pm create-user someusername here

repeat the create-user as wanted.

That popped up a "Users" tab for me after creating 1 that allowed me to create more.

Your mileage may vary, and I did this on a different device so I may just be useless
Or this:
Quote:
Originally Posted by SferaDev View Post
For those who doesn't to worry to do it wrong I've coded a app of this procedure.

Link: http://forum.xda-developers.com/show....php?t=2187934

See you!

Sent from my GT-I9000 using Tapatalk 2
Only bug I noticed was that in order to switch from any non primary user back to the primary(as far as using a visual UI), your lock screen *has* to be in landscape mode. Easy enough I guess so have at it!

Thanks to everyone keeping the info flooding in on this subject. Hopefully KLP will have this baked in for phones as well.



Original Method for 4.1 below:

 

Been featured on the below sites!

 


*Insert Disclaimer Here*
Also, I have navigation bar mod on my 7/30 build of CM10, so ignore those.
This should work on any Jellybean Android 4.1.x ROM built from AOSP, like CM10, AOKP, etc.
Please read this entire post before doing any of this!
This feature is now in AOSP fully as of Android 4.2!!



After reading about the recent discovery of multiple user code being in JB, I decided to mess with it.

Here's a video:
http://www.youtube.com/watch?v=OfHWV_-X3a8&hd=1

Manual method(fun, makes you feel like a hacker):
First, we need to enable this.
Go to Terminal Emulator and type these in:

Code:
su
Code:
pm create-user test
Hint: "test" being the name of the 2nd user. You can change that to a name, or whatever.

Now, we've created a 2nd User on your JB 4.1 device. Hold the Power/Lock button to bring up the power menu, and you should see this:


From here, you can switch to the 2nd user, which will have a fresh homescreen, and show you the tutorial. Settings are limited to this user, as seen here:


Quote:
Originally Posted by mantian View Post
In case someone hasnīt figured out how to rename/change any usename, it's pretty easy.

You only have to go to /data/system/users and edit the "userX.xml" file, where X is the user numer(0,1,2,...). The change the name between and to any other you like. For example, from guest to invitado. Save the file and reboot. It work well for me.

P.S: If you don't know which user number has the one you wanna change, check out the userlist.xml file, which has the same path above.

To remove this 2nd user from your phone, switch back to the primary user via the power menu, and go back to Terminal Emulator.

Type this in:
Code:
su
Hint: only if it isn't still running from before
Code:
pm remove-user 1
Hint: primary user in this case is 0, 2nd is 1, so on and so on.

Now you should only have one user, and your Power Menu should not have the ability to switch to a new user anymore.

To double check, go back to the Terminal Emulator and type this:
Code:
su
Code:
pm list-users
Should say:

Code:
Users:
        UserInfo{0:Primary:3}
Easy Method:

XDA member Raghav Sood has an app that does all of the above for you.
http://forum.xda-developers.com/show....php?t=1824066


At the moment, this isn't extremely usable, ie texts from the primary user's still show in the 2nd test account. But, with the right launcher installed, and hiding the apps from the drawer on the 2nd account, this can still be usable in its current form.

My suggestions:
1.) Label the 2nd user Guest
2.) Use Nova or Apex as the launcher for the Guest user, and hide all of the apps you want(texts, social media, email, etc) from the app drawer.
3.) Setup a security lockscreen on the primary user to prevent Guests from gaining access(each user has different lockscreen settings)

You can read more about this here:
http://phandroid.com/2012/07/31/code...urce=pulsenews and on their source link.


Feedback:
Quote:
Originally Posted by cdesai View Post
http://goo.gl/AnXT7

P.S. - This was done by modifying code in the Settings app, and i did submit the patch to CM Code-Review(http://goo.gl/PU4wQ), it ins't in yet as it's buggy.
We've tested it pretty extensively, and it's insanely broken.

I also submitted a patch to AOSP related to this(http://goo.gl/u0WbN), and it got rejected, due to what i said.
The below line comes a developer at google, who's been working on this since more than a year:
"Multi-user feature is not ready for deployment. Bad things will happen if you use it in its current state!"






Quote:
Originally Posted by Roodborstje View Post
I have it working om my GSM GN.

I found that in the second account there are apps that I don't have in the primary account, for example: Google Wallet, Play Magazines, Play Books and Play Films. (I'm from Belgium)
Oh, they disappeared as soon as I signed in with my Google account.

If you are on the second user, most of the data from the primary user is hidden (you can not acces it).
For example:
- photo's
- unlocked levels in Angry Birds
- music
- contacts
- google account
- clipboard
- home screen

But there are a few exceptions:
- all the apps are there, as if they were just installed
- the recent apps menu
- the use-app-as-default-setting (I don't know the official name). For example: if you set Apex as default in the Guest account, it will also be default in the primary account.
- your messages (!)



Ps: this was my first post on xda
I hope you find it usefull.

Sent from my Galaxy Nexus using xda app-developers app
Sent from Mr. Z's Galaxy S3.

^^^^^^^^^^^^^^^^^^^^^^^^^^Click banner for my Twitter^^^^^^^^^^^^^^^^^^^^^^^^^^^^
<---- I now have a PayPal donate link right over there <----
If you don't wan't to straight up donate via PayPal, these Amazon.com virtual giftcards are always appreciated

My Devices:
 
Sprint Galaxy S3 on Stock Deodexed MB1+Multi-View mod
OUYA 1st Gen on Stock Rooted JZ054L-Ouya
HP Touchpad on patched up webOS 3.0.5 & CyanogenMod 10.1
Samsung Epic 4G on CyanogenMod 10.1 Nightlies
The Following 66 Users Say Thank You to zanderman112 For This Useful Post: [ Click to Expand ]
 
monstaX
Old
#2  
Senior Member
Thanks Meter 142
Posts: 441
Join Date: Dec 2011
Location: Texas
It. just. Looks. So .






Sexy :')



Great tut btw!!! I shall do this
Sent from my SPH-L710 using xda app-developers app
Probably Sent from my decked out Epic 4G with CM9 Beta1, fully SUPERCHARGED running at 1.4 GHz with Shadow Kernel. It loses 1 Percent of battery every 5 minutes WHILE it is PLUGGED IN. So I am usually on Airplane Mode Lol. If I forget to hit thanks.. SORRY!!
 
flastnoles11
Old
#3  
flastnoles11's Avatar
Senior Member
Thanks Meter 3995
Posts: 8,050
Join Date: Nov 2011
Location: columbia
Dude, just awesome! This will come in very handy for my 2 year old! Thanks!

New to the SprintGS3??? Click the link below to get started!!!


The Following User Says Thank You to flastnoles11 For This Useful Post: [ Click to Expand ]
 
zanderman112
Old
(Last edited by zanderman112; 1st August 2012 at 04:17 AM.)
#4  
zanderman112's Avatar
Recognized Themer - OP
Thanks Meter 1839
Posts: 7,927
Join Date: Oct 2010
Location: SouthEast USA

 
DONATE TO ME
Uploading a video now of it.

Edit: Video https://www.youtube.com/watch?v=OfHW...e_gdata_player
Sent from Mr. Z's Galaxy S3.

^^^^^^^^^^^^^^^^^^^^^^^^^^Click banner for my Twitter^^^^^^^^^^^^^^^^^^^^^^^^^^^^
<---- I now have a PayPal donate link right over there <----
If you don't wan't to straight up donate via PayPal, these Amazon.com virtual giftcards are always appreciated

My Devices:
 
Sprint Galaxy S3 on Stock Deodexed MB1+Multi-View mod
OUYA 1st Gen on Stock Rooted JZ054L-Ouya
HP Touchpad on patched up webOS 3.0.5 & CyanogenMod 10.1
Samsung Epic 4G on CyanogenMod 10.1 Nightlies
The Following 7 Users Say Thank You to zanderman112 For This Useful Post: [ Click to Expand ]
 
Success100
Old
#5  
Success100's Avatar
Senior Member
Thanks Meter 202
Posts: 1,826
Join Date: Jan 2008
Location: Cleveland
this would be epic if this could work.

you could probably make some serious change in the marketplace also lol
All Hail Success100...!!!

ALL IN YOUR CHROMOSOMES...ALL IN YO DROID DNA!!

"Originally Posted by ms79723
I like this dude right here. This dude is always right 100%. (.....). But this dude is the truth right here"
 
cypressious
Old
#6  
Member
Thanks Meter 1
Posts: 40
Join Date: Dec 2010
Location: Karlsruhe
Great! Also works in adb shell.
 
pitokellie
Old
#7  
Member
Thanks Meter 5
Posts: 71
Join Date: May 2009
Location: lehighton pa
Quote:
Originally Posted by cypressious View Post
Great! Also works in adb shell.
i get 'stopped(sigsstop)' what wrong?
 
NeoNikon
Old
#8  
NeoNikon's Avatar
Senior Member
Thanks Meter 41
Posts: 278
Join Date: May 2012
great! will come in very handy since im always working with Ethiopian children and trust me they're pretty smart they always blackmail me saying they'l send my contacts dirty pictures and messages. now its all going to be stopped ! thanks bro
 
monstaX
Old
#9  
Senior Member
Thanks Meter 142
Posts: 441
Join Date: Dec 2011
Location: Texas
Quote:
Originally Posted by NeoNikon View Post
great! will come in very handy since im always working with Ethiopian children and trust me they're pretty smart they always blackmail me saying they'l send my contacts dirty pictures and messages. now its all going to be stopped ! thanks bro

Good luck with that.... 0.o
Sent from my SPH-L710 using XDA App
Probably Sent from my decked out Epic 4G with CM9 Beta1, fully SUPERCHARGED running at 1.4 GHz with Shadow Kernel. It loses 1 Percent of battery every 5 minutes WHILE it is PLUGGED IN. So I am usually on Airplane Mode Lol. If I forget to hit thanks.. SORRY!!
 
Zlatty
Old
#10  
Zlatty's Avatar
Senior Member
Thanks Meter 22
Posts: 355
Join Date: Oct 2011
Location: ATL
This is fantastic. I hope that there is more exploration of this. Would be perfect for tablets.

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes