adb shell settings get secure user_setup_complete
adb shell am get-current-user
adb shell settings --user 12 get secure user_setup_complete
adb shell dumpsys activity service com.android.systemui/.SystemUIService | findstr mIsEnabled
android adb guest user如何创建删除新用户
The key is guest_user_enabled under the table global found at /data/data/com.android.providers.settings/databases/settings.db
adb shell settings put global guest_user_enabled 1
The location of build.prop is /system/build.prop. Open the file, go to the end, create a new line and enter fw.show_multiuserui=0.
adb shell cat /system/build.prop | findstr user
adb pull /system/build.prop
adb shell pm list users
adb shell pm create-user USERID
can switch the user easily provided that you know the USER_ID of the guest/secondary user which you can obtain from /data/system/users/.
adb shell am switch-user USER_ID
fw.max_users