其他分享
首页 > 其他分享> > adb 常用命令总结

adb 常用命令总结

作者:互联网

adb install 
adb -s 设备号 install apk包
adb kill-server //结束adb服务
adb start-server //启动adb服务
adb uninstall
adb devices
List of devices attached
6HJDU20416008478	device
adb shell pm list package
adb shell am monitor
Monitoring activity manager...  available commands:
(q)uit: finish monitoring
** Activity starting: com.tencent.qqmusic
** Activity starting: com.netease.cloudmusic
quit

其中: com.tencent.qqmusic 和 com.netease.cloudmusic 就是QQ音乐和云村的应用包名

方法二 启动APP,使用 adb shell "dumpsys window | grep mCurrentFocus" 命令,查看启动应用的包名信息,以及Activity的信息

adb shell "dumpsys window | grep mCurrentFocus"
  mCurrentFocus=Window{9d9a4e1 u0 com.netease.cloudmusic/com.netease.cloudmusic.activity.MainActivity}

云村包名: com.netease.cloudmusic
Activity: com.netease.cloudmusic.activity.MainActivity
adb logcat > 电脑文件夹路径 
adb push 电脑路径 手机路径
adb pull 手机路径 电脑路径

标签:总结,包名,cloudmusic,shell,adb,常用命令,netease,com
来源: https://www.cnblogs.com/yimeng123/p/15307943.html