DO NOT MERGE: Make EphemeralTest test apks target API 26
PackageManagerService enforces instant apps target O+ (API 26+).
The cts test apks currently don't specify targetSdkVersion, so the
fallback to minSDKVersion makes it target API 24 and 25. This did not
cause test failures before because there was no LOCAL_MIN_SDK_VERSION
in the make file, and the build system raised min version to Q
(value=10000 right now), ignoring the min version in the manifest.
Commit 472744ea8279caa1a5f7b70a25850b09c73e2479
added LOCAL_MIN_SDK_VERSION to the make file, so now targetSdkVersion =
minSdkVersion =24/25, and the tests fail.
To fix, make the apps explicitly target API 26.
BUG: 112123839
Bug: 120445199
Test: cts-tradefed run cts -m CtsAppSecurityHostTestCases -t android.appsecurity.cts.EphemeralTest
Change-Id: Ib0fcd429463e36293f5c19f58b65ab2b76ffbed8
Merged-In: Ib0fcd429463e36293f5c19f58b65ab2b76ffbed8
(cherry picked from commit 6a0b0466ade220e3d6ba657361234afe93a546d1)
2 files changed