Add min SDK to libs used for mockito-extended libdexmakerjvmtiagent and libstaticjvmtiagent are used by tests that use mockito-extended. Some of these tests are also run on older platforms, such as for testing mainline modules. The tests broke recently when change ID: I6c5c822d0767e789fa0e2c8e5668fddfd90680bb made the binaries incompatible. This was updated to only apply if the binary has a recent enough min_sdk_version. As the libraries are also used on older platforms, add min_sdk_version to ensure compatibility. SDK version 29 seems appropriate as it is the first version supporting mainline modules that need backwards compatibility testing. Test: atest NetworkStackCoverageTests Bug: 193063817 Bug: 187907243 Original-Change: https://android-review.googlesource.com/1761245 Merged-In: Ie3645a282ad53ead5c6ddeac02fb4f7115f7dd64 Change-Id: Ie3645a282ad53ead5c6ddeac02fb4f7115f7dd64
diff --git a/Android.bp b/Android.bp index 68c6895..6648cf6 100644 --- a/Android.bp +++ b/Android.bp
@@ -127,6 +127,7 @@ "dexmaker_agent_defaults", ], srcs: ["dexmaker-mockito-inline/src/main/jni/**/*.cc"], + min_sdk_version: "29", } // Build agent for Dexmaker's extended MockMaker @@ -136,6 +137,7 @@ "dexmaker_agent_defaults", ], srcs: ["dexmaker-mockito-inline-extended/src/main/jni/**/*.cc"], + min_sdk_version: "29", } // Build agent for Dexmaker's inline tests