soong: Always return release-keys

Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
This commit is contained in:
Pranav Vashi 2024-09-19 20:25:31 +05:30 committed by elpaablo
parent 8b8cdfec31
commit a3f7db5533

View file

@ -1052,14 +1052,7 @@ func (c *config) ExtraOtaKeys(ctx PathContext, recovery bool) []SourcePath {
}
func (c *config) BuildKeys() string {
defaultCert := String(c.productVariables.DefaultAppCertificate)
if defaultCert == "" || defaultCert == filepath.Join(testKeyDir, "testkey") {
return "test-keys"
}
if strings.HasPrefix(defaultCert, "vendor/lineage-priv/") {
return "release-keys"
}
return "dev-keys"
return "release-keys"
}
func (c *config) ApexKeyDir(ctx ModuleContext) SourcePath {