Pass platform version name as --version-name for framework-res.apk
framework-res.apk should get the platform version name ("9") as
--version-name, not the SDK version ("28"). It will get copied
to compileSdkVersionCodename in APKs compiled against it.
Bug: 78324052
Test: aapt dump badging $OUT/system/framework/framework-res.apk | grep -i version
Change-Id: I34a601cb2c14f66199066e7d598862108da0b950
Merged-In: I34a601cb2c14f66199066e7d598862108da0b950
(cherry picked from commit b691e24d89
)
This commit is contained in:
@@ -468,6 +468,10 @@ func (c *config) ResourceOverlays() []string {
|
||||
return *c.productVariables.ResourceOverlays
|
||||
}
|
||||
|
||||
func (c *config) PlatformVersionName() string {
|
||||
return String(c.productVariables.Platform_version_name)
|
||||
}
|
||||
|
||||
func (c *config) PlatformSdkVersionInt() int {
|
||||
return *c.productVariables.Platform_sdk_version
|
||||
}
|
||||
|
Reference in New Issue
Block a user