[WifiInstaller] Delete files only if parsed successfully
Added input checks and delete the configuration file (passed as
a URI) only if it contains a valid Passpoint configuration.
Test: Download a real configuration file, verify correct
installation and file deleted.
Test: Download a garbage file with the correct mime type, verify
that installation fails and the file is not deleted.
(cherry picked from commit 834fe82d8926a3e1ba1ce2a0811f921f006190da)
1 file changed