Home > Mobile >  Android uiautomator2.0 uidevice. ExecuteShellCommand return values
Android uiautomator2.0 uidevice. ExecuteShellCommand return values

Time:10-06

In the use of uiDevice. ExecuteShellCommand perform the adb shell command problems
Want to grab phone logcat log information, but there is no return value, don't know if the output information is dynamic, give advice or comments please,
String logcatCMD1="logcat";

//String logcatCMD2="dumpsys activity activities".

The String line=uiDevice. ExecuteShellCommand (logcatCMD1);
Can perform logcatCMD2 and returns a value, the execution logcatCMD1 but no response,
  • Related