ConnectivityManagerTest: grant access to Wifi @hide APIs

Bug: 146513037
Test: atest ConnectivityManagerTest
Change-Id: If2a65abede0ab76b0435c252a893df9791645607
diff --git a/core/tests/ConnectivityManagerTest/Android.bp b/core/tests/ConnectivityManagerTest/Android.bp
index a33d219..6b828cc 100644
--- a/core/tests/ConnectivityManagerTest/Android.bp
+++ b/core/tests/ConnectivityManagerTest/Android.bp
@@ -21,6 +21,6 @@
     static_libs: ["junit"],
     // Include all test java files.
     srcs: ["src/**/*.java"],
-    platform_apis: true,
+    defaults: ["framework-wifi-test-defaults"],
     certificate: "platform",
 }
diff --git a/wifi/Android.bp b/wifi/Android.bp
index d7a85c5..80703b8 100644
--- a/wifi/Android.bp
+++ b/wifi/Android.bp
@@ -47,6 +47,8 @@
 test_access_hidden_api_whitelist = [
     "//frameworks/base/wifi/tests",
     "//frameworks/opt/net/wifi/tests/wifitests:__subpackages__",
+
+    "//frameworks/base/core/tests/ConnectivityManagerTest",
 ]
 
 java_library {