Execute adb shell pm list users
can be seen
Users:
UserInfo{0:name:13} running
Where 0 represents user Id, this record indicates that the current running account user id is 0, the user name is a name.
Original link: https: //blog.csdn.net/starhosea/article/details/79052055
adb shell pm list users