C:\Users\Vicky>adb shell dumpsys window windows | grep mCurrent
'grep' 不是內部或外部命令,也不是可運行的程序或批處理文件。
解決方法:在adb shell 后面的內容加上雙引號就不會報錯啦
C:\Users\Vicky>adb shell "dumpsys window windows|grep mCurrent"
mCurrentFocus=Window{cd554b4 u0 com.alibaba.android.rimet/com.alibaba.android.rimet.biz.home.activity.HomeActivity}