WifiNetworkFactory: Allow user approval bypass
Whenever user approves a network for a request from an app, store the
exact SSID + BSSID that the user approved. If the same app makes a
network request for a specific SSID & BSSID which has been previously
approved, then the device will immediately trigger connection bypassing the
user approval phase.
Also, added a method to remove all of the approvals for the app when the
app is uninstalled & via shell commands (for ACTS testing).
Bug: 122658039
Test: ./frameworks/opt/net/wifi/tests/wifitests/runtests.sh
Test: act.py -c wifi_manager.config -tb dut-name -tc WifiNetworkRequestTest
Test: act.py -c wifi_manager.config -tb dut-name -tc WifiNetworkRequestTest:test_connect_to_wpa_psk_2g_which_is_already_approved
Change-Id: I85b8c872f53d682d47477d067df347352d5aa2d9
6 files changed