diff options
author | 2022-09-21 12:10:37 +0000 | |
---|---|---|
committer | 2022-09-21 12:10:37 +0000 | |
commit | 4f1128bee498e0d04f27d5ab9d9eb2f4a79e29bc (patch) | |
tree | 1f680a9e40403c0429fa1fb6d996aaeb2eddcf4a /java/bootclasspath_fragment.go | |
parent | 1fdd934df0a96dba85892dc9e7bb01b8e6aa5b59 (diff) | |
parent | 887efdd779ecf6b264ea1ca510e47ef74d66f03c (diff) |
Merge "Separate hidden API flag info for sdk from platform_bootclasspath"
Diffstat (limited to 'java/bootclasspath_fragment.go')
-rw-r--r-- | java/bootclasspath_fragment.go | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/java/bootclasspath_fragment.go b/java/bootclasspath_fragment.go index 347e36b60..147f634fe 100644 --- a/java/bootclasspath_fragment.go +++ b/java/bootclasspath_fragment.go @@ -888,6 +888,14 @@ func (b *BootclasspathFragmentModule) produceHiddenAPIOutput(ctx android.ModuleC EncodedBootDexFilesByModule: encodedBootDexFilesByModule, } + flagFilesByCategory := input.FlagFilesByCategory + + // Make the information available for the sdk snapshot. + ctx.SetProvider(HiddenAPIInfoForSdkProvider, HiddenAPIInfoForSdk{ + FlagFilesByCategory: flagFilesByCategory, + HiddenAPIFlagOutput: flagOutput, + }) + return output } @@ -1052,7 +1060,7 @@ func (b *bootclasspathFragmentSdkMemberProperties) PopulateFromVariant(ctx andro // Get the hidden API information from the module. mctx := ctx.SdkModuleContext() - hiddenAPIInfo := mctx.OtherModuleProvider(module, HiddenAPIInfoProvider).(HiddenAPIInfo) + hiddenAPIInfo := mctx.OtherModuleProvider(module, HiddenAPIInfoForSdkProvider).(HiddenAPIInfoForSdk) b.Flag_files_by_category = hiddenAPIInfo.FlagFilesByCategory // Copy all the generated file paths. |