Allow apps to explicitly share new open networks

wifitrackerlib_config_saveOpenNetworksAsShared will configure new
open networks added via WifiEntry.connect() as shared if true or
private if false. Defaulting to private is required for logged-in
users in the AL use case, but the login screen should always save
networks as "shared". Allow this by adding an extra parameter to
connect() to specify this directly.

Flag: EXEMPT minor backwards compatible change

Bug: 416638579
Test: atest StandardWifiEntryTest
Change-Id: Idc17ba965b0cbe3fabcb3218f507bf9b6a57023f
3 files changed