5,601,062 Members 48,105 Now Online
XDA Developers Android and Mobile Development Forum

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

Tip us?
 
monx®
Old
(Last edited by monx®; 28th December 2012 at 03:47 PM.)
#1  
monx®'s Avatar
Senior Member - OP
Thanks Meter 5948
Posts: 4,919
Join Date: Jan 2006
Location: ▂ ▃ ▅ ▆ █

 
DONATE TO ME
Lightbulb [MOD][GUIDE] ENABLE MULTI-USER ON ANDROID 4.2.x - PHONE MODE

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
10 WM DEVICES > ACE > PYRAMID> SGS II > SHOOTERu + ENDEAVORu > NOTE²
The Following 10 Users Say Thank You to monx® For This Useful Post: [ Click to Expand ]
 
monx®
Old
(Last edited by monx®; 25th December 2012 at 03:31 AM.)
#2  
monx®'s Avatar
Senior Member - OP
Thanks Meter 5948
Posts: 4,919
Join Date: Jan 2006
Location: ▂ ▃ ▅ ▆ █

 
DONATE TO ME
Default 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>
10 WM DEVICES > ACE > PYRAMID> SGS II > SHOOTERu + ENDEAVORu > NOTE²
The Following 7 Users Say Thank You to monx® For This Useful Post: [ Click to Expand ]
 
kryptoner
Old
#3  
Senior Member
Thanks Meter 370
Posts: 1,728
Join Date: Apr 2011
Where is the link. .. waiting since six hours. ..

Sent from my GT-N7100 using xda app-developers app
 
monx®
Old
#4  
monx®'s Avatar
Senior Member - OP
Thanks Meter 5948
Posts: 4,919
Join Date: Jan 2006
Location: ▂ ▃ ▅ ▆ █

 
DONATE TO ME
Quote:
Originally Posted by kryptoner View Post
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²
10 WM DEVICES > ACE > PYRAMID> SGS II > SHOOTERu + ENDEAVORu > NOTE²
 
raman21raman
Old
#5  
Senior Member
Thanks Meter 78
Posts: 351
Join Date: Jun 2008
Location: home
Red face wowwww waiting for this badly mann..

thanxx tonsss bro./.. waiting for it.. :P
DEVICES:HTC DESIRE HD>> LG OPTIMUS 3D>> HTC EVO 3D>> AT&T GALAXY NOTE>> SAMSUNG GALAXY S3 (MARBLE WHITE) .....>> HTC ONE X >> SAMSUNG GALAXY S3 (PEBBLE BLUE) LOL
>> SAMSUNG GALAXY NOTE II And HERE IS THE BEST PHONE>>> HTC ONE DEVELOPERS EDITIONAnd SAMSUNG GALAXY S4.. woww
 
Simone
Old
#6  
Simone's Avatar
Senior Member
Thanks Meter 686
Posts: 1,521
Join Date: Jan 2012
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

ROM: Android Revolution HD

Kernel: Devil

Recovery: TWRP 2.7.0.2
The Following 2 Users Say Thank You to Simone For This Useful Post: [ Click to Expand ]
 
leeroy1034
Old
#7  
Member
Thanks Meter 12
Posts: 43
Join Date: Aug 2010
Location: BC
What theme are you using it looks beautiful ?
 
monx®
Old
#8  
monx®'s Avatar
Senior Member - OP
Thanks Meter 5948
Posts: 4,919
Join Date: Jan 2006
Location: ▂ ▃ ▅ ▆ █

 
DONATE TO ME
Quote:
Originally Posted by SMNE View Post
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 View Post
What theme are you using it looks beautiful ?
Stock. 4.2.1 wallpaper + Nova Launcher.
10 WM DEVICES > ACE > PYRAMID> SGS II > SHOOTERu + ENDEAVORu > NOTE²
 
monx®
Old
#9  
monx®'s Avatar
Senior Member - OP
Thanks Meter 5948
Posts: 4,919
Join Date: Jan 2006
Location: ▂ ▃ ▅ ▆ █

 
DONATE TO ME
thread updated with complete info.
10 WM DEVICES > ACE > PYRAMID> SGS II > SHOOTERu + ENDEAVORu > NOTE²
The Following User Says Thank You to monx® For This Useful Post: [ Click to Expand ]
 
wtfshouldidonow
Old
#10  
wtfshouldidonow's Avatar
Senior Member
Thanks Meter 135
Posts: 390
Join Date: Dec 2011
@monx, is there an easier way for beginners or 'noobs' to do this?

Sent from my GT-N7100 using xda premium
Don't forget to press Thanks if I helped!

The Following User Says Thank You to wtfshouldidonow For This Useful Post: [ Click to Expand ]
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes