1、需求:
(1)去掉设置中系统–多用户
(2)去掉下拉菜单中多用户按钮
2、解决
路径:***/frameworks/base/core/java/android/os/UserManager.java
/**
* Returns whether this device supports multiple users with their own login and customizable
* space.
* @return whether the device supports multiple users.
*/
public static boolean supportsMultipleUsers() {
/* return getMaxSupportedUsers() > 1
&& SystemProperties.getBoolean("fw.show_multiuserui",
Resources.getSystem().getBoolean(R.bool.config_enableMultiUserUI)); */
return false;
}