Formalize Fi specific TelephonyManager APIs
Move android.permission.ACCESS_LAST_KNOWN_CELL_ID into core manifest so
that it can be leveraged for CTS.
Bug: 307818100
Bug: 311773409
Test: atest TelephonyManagerTest
Change-Id: I4f142a3e38603c745ef42e4918dc65af4c639cbe
diff --git a/AndroidManifest.xml b/AndroidManifest.xml
index 7e56e8b..6e20222 100644
--- a/AndroidManifest.xml
+++ b/AndroidManifest.xml
@@ -167,10 +167,6 @@
<!-- Needed to register for UWB state changes for satellite communication -->
<uses-permission android:name="android.permission.UWB_PRIVILEGED"/>
- <permission android:name="com.android.phone.permission.ACCESS_LAST_KNOWN_CELL_ID"
- android:label="Access last known cell identity."
- android:protectionLevel="signature"/>
-
<application android:name="PhoneApp"
android:persistent="true"
android:label="@string/phoneAppLabel"
diff --git a/src/com/android/phone/PhoneInterfaceManager.java b/src/com/android/phone/PhoneInterfaceManager.java
index 1937658..cbf00dd 100644
--- a/src/com/android/phone/PhoneInterfaceManager.java
+++ b/src/com/android/phone/PhoneInterfaceManager.java
@@ -11723,8 +11723,9 @@
* @return {@CellIdentity} last known cell identity {@CellIdentity}.
*
* Require {@link android.Manifest.permission#ACCESS_FINE_LOCATION} and
- * com.android.phone.permission.ACCESS_LAST_KNOWN_CELL_ID, otherwise throws
+ * {@link android.Manifest.permission#ACCESS_LAST_KNOWN_CELL_ID}, otherwise throws
* SecurityException.
+ *
* If there is current registered network this value will be same as the registered cell
* identity. If the device goes out of service the previous cell identity is cached and
* will be returned. If the cache age of the Cell identity is more than 24 hours