android.mime.types: Add application/x-wifi-config.

This is an Android-specific MIME type that we want to map to the
file extension .xml.

The .xml file extension already maps to text/xml and we want to
keep it that way, so this CL uses "*xml" to keep the existing mapping.

The MIME type doesn't otherwise occur. This CL enforces this assumption
by putting the MIME type as "*application/x-wifi-config" but adding a
unit test to check that it is mapped as expected. A future CL might
introduce some different prefix ('+' or similar) to assert that a
mapping is newly added (as opposed to re-added).

Test: atest CtsLibcoreTestCases:libcore.libcore.net.MimeMapTest
Bug: 131913690

Change-Id: Ib7f93ea91c7360e76ecef0542c38d60185525e44
2 files changed