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