WifiConfigStore: Skip unknown sections from XML

If we delete a module which previously stored some data in the config
store, we need to gracefully handle such transitions on upgrading
devices. Instead of aborting when we find a section with no
corresponding StoreData instead, gracefully skip that section entirely.

Bug: 139866000
Test: atest com.android.server.wifi.WifiConfigStoreTest
Test: Verified that the error seen on my local device in the linked bug
is no longer seen and the rest of the user store data was parsed
correctly.

Change-Id: Ia09fb1e720a46337da610e7f0ee3975b837a3aee
2 files changed
tree: 6f54d2bb53806aa0e2d7d7801880544b6a4d2996
  1. service/
  2. PREUPLOAD.cfg