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