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

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

Completely detach old data stack

Not create DcTracker and TransportManager instances
when new data stack is enabled.

Test: atest FrameworksTelephonyTests and manually tested on
Pixel 4 and Pixel 6.
Bug: 222323544

Change-Id: Ice595f329e2f4e531dc577cd3db7c863ba15d6d6
parent a56e6c1f
Loading
Loading
Loading
Loading
+0 −18
Original line number Diff line number Diff line
@@ -8351,24 +8351,6 @@ public class TelephonyManager {
        return -1;
    }
    /**
     * Get P-CSCF address from PCO after data connection is established or modified.
     * @param apnType the apnType, "ims" for IMS APN, "emergency" for EMERGENCY APN
     * @return array of P-CSCF address
     * @hide
     */
    public String[] getPcscfAddress(String apnType) {
        try {
            ITelephony telephony = getITelephony();
            if (telephony == null)
                return new String[0];
            return telephony.getPcscfAddress(apnType, getOpPackageName(), getAttributionTag());
        } catch (RemoteException e) {
            return new String[0];
        }
    }
    /**
     * Resets the {@link android.telephony.ims.ImsService} associated with the specified sim slot.
     * Used by diagnostic apps to force the IMS stack to be disabled and re-enabled in an effort to
+0 −8
Original line number Diff line number Diff line
@@ -977,14 +977,6 @@ interface ITelephony {
     */
     boolean isManualNetworkSelectionAllowed(int subId);

    /**
     * Get P-CSCF address from PCO after data connection is established or modified.
     * @param apnType the apnType, "ims" for IMS APN, "emergency" for EMERGENCY APN
     * @param callingPackage The package making the call.
     * @param callingFeatureId The feature in the package.
     */
    String[] getPcscfAddress(String apnType, String callingPackage, String callingFeatureId);

    /**
     * Set IMS registration state
     */