run cts -m CtsAppTestCases -t android.app.cts.SystemFeaturesTest#testCameraFeatures --skip-preconditions --precondition-arg skip-media-download
android.app.cts.SystemFeaturesTest#testCameraFeatures fail junit.framework.AssertionFailedError: PackageManager#hasSystemFeature should NOT return true for android.hardware.camera.level.full
解决方案
frameworks\native\data\etc\android.hardware.camera.full.xml
modified: native/data/etc/android.hardware.camera.full.xml
modified: native/data/etc/android.hardware.camera.raw.xml
PackageManager#hasSystemFeature should return true for android.hardware.camera.level.full
当开启HAL3时,需要添加这个feature项。
添加:<feature name=”android.hardware.camera.level.full” />
当关闭HAL3时,需要去除这个feature项。
HAL3的开关和camera调试效果有关:persist.camera.HAL3.enabled=1
*HAL3开启时,CTS Verifier 需要测试CameraITS项,此项较难测过。一般做关闭HAL3处理修改。