From 285d3a5da707a586790db42358b35c0e3b858b8c Mon Sep 17 00:00:00 2001 From: Remi NGUYEN VAN Date: Thu, 22 Apr 2021 19:54:06 +0900 Subject: [PATCH] Fix testKeepaliveWifiUnsupported failure As a temporary measure to get the test to pass, use the QUERY_ALL_PACKAGES permission when calling getSupportedKeepalives. This is helps as getSupportedKeepalives obtains the configuration from resources in the connectivity resources package, which recently got its own non-platform certificate and is now not visible from the test anymore. getSupportedKeepalives is only used by tests and ConnectivityService which has all permissions. The actual fix should make sure getSupportedKeepalives does not require such a permission (although getSupportedKeepalives is not a formal API), but this will take more time and the test needs to stay green in the meantime. Bug: 186093901 Test: atest CtsNetTestCases Change-Id: I288ec13a6f0840b184f1c919785724733ca56adf --- tests/cts/net/AndroidManifest.xml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/cts/net/AndroidManifest.xml b/tests/cts/net/AndroidManifest.xml index a7e2bd780a..3b4710010e 100644 --- a/tests/cts/net/AndroidManifest.xml +++ b/tests/cts/net/AndroidManifest.xml @@ -36,6 +36,9 @@ + + +