For legacy10 APEXes default target_sdk_version and min_sdk_version to 29
Test: m com.android.conscrypt
Bug: 149733822
Change-Id: Ia863b5701716ef4022b470ee758368ea4fffb1d4
Merged-In: Ia863b5701716ef4022b470ee758368ea4fffb1d4
(cherry picked from commit db10c13bdf
)
This commit is contained in:
@@ -383,6 +383,16 @@ func (a *apexBundle) buildUnflattenedApex(ctx android.ModuleContext) {
|
|||||||
|
|
||||||
targetSdkVersion := ctx.Config().DefaultAppTargetSdk()
|
targetSdkVersion := ctx.Config().DefaultAppTargetSdk()
|
||||||
minSdkVersion := ctx.Config().DefaultAppTargetSdk()
|
minSdkVersion := ctx.Config().DefaultAppTargetSdk()
|
||||||
|
|
||||||
|
if proptools.Bool(a.properties.Legacy_android10_support) {
|
||||||
|
if !java.UseApiFingerprint(ctx, targetSdkVersion) {
|
||||||
|
targetSdkVersion = "29"
|
||||||
|
}
|
||||||
|
if !java.UseApiFingerprint(ctx, minSdkVersion) {
|
||||||
|
minSdkVersion = "29"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if java.UseApiFingerprint(ctx, targetSdkVersion) {
|
if java.UseApiFingerprint(ctx, targetSdkVersion) {
|
||||||
targetSdkVersion += fmt.Sprintf(".$$(cat %s)", java.ApiFingerprintPath(ctx).String())
|
targetSdkVersion += fmt.Sprintf(".$$(cat %s)", java.ApiFingerprintPath(ctx).String())
|
||||||
implicitInputs = append(implicitInputs, java.ApiFingerprintPath(ctx))
|
implicitInputs = append(implicitInputs, java.ApiFingerprintPath(ctx))
|
||||||
|
Reference in New Issue
Block a user