hwcomposer dump layer的方法

1、adb shell setprop debug.sf.dump.enable true
     adb shell setprop debug.sf.dump.primary true
    如果是externel display : adb shell setprop debug.sf.dump.externel
true
2、adb shell stop
3、adb shell start
4、adb shell setprop debug.sf.dump.png x(x代表是一个数字,如果要dump一帧
就写1,如果要dump 10帧就写10,png代表是将layer保存为png文件)
     或者adb shell setprop debug.sf.dump x(dump出来的是原始数据)
5、dump的layer文件保存在 /data/ 目录下,如:/data
/sfdump.png.1970.01.08.06.08.37
     adb pull /data/sfdump.png.1970.01.08.06.08.37 ~/ 

你可能感兴趣的:(android学习)