adb shell的一些用法

一、‘grep‘ 不是内部或外部命令,也不是可运行的程序
或批处理文件。 

处理方式

1. 加引号

adb shell "dumpsys window policy | grep ScreenOn"

2. 换findstr使用

 adb shell dumpsys window policy | findstr isStatusBarKeyguard 

3. 切换用法

adb shell dumpsys window policy^|grep ScreenOn