美文网首页跬步集
Android 调试指定用户

Android 调试指定用户

作者: 几千里也 | 来源:发表于2018-07-12 09:09 被阅读3次

To get the list of all the users

adb shell dumpsys user
// or
adb shell pm list users

Create new user

adb shell pm create-user User_Name

To switch between users

adb shell am switch-user User_ID

For example - Specify which user to run as

adb install --user 10 -r '/the/apk/path/debug.apk'
adb shell am start --user 10 -n the.package.name/.MainActivity

相关文章

网友评论

    本文标题:Android 调试指定用户

    本文链接:https://www.haomeiwen.com/subject/uzllpftx.html