WifiInstaller: use new Passpoint API
New API is added to WifiManager for provisioning Passpoint
configurations, so use that API instead of using the API
for adding Wifi networks.
Additional changes:
- Remove the restriction on only allowing the installation when
WiFi is enabled, since the new APIs have no such limitation and
the installation of a configuration should not depend on the state
of the WiFi.
- Previously, the configuration file deletion was done by the parser
(in WifiService). This doesn't make sense since the configuration
data file is owned by the app not the parser. So instead, the file
will be deleted by the app (WifiInstaller).
Bug: 32282288
Test: Download and install a Boingo profile
Change-Id: I4af737f25cbe2e5c815a9abe83f98cc13970a2cc
2 files changed