passpoint: add a condition for checking target SDK version against Q.

As part of deprecatinng WifiManager#getPasspointConfigurations,
the flow of this api is changed based on SDK verson and permission.
 - For targetSDK < Q: return empty list if no permission
 - For targetSDK >= Q: normal failure on lack of permission - SecurityException
 - Go through normal flow otherwise.

Bug: 124301934
Test: ./frameworks/opt/net/wifi/tests/wifitests/runtests.sh
Signed-off-by: Ecco Park <eccopark@google.com>

Change-Id: I923746a5d23b18a8486b1a4fb69ec6fd6ba308e8
2 files changed