summaryrefslogtreecommitdiff
path: root/java/rro.go
diff options
context:
space:
mode:
author Spandan Das <spandandas@google.com> 2025-03-06 00:47:09 +0000
committer Spandan Das <spandandas@google.com> 2025-03-06 00:47:09 +0000
commit1d1a0b81ffa816e380a5221c54eeb331a97011e4 (patch)
tree0da6bdd17b96ff1600d695de7134a6552d281161 /java/rro.go
parentb31c77b9b8c8daca78c8ec5cceb6f185fe95dec9 (diff)
Add RuntimeResourceOverlayInfoProvider to autogen RRO modules
This will be used to generate apkcerts.txt using a Soong build rule (followup CL in this stack). Test: go build ./java Bug: 399788149 Change-Id: Ieb84a13687058cdf23d1bc2c72e3c39e639ef733
Diffstat (limited to 'java/rro.go')
-rw-r--r--java/rro.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/java/rro.go b/java/rro.go
index b3d934867..42d42b86a 100644
--- a/java/rro.go
+++ b/java/rro.go
@@ -427,6 +427,11 @@ func (a *AutogenRuntimeResourceOverlay) GenerateAndroidBuildActions(ctx android.
// Install the signed apk
installDir := android.PathForModuleInstall(ctx, "overlay")
ctx.InstallFile(installDir, signed.Base(), signed)
+
+ android.SetProvider(ctx, RuntimeResourceOverlayInfoProvider, RuntimeResourceOverlayInfo{
+ OutputFile: signed,
+ Certificate: a.certificate,
+ })
}
func (a *AutogenRuntimeResourceOverlay) SdkVersion(ctx android.EarlyModuleContext) android.SdkSpec {