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

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

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

hardwareimxmx6libcamera2MetadaManager.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);

原文地址:https://www.cnblogs.com/lake-of-embedded-system/p/4861633.html