# 返回当前用户 id
.\adb.exe shell am get-current-user
.\adb.exe shell cmd activity get-current-user # alternative command
.\adb.exe shell 'dumpsys activity | grep mCurrentUser'
# 当前用户的详细信息
.\adb.exe shell dumpsys user
# 列出所有用户
.\adb.exe shell pm list users
# 列出当前运行的 activity , 其中有对应用户信息
adb shell dumpsys activity