1、Android6.0系统display数据帧的dump使用步骤
Platform: Rockchip
OS: Android 6.0
Kernel: 3.10.92
步骤:
打开dump功能
hardware/rockchip/hwcomposer/rk_hwcomposer.h
#define hwcDumpSurface 1
设置property
#setprop sys.dump true
这时logcat中就可以看到dump的log了:
01-02 07:48:40.439 175 175 I hwcomposer: dump surface layername /data/dump/dmlayer0_2048_1536_4.bin,w:2048,h:1536,formatsize :4
01-02 07:48:40.625 175 175 I hwcomposer: dump surface layername /data/dump/dmlayer1_ftl_2048_1536_4.bin,w:2048,h:1536,formatsize :4
抓取的帧会按数字排列,还带分辨率参数。如果再设置sys.dump,那么就是dmlayer2_xxx.bin, dmlayer3_xxx.bin ……
抓到pc
adb pull /data/dump/
抓到的bin文件可以用软件7yuv打开查看,格式设定为RGBA8888
原作者:KrisFei