FORUMS

What Are the Best Looking Apps on Android?

As more developers are updating their apps with Material Design elements, we’re … more

Cyngn Explained: Who’s Cyanogen, What’s Cyanogen OS?

While Cyanogen, Inc has been the source of many headlines lately, there … more

Verizon Moto X 2014 Receives Root On Kitkat 4.4.4

The Verizon Moto X 2014 has finally received root, albeit only on Kitkat 4.4.4 … more

Android 5.1.1 Released, Google Cell Service – XDA TV

Android Lollipop 5.1.1 has been released. That and much more news is covered … more
Post Reply Subscribe to Thread Email Thread

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

22nd March 2014, 11:55 PM |#1  
durancharles27's Avatar
OP Member
Thanks Meter: 32
 
More
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 06:16 PM. Reason: Safety warning
The Following 16 Users Say Thank You to durancharles27 For This Useful Post: [ View ]
 
 
23rd March 2014, 05:47 AM |#2  
DarkFalcon's Avatar
Senior Member
Thanks Meter: 977
 
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, 06:22 AM |#3  
durancharles27's Avatar
OP Member
Thanks Meter: 32
 
More
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, 06:30 AM |#4  
DarkFalcon's Avatar
Senior Member
Thanks Meter: 977
 
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, 10:47 PM |#5  
SpaceCaker's Avatar
Recognized Themer / Contributor
Flag netherlands
Thanks Meter: 10,898
 
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 10:49 PM.
The Following User Says Thank You to SpaceCaker For This Useful Post: [ View ]
24th March 2014, 10:33 AM |#6  
Senior Member
Flag Manila
Thanks Meter: 297
 
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:	437
Size:	64.9 KB
ID:	2647291  
The Following User Says Thank You to kinglauryl For This Useful Post: [ View ]
24th March 2014, 10:45 AM |#7  
DarkFalcon's Avatar
Senior Member
Thanks Meter: 977
 
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, 04:51 AM |#8  
Senior Member
Flag Manila
Thanks Meter: 297
 
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, 02:27 PM |#9  
vananuan's Avatar
Member
Flag HoChiMinh City
Thanks Meter: 5
 
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:	131
Size:	64.4 KB
ID:	2649252  
Last edited by vananuan; 25th March 2014 at 02:29 PM.
25th March 2014, 03:19 PM |#10  
Bingley's Avatar
Senior Member
Flag Netherfield
Thanks Meter: 70
 
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