TM#getLastKnownCellIdentity throws SE requires incorrect permission
TelephonyManager#getLastKnownCellIdentity requires permission
ACCESS_FINE_LOCATION and ACCESS_LAST_KNOWN_CELL_ID, not
BIND_CONNECTION_SERVICE.
Bug: 230611714
Test: make
Change-Id: Ia5c789f0c662d49e930a412ed9f16d4639eb2afa
diff --git a/src/com/android/phone/PhoneInterfaceManager.java b/src/com/android/phone/PhoneInterfaceManager.java
index c1db593..8c8a828 100755
--- a/src/com/android/phone/PhoneInterfaceManager.java
+++ b/src/com/android/phone/PhoneInterfaceManager.java
@@ -11166,7 +11166,7 @@
if (!hasFinePermission
|| !TelephonyPermissions.checkLastKnownCellIdAccessPermission(mApp)) {
throw new SecurityException("getLastKnownCellIdentity need ACCESS_FINE_LOCATION "
- + "and BIND_CONNECTION_SERVICE permission.");
+ + "and ACCESS_LAST_KNOWN_CELL_ID permission.");
}
final long identity = Binder.clearCallingIdentity();