From d696694b98f70b7d6ec2c66f0349e557e5c5b6b0 Mon Sep 17 00:00:00 2001 From: David Su Date: Fri, 12 Jun 2020 17:03:35 -0700 Subject: RESTRICT AUTOMERGE WIFI_CREDENTIAL_CHANGED_ACTION: only broadcast SSID if location mode is enabled & receiver has location permissions Bug: 158874479 Test: atest FrameworksWifiTests Test: forget some networks in Wifi Picker Test: added logs locally and verified broadcast is received Change-Id: I26f43b6a4050cb420b30f9dcaa95e14f96c676a8 --- tests/wifitests/src/com/android/server/wifi/ClientModeImplTest.java | 1 + 1 file changed, 1 insertion(+) (limited to 'tests') diff --git a/tests/wifitests/src/com/android/server/wifi/ClientModeImplTest.java b/tests/wifitests/src/com/android/server/wifi/ClientModeImplTest.java index 58f5b1ccc..11ee5cd7c 100644 --- a/tests/wifitests/src/com/android/server/wifi/ClientModeImplTest.java +++ b/tests/wifitests/src/com/android/server/wifi/ClientModeImplTest.java @@ -521,6 +521,7 @@ public class ClientModeImplTest extends WifiBaseTest { RssiUtilTest.RSSI_THRESHOLDS); mResources.setInteger(R.integer.config_wifiPollRssiIntervalMilliseconds, 3000); when(mContext.getResources()).thenReturn(mResources); + when(mContext.createContextAsUser(any(), anyInt())).thenReturn(mContext); when(mFrameworkFacade.getIntegerSetting(mContext, Settings.Global.WIFI_FREQUENCY_BAND, -- cgit v1.2.3