From 918b9085394666396fe61991343fd3476eabe228 Mon Sep 17 00:00:00 2001 From: David Su Date: Wed, 25 Nov 2020 12:06:15 -0800 Subject: [PATCH] Allow FrameworksWifiApiTests to be installed on R & S devices FrameworksWifiApiTests cannot run on R devices because it compiles against the latest unstable SDK. To fix this, set target_sdk_version to "30". Bug: 173336987 Test: 1. Flash R build 2. Install S Wifi module 3. Run `atest FrameworksWifiTests` 4. Verify test APK installs on the device (Note: not all tests are passing.) Change-Id: I747d8a0afc17dedcde1959cf062eef6e6e8a521f --- wifi/tests/Android.bp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/wifi/tests/Android.bp b/wifi/tests/Android.bp index 7272e146f4f84..7eba0a73be31f 100644 --- a/wifi/tests/Android.bp +++ b/wifi/tests/Android.bp @@ -20,6 +20,9 @@ android_test { defaults: ["framework-wifi-test-defaults"], + min_sdk_version: "30", + target_sdk_version: "30", + srcs: ["**/*.java"], jacoco: {