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

Commit 4c00e4ce authored by Nathan Harold's avatar Nathan Harold Committed by Android (Google) Code Review
Browse files

Merge "Add logs for RegFail in TelephonyRegistry" into udc-dev

parents c122093e 8de10932
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) {