Fix Seeting crash when request network scan.
The API requestNetworkScan didn't set the MinSdkVersionForCoarse and MinSdkVersionForCoarse.
It caused that the LocationAccessPolicy throw the IllegalArgumentException
Bug: 158734562
Test: manual
Change-Id: I10e2035339eb40e40ac5163f3e6c45639401a76d
diff --git a/src/com/android/phone/PhoneInterfaceManager.java b/src/com/android/phone/PhoneInterfaceManager.java
index 8d26c5a..7aef757 100755
--- a/src/com/android/phone/PhoneInterfaceManager.java
+++ b/src/com/android/phone/PhoneInterfaceManager.java
@@ -5414,6 +5414,8 @@
.setCallingUid(Binder.getCallingUid())
.setMethod("requestNetworkScan")
.setMinSdkVersionForFine(Build.VERSION_CODES.Q)
+ .setMinSdkVersionForCoarse(Build.VERSION_CODES.Q)
+ .setMinSdkVersionForEnforcement(Build.VERSION_CODES.Q)
.build());
if (locationResult != LocationAccessPolicy.LocationPermissionResult.ALLOWED) {
SecurityException e = checkNetworkRequestForSanitizedLocationAccess(request, subId);