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

Commit 8de10932 authored by Nathan Harold's avatar Nathan Harold
Browse files

Add logs for RegFail in TelephonyRegistry

Add a log line to the locallog for telephony
registry, which will hopefully capture some
historical state of the registration failures.

Bug: 269366366
Test: atest TelephonyRegistryTest
Change-Id: I8d9908b2e7f54c31e1ec925ca86e55143ab78171
parent 8e6364b5
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) {