Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,769,165 Members 37,608 Now Online
XDA Developers Android and Mobile Development Forum

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

Tip us?
 
durancharles27
Old
(Last edited by durancharles27; 26th March 2014 at 06:16 PM.) Reason: Safety warning
#1  
durancharles27's Avatar
Member - OP
Thanks Meter 31
Posts: 35
Join Date: Sep 2013
Default [GUIDE][4.1+] Enabling User Profiles in Jelly Bean (below 4.3), No Apps Needed

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.
The Following 16 Users Say Thank You to durancharles27 For This Useful Post: [ Click to Expand ]
 
DarkFalcon
Old
#2  
DarkFalcon's Avatar
Senior Member
Thanks Meter 651
Posts: 700
Join Date: Nov 2012
Location: Pune
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 more you explain it, the more I don't understand it"
-Mark Twain

My Device:
 
Sony Xperia Sola {pepper}

Stock JB 4.1

Modified Munjeni's JB Kernel

The Following 2 Users Say Thank You to DarkFalcon For This Useful Post: [ Click to Expand ]
 
durancharles27
Old
#3  
durancharles27's Avatar
Member - OP
Thanks Meter 31
Posts: 35
Join Date: Sep 2013
Quote:
Originally Posted by cpkunki View Post
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.
 
DarkFalcon
Old
#4  
DarkFalcon's Avatar
Senior Member
Thanks Meter 651
Posts: 700
Join Date: Nov 2012
Location: Pune
Quote:
Originally Posted by durancharles27 View Post
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
"The more you explain it, the more I don't understand it"
-Mark Twain

My Device:
 
Sony Xperia Sola {pepper}

Stock JB 4.1

Modified Munjeni's JB Kernel

 
SpaceCaker
Old
(Last edited by SpaceCaker; 23rd March 2014 at 10:49 PM.)
#5  
SpaceCaker's Avatar
Recognized Themer / Contributor
Thanks Meter 10542
Posts: 13,179
Join Date: Mar 2011
Location: netherlands
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 ?
 

My Github Click Here
Check My SoundCloud for my music remakes,mixes etc Click Here
Check My Website to find a portfolio and about me Click Here
The Following User Says Thank You to SpaceCaker For This Useful Post: [ Click to Expand ]
 
kinglauryl
Old
#6  
Senior Member
Thanks Meter 288
Posts: 284
Join Date: Nov 2004
Location: Manila
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:	397
Size:	64.9 KB
ID:	2647291  
My works (JBeAnZ Dark and Light / Google™ BeAnZ / BeAnZ 2014 / BeAnZ/Google™ BeAnZ Lite)
The Following User Says Thank You to kinglauryl For This Useful Post: [ Click to Expand ]
 
DarkFalcon
Old
#7  
DarkFalcon's Avatar
Senior Member
Thanks Meter 651
Posts: 700
Join Date: Nov 2012
Location: Pune
Quote:
Originally Posted by kinglauryl View Post
Just did it change the PNGs....working and testing it now.
Can you share that png here?
Even I am using Xperia.
"The more you explain it, the more I don't understand it"
-Mark Twain

My Device:
 
Sony Xperia Sola {pepper}

Stock JB 4.1

Modified Munjeni's JB Kernel

 
kinglauryl
Old
#8  
Senior Member
Thanks Meter 288
Posts: 284
Join Date: Nov 2004
Location: Manila
Quote:
Originally Posted by cpkunki View Post
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
 
My works (JBeAnZ Dark and Light / Google™ BeAnZ / BeAnZ 2014 / BeAnZ/Google™ BeAnZ Lite)
The Following 2 Users Say Thank You to kinglauryl For This Useful Post: [ Click to Expand ]
 
vananuan
Old
(Last edited by vananuan; 25th March 2014 at 02:29 PM.)
#9  
vananuan's Avatar
Member
Thanks Meter 5
Posts: 62
Join Date: Dec 2012
Location: HoChiMinh City
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:	122
Size:	64.4 KB
ID:	2649252  
 
Bingley
Old
#10  
Bingley's Avatar
Senior Member
Thanks Meter 55
Posts: 529
Join Date: Jan 2011
Location: Netherfield
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 View Post
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
Phone: Samsung S4 GT-I9505
Tablet: Lenovo S5000-H

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

Advanced Search
Display Modes