问题描述
有客户its测试, 修改sensor metadata 资料后单build so push. 但不确认是否有生效.
如何判断是否build进去了?
解决方案
执行:
adb shell dumpsys media.camera -v 2 > meta.info.txt
然后在meta.info.txt搜索 "static information: =="
会有如下这些分别表示main sub main2 sub2 ...
Line 865: == Camera HAL device device@3.4/internal/0 (v3.4) static information: ==
Line 1916: == Camera HAL device device@3.4/internal/1 (v3.4) static information: ==
Line 3087: == Camera HAL device device@3.4/internal/2 (v3.4) static information: ==
Line 3715: == Camera HAL device device@3.4/internal/3 (v3.4) static information: ==
Line 4470: == Camera HAL device device@3.4/internal/4 (v3.4) static information: ==
Line 1916: == Camera HAL device device@3.4/internal/1 (v3.4) static information: ==
Line 3087: == Camera HAL device device@3.4/internal/2 (v3.4) static information: ==
Line 3715: == Camera HAL device device@3.4/internal/3 (v3.4) static information: ==
Line 4470: == Camera HAL device device@3.4/internal/4 (v3.4) static information: ==
若要看对应的参数, 在上述行后面部分有如下片段, 就是实际生效的metadata信息.