diff options
author | 2024-12-08 21:15:25 +0000 | |
---|---|---|
committer | 2024-12-09 03:01:41 +0000 | |
commit | 0c89ca3fef13c86043ebb77c749ef74676943650 (patch) | |
tree | 7026ad862eb4a91d2fa6b1f9556244cf0ce276e6 /apex/builder.go | |
parent | 21ef14427a3c7f286c285677f553a0e2237f7eb2 (diff) |
Include 9 as the last allowed digit of default version code.
Due to go/aml-default-version-code, we are required to use the last digit for version code as 9.
Bug: 381839073
Test: presubmit
Test: adb install
Change-Id: Ia3534d687541a85042a328c307daf78b294b5d89
Diffstat (limited to 'apex/builder.go')
-rw-r--r-- | apex/builder.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apex/builder.go b/apex/builder.go index e5ae10622..2b711a109 100644 --- a/apex/builder.go +++ b/apex/builder.go @@ -337,8 +337,8 @@ func (a *apexBundle) buildManifest(ctx android.ModuleContext, provideNativeLibs, if err != nil { ctx.ModuleErrorf("expected RELEASE_DEFAULT_UPDATABLE_MODULE_VERSION to be an int, but got %s", defaultVersion) } - if defaultVersionInt%10 != 0 { - ctx.ModuleErrorf("expected RELEASE_DEFAULT_UPDATABLE_MODULE_VERSION to end in a zero, but got %s", defaultVersion) + if defaultVersionInt%10 != 0 && defaultVersionInt%10 != 9 { + ctx.ModuleErrorf("expected RELEASE_DEFAULT_UPDATABLE_MODULE_VERSION to end in a zero or a nine, but got %s", defaultVersion) } variantVersion := []rune(*a.properties.Variant_version) if len(variantVersion) != 1 || variantVersion[0] < '0' || variantVersion[0] > '9' { |