diff options
author | 2025-02-26 14:32:28 +0000 | |
---|---|---|
committer | 2025-02-27 05:16:40 +0000 | |
commit | dad9870c874e5d101180638165042859f9b1c756 (patch) | |
tree | 1fbe6ca15d83178197848e36a1bb69e4d90b1ba0 /apex/apex.go | |
parent | 5c78fe90da8e0854b6a6c9ff3be7084f4afda3c7 (diff) |
Generate META/apexkeys.txt
This file contains information about public/private keys of
_installed_ apexes
Details
- In GenerateAndroidBuildActions of apexBundle, prebuiltApex, apexSet,
set a provider with the filepath of the apex's key information
- In GenerateAndroidBuildActions of androidDevice, iterate over
`allInstalledModules`. If a module has a provider with ApexKeyInfo, it
will be concatenated to META/apexkeys.txt
Test: verified that META/apexkeys.txt is identical between make and
soong
Bug: 388633394
Change-Id: I7ac40839c0dfb6a7efabad6a8ff51f30ed393b68
Change-Id: I97c8cf82186ab47ed3ff2a647bf592a96a53b5e4
Diffstat (limited to 'apex/apex.go')
-rw-r--r-- | apex/apex.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/apex/apex.go b/apex/apex.go index 4dd3d4cc0..bda5f2f2a 100644 --- a/apex/apex.go +++ b/apex/apex.go @@ -2263,6 +2263,8 @@ func (a *apexBundle) GenerateAndroidBuildActions(ctx android.ModuleContext) { FlatListPath: a.FlatListPath(), Updatable: a.Updatable(), }) + + android.SetProvider(ctx, filesystem.ApexKeyPathInfoProvider, filesystem.ApexKeyPathInfo{a.apexKeysPath}) } // Set prebuiltInfoProvider. This will be used by `apex_prebuiltinfo_singleton` to print out a metadata file |