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

[MOD][GUIDE] ENABLE MULTI-USER ON ANDROID 4.2.x - PHONE MODE

OP monx®

24th December 2012, 05:40 AM   |  #1  
monx®'s Avatar
OP Senior Member
Flag ▂ ▃ ▅ ▆ █
Thanks Meter: 6,725
 
5,259 posts
Join Date:Joined: Jan 2006
Donate to Me
We know Android 4.2 multi-user capable for Tablet. Its also looks awesome on our phone.
(Currently running CM10.1 Nightlies 121223)



ROM THREAD HERE
Last edited by monx®; 28th December 2012 at 04:47 PM.
The Following 10 Users Say Thank You to monx® For This Useful Post: [ View ]
24th December 2012, 05:46 AM   |  #2  
monx®'s Avatar
OP Senior Member
Flag ▂ ▃ ▅ ▆ █
Thanks Meter: 6,725
 
5,259 posts
Join Date:Joined: Jan 2006
Donate to Me
How To
BASIC INFO
Tablet vs Phone
Tablet has no Phone nor Messaging function so in this case, switching to other than primary user may cause Phone app (com.android.phone) force close. This is normal & make sense bcos we dont share phone to others. Whenever there is incoming call in other(s)user account, phone will ring as usual + LED notification but u need to switch to primary account immediately to pick up or will see miss called notification in primary account. Any activity related to Phone will force close in others account (outgoing call, ussd dialing, etc)

SMS messaging can be sent thru other(s) account but any received sms only viewable in primary account.

*Above info is correct when posted until other dev(s) make it work other way round.

MODDING
framework-res.apk >
\res\values\integers.xml (change to max users limit. 2 is enough IMHO, but i made it 3 just for fun)
Quote:

<integer name="config_multiuserMaximumUsers">3</integer>

\res\values\bools.xml (basically Tablet is in landscape thus user switching only visible in landscape in LockScreen. at least in current CM10.1 rom to date)
Quote:

<bool name="config_enableLockScreenRotation">true</bool>

To make user switching visible in portrait LockScreen mode, manual layout modding is needed.
\res\layout-port\keyguard_host_view.xml (add this line before second </FrameLayout> to make more layout customization possible)
Quote:

<include layout="@layout/keyguard_multi_user_selector" />

ADD \res\layout-port\keyguard_multi_user_selector.xml manually to customize the user switch location in portrait LockScreen.

Here is mine as example :
Code:
<?xml version="1.0" encoding="utf-8"?>
<com.android.internal.policy.impl.keyguard.KeyguardMultiUserSelectorView android:layout_gravity="bottom" android:orientation="horizontal" android:id="@id/keyguard_user_selector" android:visibility="gone" android:layout_width="fill_parent" android:layout_height="wrap_content" android:contentDescription="@string/keyguard_accessibility_user_selector" android:layout_childType="userSwitcher"
  xmlns:androidprv="http://schemas.android.com/apk/res/android"
  xmlns:android="http://schemas.android.com/apk/res/android">
    <com.android.internal.policy.impl.keyguard.KeyguardLinearLayout android:layout_gravity="bottom|center" android:orientation="horizontal" android:id="@id/keyguard_users_grid" android:layout_width="wrap_content" android:layout_height="@dimen/keyguard_avatar_size" android:layout_marginBottom="400.0dip" />
</com.android.internal.policy.impl.keyguard.KeyguardMultiUserSelectorView>
Last edited by monx®; 25th December 2012 at 04:31 AM.
The Following 8 Users Say Thank You to monx® For This Useful Post: [ View ]
24th December 2012, 03:21 PM   |  #3  
Senior Member
Thanks Meter: 379
 
1,747 posts
Join Date:Joined: Apr 2011
Where is the link. .. waiting since six hours. ..

Sent from my GT-N7100 using xda app-developers app
24th December 2012, 05:10 PM   |  #4  
monx®'s Avatar
OP Senior Member
Flag ▂ ▃ ▅ ▆ █
Thanks Meter: 6,725
 
5,259 posts
Join Date:Joined: Jan 2006
Donate to Me
Quote:
Originally Posted by kryptoner

Where is the link. .. waiting since six hours. ..

Sent from my GT-N7100 using xda app-developers app

I've no access to my laptop. i will update thread on guide how to do it whenever i can.

√ xda-premium | note²
24th December 2012, 05:54 PM   |  #5  
Senior Member
Flag home
Thanks Meter: 78
 
358 posts
Join Date:Joined: Jun 2008
More
Red face wowwww waiting for this badly mann..
thanxx tonsss bro./.. waiting for it.. :P
24th December 2012, 09:26 PM   |  #6  
Simone's Avatar
Senior Member
Thanks Meter: 732
 
1,692 posts
Join Date:Joined: Jan 2012
More
Wow this is nice, I'm guessing but it looks like for each user, there is a selected enabled applications if the owner wishes?

The Note 2 is slowly replacing the computer
The Following 2 Users Say Thank You to Simone For This Useful Post: [ View ]
25th December 2012, 01:23 AM   |  #7  
Member
Flag BC
Thanks Meter: 12
 
43 posts
Join Date:Joined: Aug 2010
More
What theme are you using it looks beautiful ?
25th December 2012, 04:36 AM   |  #8  
monx®'s Avatar
OP Senior Member
Flag ▂ ▃ ▅ ▆ █
Thanks Meter: 6,725
 
5,259 posts
Join Date:Joined: Jan 2006
Donate to Me
Quote:
Originally Posted by SMNE

Wow this is nice, I'm guessing but it looks like for each user, there is a selected enabled applications if the owner wishes?

That function was in 4.1.2 (unfinished multi-user support )
In 4.2.1 other user hv to install app manually. Currently only ChainsDD's Superuser support multi superuser.

Quote:
Originally Posted by leeroy1034

What theme are you using it looks beautiful ?

Stock. 4.2.1 wallpaper + Nova Launcher.
25th December 2012, 04:37 AM   |  #9  
monx®'s Avatar
OP Senior Member
Flag ▂ ▃ ▅ ▆ █
Thanks Meter: 6,725
 
5,259 posts
Join Date:Joined: Jan 2006
Donate to Me
thread updated with complete info.
The Following User Says Thank You to monx® For This Useful Post: [ View ]
26th December 2012, 06:10 AM   |  #10  
wtfshouldidonow's Avatar
Senior Member
Flag Quezon City
Thanks Meter: 141
 
396 posts
Join Date:Joined: Dec 2011
More
@monx, is there an easier way for beginners or 'noobs' to do this?

Sent from my GT-N7100 using xda premium

The Following User Says Thank You to wtfshouldidonow For This Useful Post: [ View ]
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes