AdbHostTest: only require on devices launching with R.
Bug: http://b/157879431
Test: treehugger
Change-Id: I760202f5da378db0a9ac51d106f65480bad67ba6
diff --git a/hostsidetests/adb/AndroidTest.xml b/hostsidetests/adb/AndroidTest.xml
index 46fcc98..3c429e7 100755
--- a/hostsidetests/adb/AndroidTest.xml
+++ b/hostsidetests/adb/AndroidTest.xml
@@ -1,5 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration description="Config for the CTS adb host tests">
+ <object type="module_controller" class="com.android.tradefed.testtype.suite.module.MinApiLevelModuleController">
+ <option name="min-api-level" value="30" />
+ <option name="api-level-prop" value="ro.product.first_api_level" />
+ </object>
+
<option name="test-suite-tag" value="cts" />
<option name="config-descriptor:metadata" key="component" value="bionic" />
<option name="config-descriptor:metadata" key="parameter" value="not_instant_app" />