yashsingh1/xdaforums huggingface dataset:
[Sprint Samsung Galaxy S III] Raghav Sood:
So since nobody else seems to have wanted to try it out, I have decided to take the plunge and try renaming and deleting the Primary user on my Nexus S. Wish me luck!! I'll post the results soon.

---------- Post added at 05:17 PM ---------- Previous post was at 04:44 PM ----------

RESULTS:

Renaming:

No ill effects noticed. Phone worked fine.

Deletion:

Not possible. Turns out, you can't delete the currently active account, and root doesn't work across user accounts so I can't delete it from others. I even tried re rooting the device with the new accounts. Doesn't work.

So I decided to make it as if I'd deleted the primary user. I went to userlist.xml in /data/system/users, and I deleted the 0, AKA Primary, user.

Do not do this. Bad things happen. When I rebooted the device, it got stuck on the multi colored X boot animation. Checking the LogCat revealed that my deleting the user had caused multiple Null Pointer Exceptions. Either way, the system failed to boot.

Fixing it turned out to be simple enough. I downloaded the stock image from Google, and even though the device couldn't boot, adb was still accessible.

So type:

adb reboot boatloader

to get your device out of the hung boot operation. Then use the flash-all.sh script given with the Stock image to flash it to your phone again. You'll now have a root-less factory condition phone.

In light of the near brick condition of deleting the Primary user, I'll be disabling that option completely in my app in an upcoming upgrade. Renaming will still be permitted. If anyone wants anything else included in the upgrade, please reply to this post with a suggestion within the next 24 hours.
[Sprint Samsung Galaxy S III] clakshminarasu:
Worked Perfectly

Worked perfectly on my Galaxy Nexus (Jellybean 4.1.1 - bigxie maguro)

:laugh:
[Sprint Samsung Galaxy S III] zanderman112:
Mhm :)

I still am having fun with this. Might be incomplete, but I love it.

Sent from Mr. Z's Galaxy S3.
[Sprint Samsung Galaxy S III] Raghav Sood:
So I've pushed the update for both the paid and free versions. A big thanks to all 93 of you who downloaded the free one, and to the one person who bought the paid one :)

As usual, suggestions/comments are welcome.
[Sprint Samsung Galaxy S III] zanderman112:
Tis a very good app. Too bad I'm a poor college student who spent all of his money on the phone he has. No paid apps for me lol

Sent from Mr. Z's Galaxy S3.
[Sprint Samsung Galaxy S III] Raghav Sood:
Lol. That's okay :) I'm a 15 year old in school, so I understand your position :P
[Sprint Samsung Galaxy S III] -MaD-:
Downloaded for testing of capabilities of my good old SGS1. Still waiting, if Multiple users will be with better functionality and then probably buy the donation version. Btw. thanks for this utility. Right now I used it for 5 minutes ;)

Gesendet von meinem GT-I9000
[Sprint Samsung Galaxy S III] Raghav Sood:
Thanks :) I've had six installs on the SGS1, and no one's reported any problems. If you run into any, do let me know.
[Sprint Samsung Galaxy S III] cowsick:
It's not up to raghav to fix better multiuser functionality. It's up to Google....

Skickat från min GT-I9300 via Tapatalk 2
[Sprint Samsung Galaxy S III] Raghav Sood:
I've opened a thread for my app in the relevant section. Please post comments/suggestions etc. either as a reply to one of my posts here, or in that thread (preferred).

Appreciate all of you now 100+ downloaders :D
[Sprint Samsung Galaxy S III] zanderman112:
Edited OP to redirect to your thread if they wanna use the app :)

Sent from something with a Ｋモ尺れモㄥ.
[Sprint Samsung Galaxy S III] fatih2109:
nice
[Sprint Samsung Galaxy S III] Raghav Sood:
Thank you :)
[Sprint Samsung Galaxy S III] Raghav Sood:
I just realized I never shared the command l used for switching users in my app. So here it is:

am switch-user <user-id>

It must be executed in a root environment (obviously).

Example for switching to the primary user:

am switch-user 0
[Sprint Samsung Galaxy S III] zanderman112:
Mhm, I would've put that in the OP originally, but when I realized the power menu did it for you, I decided to leave it out.

Sent from Mr. Z's Galaxy S3.
[Sprint Samsung Galaxy S III] miguelchvz89:
bug ??

Hey Guys,

I've created a next user on my Galaxy S3 and it "seems" to work quite all right except for few things:

If you click on the market or Gmail in the guest account it will prompt you to login with a Gmail account .. That's awesome .. but If primary User receives an email it will show on 'Guest Account' notification menu and he/she will be able to read it!

Also Text messages are copied over ..

Any Ideas guys ??

I tried installing Apex launcher to hide apps but it crashes every time I hit "Manage Apps"

thanks folks! :cowboy:
[Sprint Samsung Galaxy S III] Raghav Sood:
No idea about the apex launcher part, but the rest of the problems must be fixed by either Google or your ROM developer. Third party apps cannot control those.
[Sprint Samsung Galaxy S III] SferaDev:
Is it possible to port it to ICS ?

It's integrated in the systemui or is a new app ?
[Sprint Samsung Galaxy S III] Raghav Sood:
It is a firmware level addition to Android in Jelly Bean, and the only people who can port it to ICS are the ROM developers. You could try asking one of them. It is not possible for a third party app to add such functionality.
[Sprint Samsung Galaxy S III] SferaDev:
Sure mate, but my really question is:

It's part of a older apk or its a new apk with only this utility ?

I ask b because I don't have jb still !

And there is no need to make a new ROM, just modify the minimum api level inside the app with eclipse and rebuild !

Sent from my RK29 tab...
[Sprint Samsung Galaxy S III] Raghav Sood:
My app simply provides a GUI front end to the commands that were added to JB by Google, directly into the source code. While nothing stops the app from running on ICS as such, it won't do anything, because the base commands it uses are missing on a firmware level. Hence, only a ROM developer could extract them from the JB source code, and add them to the ICS build. Of course, considering the amount of changes required to back port this feature, it'd be easier for the developer to simply port JB itself to the device.
[Sprint Samsung Galaxy S III] SferaDev:
Yeah I know what your app do ! You simply use the shell commands. And pm commands are existing in ics but no the utility !

Well I'll do more research !

Sent from my RK29 tab...
[Sprint Samsung Galaxy S III] Raghav Sood:
It's not only about the commands. The pm command exists in ICS, but the options for multi user to not. This is because, along with new command, a whole host of new code was added to AOSP, like new settings screens, new power button popup etc. This is why it is difficult to back port it to ICS, as along with the commands, all of the new code will also have to be integrated into the ROM.
[Sprint Samsung Galaxy S III] SferaDev:
Ok I ported the pm JB command to ICS and it create the users !

Now the problem is to switch to one of them !

---------- Post added at 09:35 AM ---------- Previous post was at 09:15 AM ----------

Porting Post: http://xdaforums.com/showthread.php?t=1845008
[Sprint Samsung Galaxy S III] bbsrailfan:
I am not able to change wallpapers and ring profiles for the Guest user I created.

Is it normal? I also always get a fc while trying to reame or delete a user profile.

i am on Paranoid ROM (Jellybean) on a Galaxy Nexus maguro.
[Sprint Samsung Galaxy S III] -Psycho-:
Did you make sure that you switched users before trying to delete them? Because you can't delete a user you are currently using, switch back to primary (user 0) and then delete.

Oh, and btw, you can't delete the primary user, if that's what you were trying to do...

Sent a long time ago, from a Galaxy [Nexus] far, FAR away...
[Sprint Samsung Galaxy S III] dbaler:
Hello this feature works on my tf101 running team EOS jb build 66, only problem is that when I press the special settings key in the dok it brings up the full ssettings menu and if I clikc the nav bar on the bottom and expand it and go to settings through there it also shows full settings menu. The only way I have found to access the restricted settings menu is to click te settings app or go to settings via nova launcher
[Sprint Samsung Galaxy S III] haisir:
that's great :good:

does it runs on ics(android 4.0)? :confused:
[Sprint Samsung Galaxy S III] zanderman112:
Unfortunately no, Jellybean only.

Posted by Mr. Z's Galaxy S3.
[Sprint Samsung Galaxy S III] abnah:
Well, actually I had a look at the ICS filesystem, and some things seem to be already implemented. Not the whole multiuser system, and from what I saw it'd be pretty useless - but it could be possible to add users manually (if, then probably without possibility to switch them).

Maybe I'll dig deeper into ICS tomorrow, or so.

Gesendet von meinem Galaxy Nexus
[Sprint Samsung Galaxy S III] MrGlitters:
Thanks for sharing this helpful feature!

Unlike everyone here, I'm looking to have a full administrative (non-guest) account for the secondary. I know this is still a WIP feature, but is there any possible way to give full administrative features to the second account (like a full settings list)? My sister is the primary owner who doesn't play around with android, but I'm the "second" user who loves to dive into the nooks and cranny of android!

Thanks guys! Long time lurker in the realm xda GS2, first item poster!
[Sprint Samsung Galaxy S III] android88:
Here is a video showing how to add a new user profile. It is very easy.

http://www.youtube.com/watch?v=BCUUJOt63o4&feature=plcp
[Sprint Samsung Galaxy S III] zanderman112:
Thanks man, but I already have my video in the OP on how to enable/disable them :)

Posted by Mr. Z's Galaxy S3.
[Sprint Samsung Galaxy S III] android88:
Oh, Sorry man. I only saw the video showing off the multiple profiles. I didn't see the how-to vid.
[Sprint Samsung Galaxy S III] zanderman112:
My video did both :) but hey, thanks anyways. Always good when people contribute to the community!

Posted by Mr. Z's Galaxy S3.
[Sprint Samsung Galaxy S III] peanut1596:
I'm doing this on my Asus tf300t tablet which is running job, but when I attempt it, I'm getting a segmentation fault error.

Help?

EDIT: never mind. I used an alternate terminal which worked like a charm
[Sprint Samsung Galaxy S III] zanderman112:
Glad you got it working :)

Posted by Mr. Z's HP Touchpad.
[Sprint Samsung Galaxy S III] peanut1596:
Just in case anybody is interested, when you change the name of the guest account, it works. Don't change primary or it won't boot. Soft bricked me.
[Sprint Samsung Galaxy S III] ThePresence:
Hi I can't change wallpaper of second user any help??
[Sprint Samsung Galaxy S III] KinGJamP:
In miui_jb, the other user will not appear on the menu. Would fix this?

He usually creates. When I give the command "pm-users list" created users appear, but not on the menu.
[Sprint Samsung Galaxy S III] rajivshahi:
HI this is a nice development. i guess we can implement more features in future... and get two separate users account which doesn't have any connections... just check the app below which does it... hopefully we can see some of those features in here:D

https://play.google.com/store/apps/details?id=fahrbot.apps.switchme&hl=en
[Sprint Samsung Galaxy S III] valkandroid:
Error: couldn't create User.

Hi all!

I'm trying to create a restricted access user account for my 3-year-old.

Just installed Terminal Emulator and typed in "su", then "pm create-user NAME_OF_USER", but I haven't been able to go any further as I got stuck after "Error: couldn't create user". I surely must have missed something, but then what ...?

I rooted the GN with Nexus Root Toolkit under Windows 7 64bits and flashed the CM 10.1 with TWRP if that's of any help to understand why I can't go any further ...

--

Samsung Galaxy Nexus Maguro yakju

CyanogeMod 10.1 w/ TWRP
[Sprint Samsung Galaxy S III] EndlessDissent:
Well, CM10.1 is Android 4.2, so you shouldn't need this method to create a new user. Support is completely built in. As for how to set it up, I have no idea. I looked through the settings and couldn't find anything. Maybe Google or someone on these forums can help.
[Sprint Samsung Galaxy S III] valkandroid:
Built-in multiple users for tablets only ...

For tablets only, that is! And I'm using a Samsung Galaxy Nexus.

--

Samsung Galaxy Nexus Maguro yakju

CyanogeMod 10.1 w/ TWRP
[Sprint Samsung Galaxy S III] rajivshahi:
Well the method described here only works with 4.1 and the link I posted above has issues with supersu in 4.2 .

If its for a 3 year old I would say use some home launcher which can hide apps... And just hide all app like settings, bank app call text, and so on so he/she can only open the app you want him/her to have access to
[Sprint Samsung Galaxy S III] zanderman112:
Technically, the steps in the OP work on 4.1, 4.1.1, and 4.1.2. I haven't tried 4.2 on any of my devices, because it isn't stable yet.

The steps should technically work though, unless the commands changed in 4.2. I have no idea honestly.
[Sprint Samsung Galaxy S III] SferaDev:
It doesn't works for me. Also doesn't works user management app in 4.2!
[Sprint Samsung Galaxy S III] zanderman112:
Then that means the commands are different. Or taken out completely, as they were probably only meant for testing purposes anyways.

I'm sure there is a way, I just don't know yet.
[Sprint Samsung Galaxy S III] SferaDev:
Yes commands may be changed by Google when adding the option natively to aosp tablets. Phones are not supported.
[Sprint Samsung Galaxy S III] SamsungGalaxyFan:
Will this work on the stock Sprint ROM?
[Sprint Samsung Galaxy S III] rajivshahi:


It will if you are rooted and if you have os versions less than 4.2.X
[Sprint Samsung Galaxy S III] snotrocket22:
Max Users

The reason you cant create a new user, and I'm having the same issue, is that currently CM 10.1 only supports one user. You can check this by typing in Terminal Emulator: pm get-max-users. still working on a way to change the number of max users.
[Sprint Samsung Galaxy S III] zanderman112:
Re: [HOWTO]Enable Multiple Users in Android 4.1.x *NOT 4.2*

If you find a way to add more in 4.2.x please post it here! I'd love to know myself.
[Sprint Samsung Galaxy S III] SferaDev:
Re: [HOWTO]Enable Multiple Users in Android 4.1.x *NOT 4.2*

In 4.2 Multi user is officially supported by Google! And they only allow it for tablets!
[Sprint Samsung Galaxy S III] zanderman112:
Re: [HOWTO]Enable Multiple Users in Android 4.1.x *NOT 4.2*

Which is why a workaround needs to be figured out or created :D
[Sprint Samsung Galaxy S III] Gazebo_Sj:
Why won't it work?

What am i doing wrong?

I click on the Terminal Emulator, then type su, then pm create-user Guest

Then it comes up saying Error, Couldn't create user.

What do I do?
[Sprint Samsung Galaxy S III] zanderman112:
Re: [HOWTO]Enable Multiple Users in Android 4.1.x *NOT 4.2*

Are you on Android 4.1? If not, then this won't work.
[Sprint Samsung Galaxy S III] Gazebo_Sj:
Oh, I'm running 4.2.1!

Thanks for your help :)
[Sprint Samsung Galaxy S III] zanderman112:
No problem sir(or ma'am, never know!!)

Maybe i should add a bold disclaimer in the first post instead of just using the title lol
[Sprint Samsung Galaxy S III] ol@fson:
Seems like they're on the way ...

http://xdaforums.com/showthread.php?t=2018146
[Sprint Samsung Galaxy S III] mildlydisturbed:
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 ;)
[Sprint Samsung Galaxy S III] zanderman112:
Re: [HOWTO]Enable Multiple Users in Android 4.1, possibly 4.2

I just tried on my Epic 4G, and this definitely worked! Will be adding to OP. Thanks!
[Sprint Samsung Galaxy S III] SferaDev:
Re: [HOWTO]*NOW 4.2* Enable Multiple Users in Android 4.2

For those who doesn't to worry to do it wrong I've coded a app of this procedure.

Link: http://xdaforums.com/showthread.php?t=2187934

See you!
[Sprint Samsung Galaxy S III] quack75:
Hello,

I installed your app on my Galaxy S I9000 with cm10.1m2 and after performing the procedures and install the User Manager, the situation is this:

-in the options menu is output the tab USERS

-I can create new users and tapping them, I can configure them after a reboot

but ...

when I am the second user I can not in any way back to the primary user (nothing appears in the menu power), the only way is to restart the device to return to being the primary and is no longer available the tab users. I then run the wizard again to see the Users tab from which, however, I can only delete guest users and nothing else.

User Manager creates new users and guests enough but does not display them, let alone manage them.

All this means that this is useless for me, or I'm wrong something?

any help is appreciated
[Sprint Samsung Galaxy S III] SferaDev:
Re: [HOWTO]*NOW 4.2* Enable Multiple Users in Android 4.2

Have you tried to long press user and switch?

If not I'll stop referring to um and recreating the terminal in my app!

See you!
[Sprint Samsung Galaxy S III] quack75:
R: [HOWTO]*NOW 4.2* Enable Multiple Users in Android 4.2

I have solved the problem it's only a tick in a power menu options :p

Sorry for my question, I'll try again all and then I refer ;)

Inviato dal mio GT-I9000 con Tapatalk 2
[Sprint Samsung Galaxy S III] SferaDev:
Re: [HOWTO]*NOW 4.2* Enable Multiple Users in Android 4.2

Strange, today (if I have time) I'll try to push an update with the ability to create and switch between users!

See you and thanks!
[Sprint Samsung Galaxy S III] quack75:
R: [HOWTO]*NOW 4.2* Enable Multiple Users in Android 4.2

Edit:

I have modified my post too slowly when I has the illuminated idea :D

Inviato dal mio GT-I9000 con Tapatalk 2
[Sprint Samsung Galaxy S III] SferaDev:
Don't worry! But I'll also improve my app with some newer functions!
[Sprint Samsung Galaxy S III] zanderman112:
Added the link to your app in the OP. Thanks for your contribution to the community :D
[Sprint Samsung Galaxy S III] SferaDev:
Thanks, but remember it's not a Google supported feature but I'll continue working on it!

See you!
[Sprint Samsung Galaxy S III] monstaX:
Script

I enjoy multiple users in case someone wants to use my phone and i wanna limit them to calls and internet, because I wouldnt want anyone seeing my texts. Therefore, I use this alot. I found it suckish that this wouldnt stick between reboots on 4.2.2, at least not for me. So i decided to create the smallest script in the world!!!!! First download SManager. Make sure you have a root explorer and a terminal emulator. Assuming

Second, open Es File Explorer and create a new file and name it "users.sh". Edit it with a text editor and type

#!system/bin/sh
setprop fw.max_users 5

Save after this of course as "users.sh"

Third, go to terminal emulator and type

su
chmod 755 /storage/emulated/0/users.sh

Assuming the path to "users.sh" is " /storage/emulated/0/users.sh"

Next, open SManager and click Browse as root.

Navigate to "users.sh" through the Smanager file explorer

Once "users.sh" is found, click on it. Then make sure "is script" is ticked and the icon for superuser and run at boot are lit up.

GO ahead and hit save and you should be done.

All this is assuming you already have at least one more user other than primary already setup.

This will set the Users tab in settings to come up everytime your phone boots up.

REMEMBER TO SWITCH USERS ON 4.2 YOU MUST HAVE Auto-ROTATE ENABLED AND ROTATE YOUR LOCKSCREEN TO LANDSCAPE

If you feel this is too hard for you, shoot me a PM and Ill be glad to help. OR if you have any other questions. HAVE FUN!!!!!
[Sprint Samsung Galaxy S III] H0w4rd:
It doesn't work on MK812 :(
[Sprint Samsung Galaxy S III] hdaackda:
Hello [MENTION=4710474]SferaDev[/MENTION], any update on your app bro??

I also can't switch users!! looking forward
[Sprint Samsung Galaxy S III] SferaDev:
In theory (works on CM10.1) after reboot appears the users menu in settings and works 100%.

Could anyone try it on AOSP based Rom?

Sent by the force with a CM10.1 device!
[Sprint Samsung Galaxy S III] quack75:
After running the app in the setting you can create a new user (because the app proposals to manage the users not working for me), but to switch you must to enable the option in power menu option and manage the users with power button, this is the only way that i have found, also when i reboot my phone the settings to create/delete users disappears and to have it again i have to run again the application.

I hope to be helpful :highfive:
[Sprint Samsung Galaxy S III] Ba7rani123:
It works on my note 10.1 :D

Even the whatsapp has seperate data !! :D

I checked the settings of the guest it appears he has all the settings and i even uninstalled an app but not a big issue, i have 4.1.2 and i think it will take a long time til samaung update it to 4.2.2 or maybe directly to 4.3/5.0 .

Thanks alot for the tutorial and user managment app :D

Sent from my GT-N8000
[Sprint Samsung Galaxy S III] MaKTaiL:
Can anyone test if this will work with Android 4.3 now that Multi User is officially out?
[Sprint Samsung Galaxy S III] tfngwena:
I manage social media profiles and this feature has just made my life so much easier. :laugh:

Thank you.
[Sprint Samsung Galaxy S III] Thenetstriker:
I've tried to enable the multi user function on my Sony Xperia T with CyanogenMod 10.2, but every time I try to create a new user I get the following error in Logcat:

08-28 13:11:12.234: E/AndroidRuntime(6717): FATAL EXCEPTION: Thread-570
08-28 13:11:12.234: E/AndroidRuntime(6717): java.lang.NullPointerException
08-28 13:11:12.234: E/AndroidRuntime(6717):	at android.os.Parcel.readException(Parcel.java:1437)
08-28 13:11:12.234: E/AndroidRuntime(6717):	at android.os.Parcel.readException(Parcel.java:1385)
08-28 13:11:12.234: E/AndroidRuntime(6717):	at android.os.IUserManager$Stub$Proxy.createUser(IUserManager.java:311)
08-28 13:11:12.234: E/AndroidRuntime(6717):	at android.os.UserManager.createUser(UserManager.java:386)
08-28 13:11:12.234: E/AndroidRuntime(6717):	at com.android.settings.users.UserSettings.createTrustedUser(UserSettings.java:365)
08-28 13:11:12.234: E/AndroidRuntime(6717):	at com.android.settings.users.UserSettings.access$1700(UserSettings.java:74)
08-28 13:11:12.234: E/AndroidRuntime(6717):	at com.android.settings.users.UserSettings$11.run(UserSettings.java:578)
08-28 13:11:12.234: W/ActivityManager(636): Force finishing activity com.android.settings/.SubSettings

How can I solve this error?

Edit: I found a solution for this problem. Some of my apps where not installed properly, so the error occured in Settings.java while copying the app data to the new User. I just reinstalled the apps and then it worked.