determine whether to support flash
/system/media/camera/include/system/camera_metadata_tags.h
687 // ANDROID_FLASH_INFO_AVAILABLE
688 typedef enum camera_metadata_enum_android_flash_info_available {
689 ANDROID_FLASH_INFO_AVAILABLE_FALSE , // HIDL v3.2
690 ANDROID_FLASH_INFO_AVAILABLE_TRUE , // HIDL v3.2
691 } camera_metadata_enum_android_flash_info_available_t;
692
determine flash mode :
enum name | enum value | meaning |
---|---|---|
off | 0 | no flash light |
single or called auto | 1 | auto flash light |
torch or called always | 1 | always flash light |
/system/media/camera/include/system/camera_metadata_tags.h
670 // ANDROID_FLASH_MODE
671 typedef enum camera_metadata_enum_android_flash_mode {
672 ANDROID_FLASH_MODE_OFF , // HIDL v3.2
673 ANDROID_FLASH_MODE_SINGLE , // HIDL v3.2
674 ANDROID_FLASH_MODE_TORCH , // HIDL v3.2
675 } camera_metadata_enum_android_flash_mode_t;
adb shell dumpsys media.camera
flash-mode: off
flash-mode-values: off,auto,on,torch
enum name | meaning |
---|---|
off | camera doesn't apply flash |
auto | camera auto apply flash |
on | camera always apply flash |
torch | use as flashlight application |