Qualcomm Camera HAL3: Integrate camxoverridesettings.txt into the full machine version

camxoverridesettings.txt is a way Qualcomm provides developers to temporarily debug CAMX and CHI-CDK functions. By configuring various variable values ​​and then writing them to this file, it can control multiple functions such as Log printing, parameter configuration, and data dump.

This file needs to be integrated in vendor/etc/camera/ in the device directory

Because camxoverridesettings.txt is for temporary debugging, there is no camera directory under vendor/etc/ in the initial version of the machine. Therefore, both the camera directory and camxoverridesettings.txt need to be manually created, configured, and pushed by yourself.

During the development stage, the camxoverridesettings.txt file can be integrated and compiled into the full machine version, so that you do not need to manually create the directory camera and push camxoverridesettings.txt every time after double clearing and flashing the machine.

For the mass production version, remember to delete camxoverridesettings.txt. Relevant modifications must be completed by modifying the corresponding variables of camxsettings.xml in /vendor/qcom/proprietary/ through regular channels.

Integration is not difficult either

No more nonsense, let’s get started

productName is the project name

(1). Create a new directory vendor/qcom/proprietary/chi-cdk/oem/qcom/bin/productName

Create the camxoverridesettings.txt file in the newly created productName directory

The file content is configured as needed. The example is as follows:

  • pdafHWEnable=FALSE
  • enable3ADebugData=TRUE
  • enableTuningMetadata=TRUE
  • overrideLogLevels =0xf

(2).Add the following configuration in vendor/qcom/proprietary/chi-cdk/oem/Android.mk:

According to actual measurement, the following code should be placed at the head of the mk file, otherwise the .txt will be found under the path buildbin of the last include in mk during compilation.

include $(CLEAR_VARS)

LOCAL_MODULE := camxoverridesettings.txt

LOCAL_MODULE_OWNER := qti

LOCAL_MODULE_TAGS := optional

LOCAL_MODULE_CLASS := ETC

LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR)/etc/camera

LOCAL_SRC_FILES := qcom/bin/klein/camxoverridesettings.txt

include $(BUILD_PREBUILT)

(3)Add in the .product.mk directory:

PRODUCT_PACKAGES += camxoverridesettings.txt

//PRODUCT_PACKAGES += other files that need to be packaged into vednor/etc/camera 

If not added, the vednor/etc/camera directory will not be created, and the files to be added will not be packaged into super.img.

Guess you like

Origin blog.csdn.net/geyichongchujianghu/article/details/131139828