Error: couldn't create User

Search This thread

Tortux4e

New member
Mar 6, 2021
1
0
Hello, I am getting the following error on a rooted android 9 device.

Code:
# pm create-user youser
Error: couldn't create User.

On the other hand, logcat displays the following message.

Code:
W UserManagerService: Cannot add user. no_add_user is enabled.

Is there a way to disable no_add_user ?
 

It_ler

Recognized Contributor
  • Aug 23, 2011
    12,194
    16,954
    Samsung Galaxy S8
    Samsung Galaxy S10
    Hello, I am getting the following error on a rooted android 9 device.

    Code:
    # pm create-user youser
    Error: couldn't create User.

    On the other hand, logcat displays the following message.

    Code:
    W UserManagerService: Cannot add user. no_add_user is enabled.

    Is there a way to disable no_add_user ?
    Have a look here:
    https://developer.android.com/reference/android/os/UserManager#DISALLOW_ADD_USER
    And here:
    https://developer.android.com/refer...roid.content.ComponentName, java.lang.String)

    On some devices, it may not work to remove the restriction to add users. Needs to be a multi-user system which is not managed by an organisation.
     
    Our Apps
    Get our official app!
    The best way to access XDA on your phone
    Nav Gestures
    Add swipe gestures to any Android
    One Handed Mode
    Eases uses one hand with your phone