diff options
| author | 2024-11-05 16:40:28 +0900 | |
|---|---|---|
| committer | 2024-11-08 12:51:46 +0900 | |
| commit | 0f1a781e111250d1a55bd20b955703fab0b1b775 (patch) | |
| tree | 6acaa41e44f834304428a712f18371ceaebc4f0d /filesystem/filesystem.go | |
| parent | 614452ff0a01f4168d21fd4141a983c51a63d92b (diff) | |
cc: use platform sdk version for vendor/product variants
This enables LLNDK symbols to work with INTRODUCED_IN and
builtin_available.
This should work well with TrunkStable as well.
Instead of passing 10000 in trunk_staging, we can pass e.g. 35 to vendor
modules. Then, vendor code can benefit from __builtin_available because
it's compiled as a runtime check (isOSVersionAtLeast) and handle the
version at runtime based on the actual platform version.
With this change, using new symbols (e.g. symbols introduced in
in-development version) can be detected even in the "trunk_stging"
configuration. Prevously, since 10000 is assumed in trunk_staging, new
symbols were okay in trunk_staging while required __builtin_available
guard in "next" configuration.
This also helps to build a vendor apex which can be built in a new
Android release while it's meant to be installed and run on an old
Android release by setting min_sdk_version.
Bug: 362658565
Test: m --no-skip-soong-tests
Change-Id: I06f46940f0b994b460c2c69171c708583391f836
Diffstat (limited to 'filesystem/filesystem.go')
0 files changed, 0 insertions, 0 deletions