Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

[GUIDE][4.1+] Enabling User Profiles in Jelly Bean (below 4.3), No Apps Needed

OP durancharles27

23rd March 2014, 12:55 AM   |  #1  
durancharles27's Avatar
OP Member
Thanks Meter: 32
 
35 posts
Join Date:Joined: Sep 2013
Warning: Do a backup before doing this!

This is how to enable User Profiles in Jelly Bean (below 4.3).

1. Decompile Settings.apk
2. Go to res/values/strings.xml

Add this code:

Code:
<string name="multi_user_profiles">Users</string>
For example:



3. Go to res/xml/settings_headers.xml

Add this code:

Code:
<header android:icon="@drawable/ic_settings_multiuser" android:title="@string/multi_user_profiles" android:fragment="com.android.settings.users.UserSettings" />
For example:



4. Download the attached, "user icon": http://www.mediafire.com/download/ov.../user_icon.zip

5. Extract user_icon.zip, inside is a png image file named "ic_settings_multiuser.png"

6. Put "ic_settings_multiuser.png" into the drawable-hdpi folder or your main image folder that your device uses (e.g. drawable-hdpi, drawable-mdpi, drawable-ldpi, drawable-xdpi, drawable-xxdpiI)

For example:



7. Recompile Settings.apk

8. Push the new Settings.apk into system/app and set permissions to rw-r-r

9. Reboot your phone

The end result should be like this:







To activate: Open the Power Menu (e.g. Hold Down the Power Button)



Note: You won't be able to fully restrict your contents from the Guest profile. That's why before establishing a Guest profile, you should choose the apps that should be restricted from the Guest profile.
Last edited by durancharles27; 26th March 2014 at 07:16 PM. Reason: Safety warning
The Following 16 Users Say Thank You to durancharles27 For This Useful Post: [ View ]
23rd March 2014, 06:47 AM   |  #2  
DarkFalcon's Avatar
Senior Member
Flag Pune
Thanks Meter: 711
 
773 posts
Join Date:Joined: Nov 2012
More
Thanks @durancharles27 !
I want to give it a try!

Before that, I have few questions to ask -
1. Will this surely work on 4.1 Xperia rom?

2. Doesn't this need any smali editing?

Sent from my MT27i using XDA Premium 4 mobile app
The Following 2 Users Say Thank You to DarkFalcon For This Useful Post: [ View ]
23rd March 2014, 07:22 AM   |  #3  
durancharles27's Avatar
OP Member
Thanks Meter: 32
 
35 posts
Join Date:Joined: Sep 2013
Quote:
Originally Posted by cpkunki

Thanks @durancharles27 !
I want to give it a try!

Before that, I have few questions to ask -
1. Will this surely work on 4.1 Xperia rom?

2. Doesn't this need any smali editing?

Sent from my MT27i using XDA Premium 4 mobile app

1. The only requirement for this to work is to have Android 4.1

2. It doesn't need any smali editing.
23rd March 2014, 07:30 AM   |  #4  
DarkFalcon's Avatar
Senior Member
Flag Pune
Thanks Meter: 711
 
773 posts
Join Date:Joined: Nov 2012
More
Quote:
Originally Posted by durancharles27

1. The only requirement for this to work is to have Android 4.1

2. It doesn't need any smali editing.

Ok thanks!
Will try it soon!

Sent from my MT27i using XDA Premium 4 mobile app
23rd March 2014, 11:47 PM   |  #5  
SpaceCaker's Avatar
Recognized Themer / Contributor
Flag netherlands
Thanks Meter: 10,809
 
13,386 posts
Join Date:Joined: Mar 2011
More
hmm i tried to launch UserSettings

but it fcd my apk :P

will take a logcat asap.

i did found the usersettings smali inside the settings apk but in manifest i couldnt find it o.O

weird though xD

<bool name="enable_user_management">false</bool> maybe need to set this to true ?
Last edited by SpaceCaker; 23rd March 2014 at 11:49 PM.
The Following User Says Thank You to SpaceCaker For This Useful Post: [ View ]
24th March 2014, 11:33 AM   |  #6  
Senior Member
Flag Manila
Thanks Meter: 292
 
284 posts
Join Date:Joined: Nov 2004
More
Info 2 Working
Just did it change the PNGs....working and testing it now.
Attached Thumbnails
Click image for larger version

Name:	Users2.jpg
Views:	421
Size:	64.9 KB
ID:	2647291  
The Following User Says Thank You to kinglauryl For This Useful Post: [ View ]
24th March 2014, 11:45 AM   |  #7  
DarkFalcon's Avatar
Senior Member
Flag Pune
Thanks Meter: 711
 
773 posts
Join Date:Joined: Nov 2012
More
Quote:
Originally Posted by kinglauryl

Just did it change the PNGs....working and testing it now.

Can you share that png here?
Even I am using Xperia.
25th March 2014, 05:51 AM   |  #8  
Senior Member
Flag Manila
Thanks Meter: 292
 
284 posts
Join Date:Joined: Nov 2004
More
Info 2
Quote:
Originally Posted by cpkunki

Can you share that png here?
Even I am using Xperia.

Here's the PNG I created myself. It will adapt to the color of your theme.
Attached Images
 
The Following 2 Users Say Thank You to kinglauryl For This Useful Post: [ View ]
25th March 2014, 03:27 PM   |  #9  
vananuan's Avatar
Member
Flag HoChiMinh City
Thanks Meter: 5
 
62 posts
Join Date:Joined: Dec 2012
More
Thank you !
this is very good , i have completed on my device LG-E970 .
but i have a question : how to turn on PIN ?
Attached Thumbnails
Click image for larger version

Name:	2014-03-25-20-22-45.jpg
Views:	129
Size:	64.4 KB
ID:	2649252  
Last edited by vananuan; 25th March 2014 at 03:29 PM.
25th March 2014, 04:19 PM   |  #10  
Bingley's Avatar
Senior Member
Flag Netherfield
Thanks Meter: 56
 
539 posts
Join Date:Joined: Jan 2011
More
Bloomin' heck, this is exactly what I've been looking for for my new Lenovo S5000 tablet - thanks!

---------- Post added at 02:19 PM ---------- Previous post was at 01:30 PM ----------

Quote:
Originally Posted by Bingley

Bloomin' heck, this is exactly what I've been looking for for my new Lenovo S5000 tablet - thanks!

Argh, I get errors installing framework-res via apktool, and then errors recompiling settings.apk. I wonder if anyone would be able to apply the OP's xml modifications to my files out of kindness?

https://www.dropbox.com/sh/blbhdm32bw223qu/Pze0WIcto8 would be my framework & settings if so

Post Reply Subscribe to Thread

Tags
4.1, guide, restricted profiles, settings, user
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes