Android12 MTK 去掉多用户

1、需求:

(1)去掉设置中系统--多用户

(2)去掉下拉菜单中多用户按钮

2、解决

路径:***/frameworks/base/core/java/android/os/UserManager.java

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;
    }
相关推荐
赏金术士12 小时前
Kotlin ViewModel
android·kotlin
vistaup13 小时前
kotlin 二维码实现高斯模糊
android·kotlin
愈努力俞幸运14 小时前
function calling与mcp
android·数据库·redis
阿巴斯甜15 小时前
LeakCanary
android
阿巴斯甜15 小时前
compose
android
阿巴斯甜15 小时前
Glide
android
-SOLO-15 小时前
使用Perfetto debug trace查看超时slice
android
阿巴斯甜15 小时前
Retrofit
android
阿巴斯甜16 小时前
OkHttp
android
阿巴斯甜16 小时前
Flow
android