Merge "Allow dexpreopt of source sdklib in prebuilt apex builds" into main

This commit is contained in:
Treehugger Robot
2024-04-18 01:25:15 +00:00
committed by Gerrit Code Review
6 changed files with 47 additions and 17 deletions

View File

@@ -886,6 +886,12 @@ func init() {
}
func (j *Library) GenerateAndroidBuildActions(ctx android.ModuleContext) {
if disableSourceApexVariant(ctx) {
// Prebuilts are active, do not create the installation rules for the source javalib.
// Even though the source javalib is not used, we need to hide it to prevent duplicate installation rules.
// TODO (b/331665856): Implement a principled solution for this.
j.HideFromMake()
}
j.provideHiddenAPIPropertyInfo(ctx)
j.sdkVersion = j.SdkVersion(ctx)