Merge "Add unaudited exported flag to exposed runtime receivers"

This commit is contained in:
TreeHugger Robot
2022-11-04 03:18:02 +00:00
committed by Android (Google) Code Review

View File

@@ -145,7 +145,8 @@ public class ConnectivityManagerTestBase extends InstrumentationTestCase {
mIntentFilter.addAction(WifiManager.SUPPLICANT_CONNECTION_CHANGE_ACTION);
mIntentFilter.addAction(WifiManager.WIFI_AP_STATE_CHANGED_ACTION);
mIntentFilter.addAction(TetheringManager.ACTION_TETHER_STATE_CHANGED);
mContext.registerReceiver(mWifiReceiver, mIntentFilter);
mContext.registerReceiver(mWifiReceiver, mIntentFilter,
Context.RECEIVER_EXPORTED_UNAUDITED);
logv("Clear Wifi before we start the test.");
removeConfiguredNetworksAndDisableWifi();