Quantcast
Channel: xda-developers - Android Software and Hacking General [Developers Only]
Viewing all articles
Browse latest Browse all 3614

[MOD] Add multi-user support to Android 4.2 roms using device overlay (phone)

$
0
0
I dont know if this has already been posted, but I could not find anything that enabled multi-user support directly.

It is fairly simple to add multi-user support to your Android 4.2 rom using the device overlay.

To enable multi-user support you will have to add the following to your config.xml:
<integer name="config_multiuserMaximumUsers">8</integer>

This will enable the Users section in Settings to add/remove new users.

Additionally you will have to modify layout-port/keyguard_host_view.xml, because the layout-port version of keyguard_host_view.xml does not have the multi-user selector.

You will need to add the following to the layout:
<include layout="@layout/keyguard_multi_user_selector"/>

Instead of modifying the layout xml directly you can also just add a modified version of the .xml to your device overlay.

That will add the user selector to the keyguard/lockscreen.

The changes can be found here:
https://github.com/adrian-bl-hox-jb/...ac8617cc9abc9f





In case there is just one user it will not show the user selector in the keyguard/lockscreen.

Regards,

Rob

Viewing all articles
Browse latest Browse all 3614

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>