Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c7749814 authored by Pranav Madapurmath's avatar Pranav Madapurmath
Browse files

TelephonyManager API review changes

Addressing feedback from API review regarding resolving the Fi
TelephonyManager dependencies by Telecom. This includes removing
references to requiring permission from the doc as it's already defined
by the annotation as well as using the pre-defined constant for the
newly created permission (ACCESS_LAST_KNOWN_CELL_ID).

Bug: 321265124
Bug: 311773409
Test: m
Change-Id: Icab6baa6c4422e83db8ecd8bab64ef241c12df99
parent e34c1d2d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -14712,7 +14712,7 @@ package android.telephony {
    method @RequiresPermission(android.Manifest.permission.READ_PRIVILEGED_PHONE_STATE) public int getEmergencyNumberDbVersion();
    method @Nullable @RequiresPermission(android.Manifest.permission.READ_PRIVILEGED_PHONE_STATE) public String getIsimDomain();
    method @Nullable @RequiresPermission(android.Manifest.permission.READ_PRIVILEGED_PHONE_STATE) public String getIsimIst();
    method @FlaggedApi("com.android.server.telecom.flags.telecom_resolve_hidden_dependencies") @Nullable @RequiresPermission(allOf={android.Manifest.permission.ACCESS_FINE_LOCATION, "com.android.phone.permission.ACCESS_LAST_KNOWN_CELL_ID"}) public android.telephony.CellIdentity getLastKnownCellIdentity();
    method @FlaggedApi("com.android.server.telecom.flags.telecom_resolve_hidden_dependencies") @Nullable @RequiresPermission(allOf={android.Manifest.permission.ACCESS_FINE_LOCATION, android.Manifest.permission.ACCESS_LAST_KNOWN_CELL_ID}) public android.telephony.CellIdentity getLastKnownCellIdentity();
    method @Deprecated @NonNull @RequiresPermission(android.Manifest.permission.READ_PRIVILEGED_PHONE_STATE) public java.util.Map<java.lang.Integer,java.lang.Integer> getLogicalToPhysicalSlotMapping();
    method public int getMaxNumberOfSimultaneouslyActiveSims();
    method public static long getMaxNumberVerificationTimeoutMillis();
+1 −2
Original line number Diff line number Diff line
@@ -18483,7 +18483,6 @@ public class TelephonyManager {
    /**
     * Get last known cell identity.
     * Require appropriate permissions, 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
@@ -18495,7 +18494,7 @@ public class TelephonyManager {
    @SystemApi
    @FlaggedApi(com.android.server.telecom.flags.Flags.FLAG_TELECOM_RESOLVE_HIDDEN_DEPENDENCIES)
    @RequiresPermission(allOf = {Manifest.permission.ACCESS_FINE_LOCATION,
            "com.android.phone.permission.ACCESS_LAST_KNOWN_CELL_ID"})
            Manifest.permission.ACCESS_LAST_KNOWN_CELL_ID})
    public @Nullable CellIdentity getLastKnownCellIdentity() {
        try {
            ITelephony telephony = getITelephony();