分享几个常用的adb命令

查看当前正在运行的activity
  • adb shell dumpsys activity activities | sed -En -e '/Stack #/p' -e '/Running activities/,/Run #0/p'
wifi调试
  • adb tcpip 555
  • adb connect {ip}(手机的ip地址)
挂住进程调试
  • adb shell am set-debug-app {package_name}
  • adb shell am clear-debug-app

你可能感兴趣的:(分享几个常用的adb命令)