[automerge] Patch to fix Aug train issue with tethering 2p: a649ad5b31

Original change: https://googleplex-android-review.googlesource.com/c/platform/build/soong/+/19432194

Bug: 238472881
Change-Id: Ie6560f201b87e7a3998f8f47ab52b1ae882ccb60
This commit is contained in:
Presubmit Automerger Backend
2022-07-28 09:39:44 +00:00
8 changed files with 431 additions and 84 deletions

View File

@@ -646,6 +646,14 @@ func (j *Module) MinSdkVersion(ctx android.EarlyModuleContext) android.SdkSpec {
return j.SdkVersion(ctx)
}
func (j *Module) MinApiLevelForSdkSnapshot(ctx android.EarlyModuleContext) android.ApiLevel {
if j.deviceProperties.Min_sdk_version != nil {
return android.SdkSpecFrom(ctx, *j.deviceProperties.Min_sdk_version).ApiLevel
} else {
return android.NoneApiLevel
}
}
func (j *Module) MaxSdkVersion(ctx android.EarlyModuleContext) android.SdkSpec {
maxSdkVersion := proptools.StringDefault(j.deviceProperties.Max_sdk_version, "")
// SdkSpecFrom returns SdkSpecPrivate for this, which may be confusing.