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

Commit 8cec31fd authored by Nathan Harold's avatar Nathan Harold Committed by Automerger Merge Worker
Browse files

Merge "Add logs for RegFail in TelephonyRegistry" into udc-dev am: 4c00e4ce

parents 662c3239 4c00e4ce
Loading
Loading
Loading
Loading
+13 −1
Original line number Diff line number Diff line
@@ -2739,7 +2739,7 @@ public class TelephonyRegistry extends ITelephonyRegistry.Stub {
                                    .setImsCallServiceType(prev.getImsCallServiceType())
                                    .setImsCallType(prev.getImsCallType()).build());
                } else {
                    log("There is no active call to report CallQaulity");
                    log("There is no active call to report CallQuality");
                    return;
                }

@@ -2771,6 +2771,18 @@ public class TelephonyRegistry extends ITelephonyRegistry.Stub {
        // most purposes.
        final CellIdentity noLocationCi = cellIdentity.sanitizeLocationInfo();


        // This shouldn't be necessary, but better to not take the chance
        final String primaryPlmn = (cellIdentity != null) ? cellIdentity.getPlmn() : "<UNKNOWN>";

        final String logStr = "Registration Failed for phoneId=" + phoneId
                + " subId=" + subId + "primaryPlmn=" + primaryPlmn
                + " chosenPlmn=" + chosenPlmn + " domain=" + domain
                + " causeCode=" + causeCode + " additionalCauseCode=" + additionalCauseCode;

        mLocalLog.log(logStr);
        if (DBG) log(logStr);

        synchronized (mRecords) {
            if (validatePhoneId(phoneId)) {
                for (Record r : mRecords) {