Previous blog post: "Qualcomm Camera HAL3: Adding a VendorTag" mentioned that MetadataTag has two manifestations in CamX, which can be a predefined AndroidTag or a custom VendorTag.
Custom VendorTag has been explained in the blog post
How to find AndroidTag in CAMX is a common thing
Let's take AndroidTag: "android.flash.info.available" as an example to see how to find AndroidTag in CAMX
The process is not difficult and is summarized as follows:
First search for "android.flash.info.available" in the source code website AOSPXRef (if it fails, change it)
Click to jump and find the TAG definition:
Find it under CamX and see where it is assigned
Found that it was assigned by FlashInfoAvailable
Then find where FlashInfoAvailable is assigned:
Open the file and find the assignment code: