Changes in Bazel rules to support SBOM generation of b build unbundled APEXs.
1) Add MetadataFileInfo provider to modules if METADATA file is declared in attribute applicable_licenses, which might be from default_metadata_file of packages
2) cc_aspect collect MetadataFileInfo for some rules that are transitive deps and included in APEXs
3) Generate SBOM for .apex or .capex in apex rule
Bug: 275472038
Test: CIs
Test: b build //packages/modules/adb/apex:com.android.adbd --config=android --output_groups=+apex_sbom
Change-Id: I727610608487a12873671dd27d56465fc2c19436
7 files changed