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

Search This thread
Sep 10, 2013
36
33
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/ov1lqrzgiz1zjfn/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:

SpaceCaker

Senior Member
Mar 26, 2011
13,545
10,904
netherlands
www.youtube.com
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 ? :p
 
Last edited:
  • Like
Reactions: durancharles27

kinglauryl

Senior Member
Nov 10, 2004
284
299
Manila
Working

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

Attachments

  • Users2.jpg
    Users2.jpg
    64.9 KB · Views: 545
  • Like
Reactions: ChinmayKunkikar

vananuan

Senior Member
Dec 16, 2012
68
5
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 ?
2014-03-25-20-22-45.jpg
 

Attachments

  • 2014-03-25-20-22-45.jpg
    2014-03-25-20-22-45.jpg
    64.4 KB · Views: 151
Last edited:

Bingley

Senior Member
Jan 6, 2011
1,071
186
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 ----------

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 :)
 

Ticklefish

Inactive Recognized Themer
Oct 27, 2011
6,773
8,633
Hampshire, UK
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 ----------



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 :)

Well, I can certainly take a look for you. I'm downloading your files now. What sort of errors are you getting?
 

Ticklefish

Inactive Recognized Themer
Oct 27, 2011
6,773
8,633
Hampshire, UK
Thanks. Although don't spend too much time, I've just tried https://play.google.com/store/apps/details?id=fahrbot.apps.switchme / Switchme app and now I'm stuck on my bootanimation, without a recovery :/ oops!

Oooh...not good. Hopefully you'll be back to normal soon. :)

---------- Post added at 02:45 PM ---------- Previous post was at 02:43 PM ----------

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 ----------



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 :)

Nope..you need to install more frameworks..

Code:
Decompiling "Settings.apk", 
using "apktool_2.0.0b9.jar" 
 
With Tickle My Android v9.0. 
(tinyurl.com\ticklemyandroid) 

 ----------------

I: Using Apktool 2.0.0-Beta9 on Settings.apk
I: Loading resource table...
W: Skipping "android" package group
I: Loading resource table...
W: Skipping "android" package group
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: C:\Users\Me\apktool\framework\1.apk
I: Regular manifest package...
I: Decoding file-resources...
W: Could not decode attr value, using undecoded value instead: ns=android, name=background, value=0x03010001
W: Could not decode attr value, using undecoded value instead: ns=android, name=background, value=0x03010001
W: Could not decode attr value, using undecoded value instead: ns=android, name=paddingTop, value=0x030a000f
W: Could not decode attr value, using undecoded value instead: ns=android, name=paddingBottom, value=0x030a000f
W: Could not decode attr value, using undecoded value instead: ns=android, name=paddingStart, value=0x030a0010
W: Could not decode attr value, using undecoded value instead: ns=android, name=paddingEnd, value=0x030a0010
W: Could not decode attr value, using undecoded value instead: ns=android, name=background, value=0x03010001
W: Could not decode attr value, using undecoded value instead: ns=android, name=background, value=0x03010001
W: Could not decode attr value, using undecoded value instead: ns=android, name=paddingTop, value=0x030a000f
W: Could not decode attr value, using undecoded value instead: ns=android, name=paddingBottom, value=0x030a000f
W: Could not decode attr value, using undecoded value instead: ns=android, name=paddingStart, value=0x030a0010
W: Could not decode attr value, using undecoded value instead: ns=android, name=paddingEnd, value=0x030a0010
I: Decoding values */* XMLs...
Cleaning up unclosed ZipFile for archive C:\Users\Me\apktool\framework\1.apk
Can't find framework resources for package of id: 3. You must install proper framework files, see project website for more info.

 ----------------

Decompile Not Successful!
 

chevanlol360

Senior Member
Jan 26, 2012
127
37
Am i the only one getting google play force close errors each time i check/uncheck an app from the user profile settings? Doesnt even work, i can still open the apps the i uncheck.
 

Bingley

Senior Member
Jan 6, 2011
1,071
186
Netherfield
Oooh...not good. Hopefully you'll be back to normal soon. :)

---------- Post added at 02:45 PM ---------- Previous post was at 02:43 PM ----------



Nope..you need to install more frameworks

Right, thankfully I've managed to find& flash my original firmware and reroot, so I'm looking at which frameworks I require. Your tool is downloading now, too, it looks easier to use :).
If I can get this working I'll be so happy! :)
 
  • Like
Reactions: Ticklefish

Bingley

Senior Member
Jan 6, 2011
1,071
186
Netherfield
I'm having problems getting adb connecting to my device but have uploaded two more apk files to my Dropbox folder if, again, anyone could kindly decompile, add strings, and recompile - I'd really appreciate it.

Next I'm uninstalling all Android drivers, all adb and apk tools, and starting again haha.
 
Sep 10, 2013
36
33
I'm having problems getting adb connecting to my device but have uploaded two more apk files to my Dropbox folder if, again, anyone could kindly decompile, add strings, and recompile - I'd really appreciate it.

Next I'm uninstalling all Android drivers, all adb and apk tools, and starting again haha.

Your Settings.apk doesn't have a classes.dex file in it.

Look:

x542.png
[/URL][/IMG]

Without classes.dex, you will never be able to decompile.

Which means this apk has been odexed.

You can't decompile an odexed apk.
 
Last edited:

Top Liked Posts

  • There are no posts matching your filters.
  • 16
    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/ov1lqrzgiz1zjfn/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.
    2
    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
    2
    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.
    2
    Thank you !
    this is very good , i have completed on my device LG-E970 .
    but i have a question : how to turn on PIN ?
    2014-03-25-20-22-45.jpg

    you can enable checkbox and content rating by modifying settings. at this point in time i am not sure how to actualy get it to ask for a password but I will have a look into it.

    there is no point at the moment as it wont do anything only allow you to check the box. but it will not create a password.

    decompile Settings.

    Code:
    apktool if framework-res.apk
    apktool if lge-res.apk
    apktool d LGSettings3_2.apk

    open LGSettings3_2\res\xml\user_details.xml

    and remove this from the 2 lines

    Code:
    android:enabled="false"

    so in other words you change this

    Code:
    <CheckBoxPreference android:persistent="false" android:enabled="false" android:title="@string/user_market_requires_pin" android:key="market_requires_pin" />
            <ListPreference android:persistent="false" android:enabled="false" android:entries="@array/user_content_ratings_entries" android:title="@string/user_max_content_rating" android:key="content_rating" android:entryValues="@array/user_content_ratings_values" />

    to this

    Code:
            <CheckBoxPreference android:persistent="false" android:title="@string/user_market_requires_pin" android:key="market_requires_pin" />
            <ListPreference android:persistent="false" android:entries="@array/user_content_ratings_entries" android:title="@string/user_max_content_rating" android:key="content_rating" android:entryValues="@array/user_content_ratings_values" />

    Then recompile

    Code:
    apktool b LGSettings3_2

    and push to your phone

    It would probably be better to set a pattern lock or pin lock.

    then add user profile switch to your lock screen
    1
    ...

    Because..?

    Sent from my C6603 using Tapatalk

    Its actually enabled by default in framework-res
    Decompile framework-res.apk

    apk/res/values/integers.xml
    and look for
    Code:
    <integer name="config_multiuserMaximumUsers">[COLOR="Blue"]1[/COLOR]</integer>
    changing the number highlighted in blue will result in the total number of users in the phone. By default it is 1 & you wont need to do the editing in settings in the OP after you do this. Max Users should be 2, sometimes your Phone app or some other system apps might crash as this Multiuser is intended for tablets.