Remove exportable modules when generating snapshots targeting older platform

This change modifies the contents of the generated Android.bp files so
that when generating a snapshot on a older platform, the "exportable"
modules are removed from the bp files, as the "exportable" modules are
first introduced in V and do not exist in older platforms.

Bug: 345162614
Test: ABTD
Change-Id: I2dba51b98deec7805bd796647a66981f237c55a9
This commit is contained in:
Jihoon Kang
2024-06-07 11:06:57 +00:00
parent d5e16ac52b
commit 98aa8fa840
5 changed files with 209 additions and 11 deletions

View File

@@ -291,6 +291,8 @@ var ApiLevelR = uncheckedFinalApiLevel(30)
var ApiLevelUpsideDownCake = uncheckedFinalApiLevel(34)
var ApiLevelVanillaIceCream = uncheckedFinalApiLevel(35)
// ReplaceFinalizedCodenames returns the API level number associated with that API level
// if the `raw` input is the codename of an API level has been finalized.
// If the input is *not* a finalized codename, the input is returned unmodified.