码迷,mamicode.com
首页 > 移动开发 > 详细

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

时间:2015-10-08 18:03:24      阅读:278      评论:0      收藏:0      [点我收藏+]

标签:

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

 

 

技术分享

 

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

标签:

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!