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

Commit f060a2a6 authored by Yashdev Singh's avatar Yashdev Singh
Browse files

Telephony: Add new api isMmsDataConnectivityPossible.

- Add a new telephony manager api to get possiblity of mms PDP.
- Its a preemptive API, if app is made aware of that MMS PDP is not possible
  then app can preempt the transaction. It would help in avoiding
  unnecessary PS ATTACH or DDS switches in msim devices.

Change-Id: I4d9dddd138baed4581ca0e01fe301f605c4d8602
parent 1cb137fc
Loading
Loading
Loading
Loading
+11 −0
Original line number Diff line number Diff line
@@ -3434,6 +3434,17 @@ public class TelephonyManager {
        return false;
    }

    /** @hide */
    @SystemApi
    public boolean isDataPossibleForSubscription(long subId, String apnType) {
        try {
            return getITelephony().isDataPossibleForSubscription(subId, apnType);
        } catch (RemoteException e) {
            Log.e(TAG, "Error calling ITelephony#isDataPossibleForSubscription", e);
        }
        return false;
    }

    /** @hide */
    @SystemApi
    public boolean needsOtaServiceProvisioning() {
+5 −0
Original line number Diff line number Diff line
@@ -322,6 +322,11 @@ interface ITelephony {
     */
    boolean isDataConnectivityPossible();

    /**
     * Report whether mms data connectivity is possible.
     */
    boolean isDataPossibleForSubscription(long subId, String apnType);

    Bundle getCellLocation();

    /**