高通平台抓取WiFi日志

cnss log抓取方法
1.adb shell进入安卓调试

  1. 先检查 cnss_diag 是否运行
# ps -A | grep cnss_diag
  1. 如果没有运行,运行它
# cnss_diag -q -f & // 后台运行
  1. log 一般保存在 /sdcard/wlan_logs 或 /data/vendor/wifi/wlan_logs 目录下
    这里的log会打印WiFi Driver里面HDD 打印的log,如果没有还是没找到wlan_logs目录,用find命令在各个路径下查找一下即可。

5.当然,不找到存日志的txt文件也行,这个可以直接在命令行跑。就像logcat这个命令。不过要用userdebug版本,不然没权限执行这个命令。

猜你喜欢

转载自blog.csdn.net/weixin_42271802/article/details/110188230