[CTS][WIFI] Exempt shell from package validation on getConfiguredNetworks()

The shell may be executed with different package names - which fails
the security check (verifying that UID matches the self-reported
package name).

Exempt the SHELL UID from this matching requirement for the WifiManager#
getConfiguredNetworks() API. Required for CTS usage of the shell.

Bug: 121284726
Test: adb shell cmd netpolicy list wifi-networks
Test: atest android.net.cts.ConnectivityManagerTest#testGetMultipathPreference
Test: atest frameworks/opt/net/wifi/tests/wifitests
Change-Id: Idf25259d79c749aea47c27ceb95f509fed2175c7
1 file changed