Use default app certificate from Make am: 61ae0b7eed
am: 9d58bf0610
Change-Id: I053f5419cbfb52736defe8dc6844e4b2221ef54f
This commit is contained in:
@@ -491,11 +491,21 @@ func (c *config) ProductAAPTPrebuiltDPI() []string {
|
||||
}
|
||||
|
||||
func (c *config) DefaultAppCertificateDir(ctx PathContext) SourcePath {
|
||||
return PathForSource(ctx, "build/target/product/security")
|
||||
defaultCert := String(c.ProductVariables.DefaultAppCertificate)
|
||||
if defaultCert != "" {
|
||||
return PathForSource(ctx, filepath.Dir(defaultCert))
|
||||
} else {
|
||||
return PathForSource(ctx, "build/target/product/security")
|
||||
}
|
||||
}
|
||||
|
||||
func (c *config) DefaultAppCertificate(ctx PathContext) SourcePath {
|
||||
return c.DefaultAppCertificateDir(ctx).Join(ctx, "testkey")
|
||||
defaultCert := String(c.ProductVariables.DefaultAppCertificate)
|
||||
if defaultCert != "" {
|
||||
return PathForSource(ctx, defaultCert)
|
||||
} else {
|
||||
return c.DefaultAppCertificateDir(ctx).Join(ctx, "testkey")
|
||||
}
|
||||
}
|
||||
|
||||
func (c *config) AllowMissingDependencies() bool {
|
||||
|
@@ -141,6 +141,8 @@ type productVariables struct {
|
||||
AAPTPreferredConfig *string `json:",omitempty"`
|
||||
AAPTPrebuiltDPI *[]string `json:",omitempty"`
|
||||
|
||||
DefaultAppCertificate *string `json:",omitempty"`
|
||||
|
||||
AppsDefaultVersionName *string `json:",omitempty"`
|
||||
|
||||
Allow_missing_dependencies *bool `json:",omitempty"`
|
||||
|
Reference in New Issue
Block a user