WifiConfigurationUtil: Handle malformed wep keys

Changes:
i) Handle malformed wep keys from external apps.
ii) Convert the configKey parse error for a network to a runtime
exception (Runtime exceptions for individual networks result in graceful
skipping of only that network, XmlPullParserException conveys a more
fatal XML structural issue which will results in the entire parsing
being stopped).

Also, removed an unrealistic unit test which converts existing network
from WEP to PSK type in place.

Bug: 169638868
Test: atest com.android.server.wifi
Change-Id: Ie23dbf637e89569ac28543130c886dec5850d7eb
6 files changed
tree: f644f8d31dba93a1ff53dea461a1adbc81cdf3ae
  1. apex/
  2. service/
  3. metrics_pdd_hook.py
  4. PREUPLOAD.cfg