Propagate aidl_interface's min_sdk_version downstream for apex deps validation

Summary:
1. Replace cc_aidl_code_gen's aidl_flags attr with min_sdk_version attr
2. Propagate aidl_interface's min_sdk_version attr to downstream cc_library_shared, cc_library_static, and cc_aidl_code_gen targets
3. Update apex_deps_validation aspect to strip _aidl_code_gen suffix to validate the aidl code gen dep against allowed_deps.txt

The bazel test ensures that when we converts apex_available in aidl_interface to Bazel (b/260694842), apex deps validation works correctly with min_sdk_version.

Test: bazel test
Bug: 264578520
Change-Id: I3d17eb580a4f5ef6a6f8006688647fc345fb698c
4 files changed
tree: 29a7689695175e6ab40a175d7743781bd9e87f4f
  1. bin/
  2. ci/
  3. compliance/
  4. docs/
  5. examples/
  6. flags/
  7. json_module_graph/
  8. mk2rbc/
  9. mkcompare/
  10. platforms/
  11. product_config/
  12. product_variables/
  13. rules/
  14. scripts/
  15. tests/
  16. vendor/
  17. .gitignore
  18. bazel.BUILD
  19. bazel.WORKSPACE
  20. buildifier_hook.sh
  21. common.bazelrc
  22. darwin.bazelrc
  23. linux.bazelrc
  24. OWNERS
  25. PREUPLOAD.cfg
  26. README.md
README.md

Bazel

The code in this directory is experimental. Bazel support for Android Platform is undergoing active development and workflow stability is currently not guaranteed.