1,通过Hub(硬件工具)+wireshark(软件工具)进行网络数据包的抓取
2,通过ADB调测,前提要盒子设置中打开ADB调测
adb命令抓包并写为(在adb shell中并获取root权限):
adb shell tcpdump -i any -s 0 -w 路径/文件名.pcap
adb shell tcpdump -i any -s 0 -w /data/data/a1.pcap
adb移出文件:
adb pull /路径/文件名称 移出到本机的路径
adb pull /data/data/a1.pcap D:\
3,中兴盒子通过ZTE抓包工具进行日志抓取
4,通过微信web开发者工具调测工具进行日志
4.1,调测代码:(IP为接收客户端ip),在同一个局域网中;
<script src="http://192.168.0.3:9977/target/target-script-min.js#anonymous"></script>
4.2,日志显示语句:console.log();
console.log("-vod_play_control-isBookmark------"+JSON.stringify(data));
5, adb Android开发软件进行数据获取 (前提:海信盒子开启adb模式 170 开启的命令) 2018/06/08 15:45
5.1,platform-tools.rar tools.rar 两个压缩包 (百度云盘软件文件)
5.2,解压 platform-tools.rar 配置对应的环境变量,如:
Path
%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;C:\Program Files\TortoiseSVN\bin;C:\Program Files\Java\jdk1.7.0_80\bin;D:\2017\workspace\apache-maven-3.3.9-bin\apache-maven-3.3.9\bin;C:\Python27;D:\Program Files\nodejs\;D:\Android\platform-tools
5.3,进入cmd 在dos页面,进行 adb connect ***(盒子的ip地址) 回车; 显示:connected to 192.168.0.126:5555 表示配置成功
5.4,解压 tools.rar 点击ddms.bat ,进入日志抓取页面,进行相关参数抓取