Find Your Device:
Or Continue to Thread: [MOD][GUIDE] ENABLE MULTI-USER…
24th December 2012, 05:46 AM |#2  
monx®'s Avatar
OP Senior Member
Flag ▂ ▃ ▅ ▆ █
Thanks Meter: 6,995
Donate to Me
How To
Tablet vs Phone
Tablet has no Phone nor Messaging function so in this case, switching to other than primary user may cause Phone app ( 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.

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

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

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

<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 :
<?xml version="1.0" encoding="utf-8"?>
< 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"
    < 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" />
Last edited by monx®; 25th December 2012 at 04:31 AM.
The Following 9 Users Say Thank You to monx® For This Useful Post: [ View ]