[Android-Camera] If there is no flash setting option in Android stock camera apk, find the code and

On freescale imx6 android platform, when we work on the Android stock camera apk, it's found that no flash setting option within it.android

So I track the code, and found that, flash avaliable need to be change from default value 0 to 1, it works.ui

hardware\imx\mx6\libcamera2\MetadaManager.cpp

    // android.flash
    // shawnbai, yes, we have camera flash, flashAvailable 0->1
    uint8_t flashAvailable = 1;
    ADD_OR_SIZE(ANDROID_FLASH_INFO_AVAILABLE, &flashAvailable, 1);

 

 

相關文章
相關標籤/搜索