Fix OverlayConfigTest minSdkVersion

With a fix to ApkLite parsing, targetSdk gets coerced to a minimum
of the minSdkVersion. And by default the build system sets the min to
the dev version, so the target would be brought up to 10000.

The test expects 21, so make the min just below that at 20.

Bug: 189988918

Test: atest com.android.internal.content.OverlayConfigTest

Change-Id: Iec7af27012c207e8cc888b6d16fc71e5e47bc73a
This commit is contained in:
Winson Chiu
2021-06-03 17:35:06 +00:00
parent ada0d396e4
commit 6ec6b18960
2 changed files with 2 additions and 1 deletions

View File

@@ -10,4 +10,5 @@ package {
android_test_helper_app {
name: "FrameworksCoreTests_overlay_config",
defaults: ["FrameworksCoreTests_apks_defaults"],
min_sdk_version: "20",
}

View File

@@ -19,7 +19,7 @@
<application android:hasCode="false" />
<uses-sdk android:targetSdkVersion="21"/>
<uses-sdk android:minSdkVersion="20" android:targetSdkVersion="21"/>
<overlay android:targetPackage="android"
android:targetName="TestResources" />