## 查看当前连接的手机adb devices
## 进入手机shell命令行adb shell进入后,可以使用正常的linux命令
## 退出shellexit## 启动adb服务adb start-server## 停用adb服务adb kill-server
## 无线连接手机手机——关于手机——状态信息——ip地址adb kill-serveradb tcpip 5555adb connect 192.168.1.61
## 查看当前应用的包名(包名就是app的名字)adb shell "dumpsys window w|grep \/|grep name=|sed 's/mSurface(name=//g'|sed 's/)//g'|sed 's/ //g'"
C:\test>adb shell "dumpsys window w|grep /|grep name=|sed 's/mSurface(name=//g'|sed 's/)//g'|sed 's/ //g'"
mSurface=Surface(name=com.meizu.flyme.launcher/com.meizu.flyme.launcher.Launcher
C:\test>adb shell "dumpsys window w|grep /|grep name=|sed 's/mSurface(name=//g'|sed 's/)//g'|sed 's/ //g'"
mSurface=Surface(name=com.meizu.flyme.calculator/com.meizu.flyme.calculator.Calculator
C:\test>adb shell "dumpsys window w|grep /|grep name=|sed 's/mSurface(name=//g'|sed 's/)//g'|sed 's/ //g'"
mSurface=Surface(name=com.tencent.mobileqq/com.tencent.mobileqq.activity.SplashActivity
C:\test>adb shell "dumpsys window w|grep /|grep name=|sed 's/mSurface(name=//g'|sed 's/)//g'|sed 's/ //g'"
mSurface=Surface(name=com.tencent.mobileqq/com.tencent.mobileqq.activity.SplashActivity