Require COARSE_LOCATION for TM.getAllCellInfo
For legacy invocations of getAllCellInfo(),
only coarse location is required. It is also required
for getNeighboringCellInfo().
Bug: 124771042
Test: cts - atest RequestLocation#testGetNeighboringCellInfo
Change-Id: I252d5dd53faeee28bec5b9d8eeaa6420a9c49b81
diff --git a/src/com/android/phone/PhoneInterfaceManager.java b/src/com/android/phone/PhoneInterfaceManager.java
index dd5fbcd..e9031b9 100755
--- a/src/com/android/phone/PhoneInterfaceManager.java
+++ b/src/com/android/phone/PhoneInterfaceManager.java
@@ -2017,6 +2017,7 @@
.setCallingPid(Binder.getCallingPid())
.setCallingUid(Binder.getCallingUid())
.setMethod("getAllCellInfo")
+ .setMinSdkVersionForCoarse(Build.VERSION_CODES.BASE)
.setMinSdkVersionForFine(Build.VERSION_CODES.Q)
.build());
switch (locationResult) {