在使用uiDevice.executeShellCommand 執行adb shell命令出現問題
想抓取手機的logcat 日志資訊,但是沒有回傳值,不知道是不是這個輸出資訊是動態的原因,請指教。
String logcatCMD1="logcat";
// String logcatCMD2= "dumpsys activity activities";
String line= uiDevice.executeShellCommand(logcatCMD1);
可以執行logcatCMD2 并且有回傳值,執行logcatCMD1卻無反應。
轉載請註明出處,本文鏈接:https://www.uj5u.com/yidong/114211.html
標籤:Android
