[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.

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

 

 

 

posted on 2015-10-08 17:28  Shawn X.Y. Bai  阅读(468)  评论(0编辑  收藏  举报

导航