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

Commit ab3f070b authored by Jack Yu's avatar Jack Yu
Browse files

Cleaned up the phone type check

Phone type can only be GSM now after CDMA code removed. So
removing all isPhoneTypeXxx checks.

Also removed some dead codes.

Bug: 423974654
Test: Basic telephony functionality tests
Flag: EXEMPT dead code removal
Change-Id: I2c741e111a9208b28982fed66b9b00ab3bfc01f5
parent ad66e910
Loading
Loading
Loading
Loading
+7 −9
Original line number Diff line number Diff line
@@ -11882,20 +11882,18 @@ public class TelephonyManager {
    }
    /**
     * @throws UnsupportedOperationException If the device does not have
     *          {@link PackageManager#FEATURE_TELEPHONY_RADIO_ACCESS}.
     * Checks if the device needs to be provisioned for OTA (Over-The-Air) service.
     * OTA service provisioning is a device-specific process that may be required
     * before the device can connect to the cellular network.
     *
     * <p>This method always returns {@code false} as CDMA is no longer supported.
     *
     * @return {@code false} always.
     * @hide
     */
    @SystemApi
    @RequiresFeature(PackageManager.FEATURE_TELEPHONY_RADIO_ACCESS)
    public boolean needsOtaServiceProvisioning() {
        try {
            ITelephony telephony = getITelephony();
            if (telephony != null)
                return telephony.needsOtaServiceProvisioning();
        } catch (RemoteException e) {
            Log.e(TAG, "Error calling ITelephony#needsOtaServiceProvisioning", e);
        }
        return false;
    }
+0 −7
Original line number Diff line number Diff line
@@ -411,13 +411,6 @@ interface ITelephony {
     */
    int getActivePhoneTypeForSlot(int slotIndex);

    /**
     * Returns true if OTA service provisioning needs to run.
     * Only relevant on some technologies, others will always
     * return false.
     */
    boolean needsOtaServiceProvisioning();

    /**
     * Sets the voicemail number for a particular subscriber.
     */