Match Soong's handling of {min,target}_sdk_version in android_binary

To determine values to use for manifest fixing, Soong calls
EffectiveVersionString on the raw {min,target}_sdk_version properties
if defined, or on sdk_version if not. Additionally, a few product
variables, as well as whether the app is updatable, can affect ways
the raw value is overriden.
This CL  matches this logic in android_binary.
Another CL in the same topic has android_binary's bp2build converter pass the
raw {min,target}_sdk_version property values directly to
android_binary's manifest_values, instead of the post-processed ones.

Bug: 274474008
Test: CI + Unit tests
Change-Id: I3a132ee09dffe67f3d84062bc37f4310bf36ffe3
11 files changed
tree: 58bd2066eec927120ae09a6dcdc55432f3de45d9
  1. api_surfaces/
  2. bazel_sandwich/
  3. bin/
  4. ci/
  5. compliance/
  6. docs/
  7. examples/
  8. flags/
  9. json_module_graph/
  10. mk2rbc/
  11. mkcompare/
  12. platforms/
  13. product_config/
  14. rules/
  15. scripts/
  16. tests/
  17. toolchains/
  18. utils/
  19. vendor/
  20. .gitignore
  21. bazel.BUILD
  22. bazel.WORKSPACE
  23. buildifier_hook.sh
  24. common.bazelrc
  25. constants_exported_to_soong.bzl
  26. darwin.bazelrc
  27. linux.bazelrc
  28. OWNERS
  29. PREUPLOAD.cfg
  30. 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.