[HOW-TO] Enable Multiuser on Nexus 5 (Root)

Search This thread

wd5gnr

Senior Member
Dec 20, 2010
460
130
Houston
My 32GB Nexus 5 is less of a phone and more of a small tablet. But multiuser is not enabled!

You might ask, why do I want multiuser? Well... perhaps you give your phone to kids to play with on long trips. Or perhaps you want a "test" set of settings. Or you want to separate work and personal. Or maybe you just like to customize.

You do need the following:
1) Root
2) A way to enable the lock screen to rotate (I suggest Gravity Box: http://xdaforums.com/showthread.php?t=2316070)
3) A way to edit your build.prop. (Do it old school or an app such as https://play.google.com/store/apps/details?id=com.jrummy.apps.build.prop.editor)
4) A current backup!

It is easy enough to do if you can edit your build.prop. This requires root, and YOU REALLY MUST BACKUP before you mess with build.prop. Seriously. Back up. It just takes a few minutes.

You can edit build.prop by pulling it to a PC and pushing it back or you can use a build.prop editor from the market (I used the one built into Android System Tuner Pro (https://play.google.com/store/apps/details?id=ccc71.pmw.pro&hl=en) because I was feeling lazy). If you are doing it by hand the build.prop is in /system/ The line you need is:

Code:
fw.max_users=4

You can set 4 to however many users you want to be able to support.

Reboot.

At this point, it seems like nothing has happened. You need to go to Settings and you'll find a new entry:

attachment.php


If you click Users you should be able to figure it out from there:
attachment.php



Once you have set up a new user, you can press your user name in the settings to get to the lock screen. In portrait mode, it will look normal. But if you rotate to landscape mode you will see an icon for each user you've defined. If you set a different lock type/code for each (a PIN or a swipe code) you will have "some" security between users.

attachment.php



I did this on the 4.2.2 OTA that was slightly repackaged here: http://xdaforums.com/showthread.php?t=2557523

You'd imagine it would work on most other ROMs that don't already support it, but BACK UP FIRST just in case!
 

Attachments

  • Screenshot_2014-01-04-10-56-08.png
    Screenshot_2014-01-04-10-56-08.png
    25.6 KB · Views: 5,357
  • Screenshot_2014-01-04-10-56-19.png
    Screenshot_2014-01-04-10-56-19.png
    18.2 KB · Views: 5,240
  • Screenshot_2014-01-05-09-41-24.png
    Screenshot_2014-01-05-09-41-24.png
    68.9 KB · Views: 3,819
Last edited:

ldubs

Senior Member
Dec 25, 2012
827
88
Brooklyn, NY
sweet

Thanks for this find! So what's the default on fw.max_users? 1?

Thinking I might set this up so that when my son keeps asking "can I play on your phone" he gets his own setup. Interesting.
 

wd5gnr

Senior Member
Dec 20, 2010
460
130
Houston
The default is the line is not there. This apparently sets it to a single user.

Sent from my Nexus 7 using Tapatalk
 

Shanks

Senior Member
Oct 21, 2013
864
213
Google Pixel 6 Pro
The default is the line is not there. This apparently sets it to a single user.

Sent from my Nexus 7 using Tapatalk

So the line is not there? So we just click on edit and add this line?

Sent from my Nexus 5 using Tapatalk

---------- Post added at 04:10 AM ---------- Previous post was at 03:59 AM ----------

So the line is not there? So we just click on edit and add this line?

Sent from my Nexus 5 using Tapatalk

Edit: i went and add the line to build prop and it worked

Sent from my Nexus 5 using Tapatalk
 

idriff

Senior Member
Mar 26, 2012
226
24
just added the line to the build.prop and its working

Edit: any special setting i need to add to make it rotate on lockscreen?

Edit2: nvm just found out that i had an option to enable user selection on power screen
 
Last edited:

wd5gnr

Senior Member
Dec 20, 2010
460
130
Houston
Oh yeah. I use xposed and gravity box to enable rotating lock screen. Forgot about that. To switch users you need the landscape lockscreen. My bad! Still, xposed and gravity box are a great add on too.

Sent from my Nexus 7 using Tapatalk
 

es0tericcha0s

Senior Member
May 6, 2010
4,417
878
mobilemojo5280.com
Good find. There's a couple other ways too like the app SwitchMe or my favorite: I just dual boot. The phone boots so fast that it's less than a minute to boot to the other side. :) That way my wife can set up the phone to be less confusing since my phone is mostly gesture based and not for the novice. ;)
 

remixkilla

Senior Member
Apr 2, 2011
338
63
Oh yeah. I use xposed and gravity box to enable rotating lock screen. Forgot about that. To switch users you need the landscape lockscreen. My bad! Still, xposed and gravity box are a great add on too.

Sent from my Nexus 7 using Tapatalk

Thanks

Sent from my Nexus 5 using Tapatalk
 

YTayyar

Senior Member
Feb 15, 2012
141
12
Is there any solution yet for (com.android.phone force closed) in the secondary user?
thanks
 

rhemy1

Member
Apr 29, 2012
5
0
Maybe someone could help me. I'm on a routed nexus 5. The phone is still stock. Yet when I create a restricted profile and log into it, I only get a black screen. None of the apps I've enabled show up.

Sent from my Nexus 5 using xda app-developers app
 

hondajohn88

Senior Member
Jul 30, 2013
563
626
Upland
Maybe someone could help me. I'm on a routed nexus 5. The phone is still stock. Yet when I create a restricted profile and log into it, I only get a black screen. None of the apps I've enabled show up.

Sent from my Nexus 5 using xda app-developers app

I've run into the black screen problem a few times on different ROMs. I'm not sure what causes it, and no matter what I tried I couldn't get any wallpaper to show up.

Other ROMs I've used don't have any problems with wallpapers...again not sure what the difference is between those that work and those that don't.

Instead of modding the build prop to enable multi-users, I use Xposed Framework and Modaco Toolkit. Once Xposed is installed and the Modaco Toolkit module is enabled, selecting the "Show users on power menu" option in the "Google Nexus (all)" category enables the User Switcher in the power menu, and adds the "Users" option in the system menu. Reboot after making the selections to activate the settings.

I'm currently using CyanFox ROM found in the Nexus 5 Android Development forum and multi-user works perfect. Long-pressing the power button brings up the power menu along with the different users on the phone (after they've been set up).
CyanFox is a great ROM by the way...I highly recommend checking it out :)
Another good ROM that allows wallpapers on all users is AICP, also found in Android Development.

Xposed Framework: http://repo.xposed.info/module/de.robv.android.xposed.installer
Modaco Toolkit: http://www.modaco.com/topic/361634-xmod-modaco-toolkit-for-xposed-framework

Not sure if this helps you at all, but other than finding a ROM that has wallpapers for all users, I'm not sure how to fix the stock one.
 

Attachments

  • Screenshot_2014-02-20-22-07-17.jpg
    Screenshot_2014-02-20-22-07-17.jpg
    113 KB · Views: 372

ash1684

Senior Member
Mar 17, 2010
86
19
Pisa
Does someone know a way without Xposed (i love ART and wish to keep it)?
I seen a build.prop modification metod, but before doing some heavy "manual" modification i wanna check around for some "ready to flash" zip...

Sent from my Ne><us 5
 

wd5gnr

Senior Member
Dec 20, 2010
460
130
Houston
Does someone know a way without Xposed (i love ART and wish to keep it)?
I seen a build.prop modification metod, but before doing some heavy "manual" modification i wanna check around for some "ready to flash" zip...

Sent from my Ne><us 5

Well, it isn't that heavy -- see the first post. Not flashable, but not hard at all.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 6
    My 32GB Nexus 5 is less of a phone and more of a small tablet. But multiuser is not enabled!

    You might ask, why do I want multiuser? Well... perhaps you give your phone to kids to play with on long trips. Or perhaps you want a "test" set of settings. Or you want to separate work and personal. Or maybe you just like to customize.

    You do need the following:
    1) Root
    2) A way to enable the lock screen to rotate (I suggest Gravity Box: http://xdaforums.com/showthread.php?t=2316070)
    3) A way to edit your build.prop. (Do it old school or an app such as https://play.google.com/store/apps/details?id=com.jrummy.apps.build.prop.editor)
    4) A current backup!

    It is easy enough to do if you can edit your build.prop. This requires root, and YOU REALLY MUST BACKUP before you mess with build.prop. Seriously. Back up. It just takes a few minutes.

    You can edit build.prop by pulling it to a PC and pushing it back or you can use a build.prop editor from the market (I used the one built into Android System Tuner Pro (https://play.google.com/store/apps/details?id=ccc71.pmw.pro&hl=en) because I was feeling lazy). If you are doing it by hand the build.prop is in /system/ The line you need is:

    Code:
    fw.max_users=4

    You can set 4 to however many users you want to be able to support.

    Reboot.

    At this point, it seems like nothing has happened. You need to go to Settings and you'll find a new entry:

    attachment.php


    If you click Users you should be able to figure it out from there:
    attachment.php



    Once you have set up a new user, you can press your user name in the settings to get to the lock screen. In portrait mode, it will look normal. But if you rotate to landscape mode you will see an icon for each user you've defined. If you set a different lock type/code for each (a PIN or a swipe code) you will have "some" security between users.

    attachment.php



    I did this on the 4.2.2 OTA that was slightly repackaged here: http://xdaforums.com/showthread.php?t=2557523

    You'd imagine it would work on most other ROMs that don't already support it, but BACK UP FIRST just in case!
    1
    For Gravity box you need Xposed and so no ART...

    Yes, but Gravity box was only a suggestion for getting lock screen rotation. There are plenty of things out there that will do that and not all need Xposed. For example: https://play.google.com/store/apps/details?id=com.mah.screenrotationlock would probably work.