日常真实测试环境,远程时,需要给到命令用户,去抓取日志分析
如果应用不能打开:(日志会比较多,文件会比较大)
cmdadb logcat > test.txt
cmd时, 如果应用能打开的前提,不然会提示id越界:
cmdfor /f %p in ('adb shell pidof com.xiaopeng.remotecalibration') do adb logcat --pid=%p > test.txt
Linux下:
shadb logcat --pid=%(adb shell pidof com.xiaopeng.remotecalibration)% > test.txt
本文作者:lixf6
本文链接:
版权声明:本博客所有文章除特别声明外,均采用 BY-NC-SA 许可协议。转载请注明出处!