summaryrefslogtreecommitdiff
path: root/android/module.go
diff options
context:
space:
mode:
author Spandan Das <spandandas@google.com> 2025-03-06 00:49:57 +0000
committer Spandan Das <spandandas@google.com> 2025-03-06 00:49:57 +0000
commit31769efdc845e1f89a4d397ad103566e03bee176 (patch)
tree86122e174d0c3b0c289312e07358b9865c17874d /android/module.go
parent1d1a0b81ffa816e380a5221c54eeb331a97011e4 (diff)
Add PartitionTag to CommonModuleInfo
This will be used to generate apkcerts.txt, which contains an entry about the partition in which the app is installed. Bug: 399788149 Test: go build ./android Change-Id: I08c2e0d6619c941624b92b4fbe2a7349a696b62b
Diffstat (limited to 'android/module.go')
-rw-r--r--android/module.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/android/module.go b/android/module.go
index 545753973..a56fea322 100644
--- a/android/module.go
+++ b/android/module.go
@@ -1915,6 +1915,7 @@ type CommonModuleInfo struct {
Dists []Dist
ExportedToMake bool
Team string
+ PartitionTag string
}
type ApiLevelOrPlatform struct {
@@ -2282,6 +2283,7 @@ func (m *ModuleBase) GenerateBuildActions(blueprintCtx blueprint.ModuleContext)
Dists: m.Dists(),
ExportedToMake: m.ExportedToMake(),
Team: m.Team(),
+ PartitionTag: m.PartitionTag(ctx.DeviceConfig()),
}
if mm, ok := m.module.(interface {
MinSdkVersion(ctx EarlyModuleContext) ApiLevel