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

Commit 49414c7e authored by Jack Yu's avatar Jack Yu Committed by Android (Google) Code Review
Browse files

Merge "Cleaned up the phone type check" into main

parents e7b7b57b ab3f070b
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.
     */