diff options
author | 2025-03-06 15:26:01 -0800 | |
---|---|---|
committer | 2025-03-06 15:26:01 -0800 | |
commit | 87f1f1ee088097fa1ed16304d6ffeee32b58bdd5 (patch) | |
tree | e237fdc2b79ab033f44d4a3852d83be7c93c4e58 /apex/apex.go | |
parent | e411efdba94149d02d0975eda001c18eb3f18b61 (diff) | |
parent | 38afe711d13e01ca1d5db96dd018a1044ee4f3aa (diff) |
Merge "Create apkcerts.txt using Soong" into main
Diffstat (limited to 'apex/apex.go')
-rw-r--r-- | apex/apex.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/apex/apex.go b/apex/apex.go index 196f389d2..38ab012d8 100644 --- a/apex/apex.go +++ b/apex/apex.go @@ -550,6 +550,9 @@ type apexBundle struct { // Required modules, filled out during GenerateAndroidBuildActions and used in AndroidMk required []string + + // appinfo of the apk-in-apex of this module + appInfos java.AppInfos } // apexFileClass represents a type of file that can be included in APEX. @@ -1931,6 +1934,7 @@ func (a *apexBundle) depVisitor(vctx *visitorContext, ctx android.ModuleContext, } case androidAppTag: if appInfo, ok := android.OtherModuleProvider(ctx, child, java.AppInfoProvider); ok { + a.appInfos = append(a.appInfos, *appInfo) if appInfo.AppSet { appDir := "app" if appInfo.Privileged { @@ -2267,6 +2271,8 @@ func (a *apexBundle) GenerateAndroidBuildActions(ctx android.ModuleContext) { }) android.SetProvider(ctx, filesystem.ApexKeyPathInfoProvider, filesystem.ApexKeyPathInfo{a.apexKeysPath}) + + android.SetProvider(ctx, java.AppInfosProvider, a.appInfos) } // Set prebuiltInfoProvider. This will be used by `apex_prebuiltinfo_singleton` to print out a metadata file |