【CTS】android.hardware.camera2.cts.CameraExtensionCharacteristicsTest#testExtensionAvailability
报错:
java.lang.AssertionError: Extensions system property : true does not match with the advertised extensions: false expected: but was:
通过对这个测试项的了解,大概知道是因为extensions Enabled Prop,但查到支持的扩展能力数量是0,导致了fail
44 private static final String CAMERAX_EXTENSIONS_ENABLED = "ro.camerax.extensions.enabled";
... ...
77 public static boolean areCameraXExtensionsEnabled() {
78 return getPropertyBoolean(CAMERAX_EXTENSIONS_ENABLED);
79 }
解决:ro.camerax.extensions.enabled 改成 false,没有用google api就不能设置成true。
Camera2 Extensions相关介绍