在使用uiDevice.executeShellCommand 执行adb shell命令出现问题
想抓取手机的logcat 日志信息,但是没有返回值,不知道是不是这个输出信息是动态的原因,请指教。
String logcatCMD1="logcat";
// String logcatCMD2= "dumpsys activity activities";
String line= uiDevice.executeShellCommand(logcatCMD1);
可以执行logcatCMD2 并且有返回值,执行logcatCMD1却无反应。