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
tree: 20313ba5b0c61e2eab6df306d58e559fad9af46d
  1. service/
  2. PREUPLOAD.cfg