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

Commit 55f10cb1 authored by arunvoddu's avatar arunvoddu
Browse files

Logging carrier restriction status information in case of debug binary

Flag: EXEMPT bugfix
Bug: 359450368
Test: Verified manually
Change-Id: Ic50315c18951964b69a0a0dad95df83b4cb4abdb
parent 62ae5207
Loading
Loading
Loading
Loading
+10 −2
Original line number Diff line number Diff line
@@ -463,8 +463,9 @@ public final class CarrierRestrictionRules implements Parcelable {
    public String toString() {
        return "CarrierRestrictionRules(allowed:" + mAllowedCarriers + ", excluded:"
                + mExcludedCarriers + ", default:" + mCarrierRestrictionDefault
                + ", MultiSim policy:" + mMultiSimPolicy + getCarrierInfoList() +
                "  mIsCarrierLockInfoSupported = " + mUseCarrierLockInfo + ")";
                + ", MultiSim policy:" + mMultiSimPolicy + getCarrierInfoList()
                + ", mIsCarrierLockInfoSupported = " + mUseCarrierLockInfo
                + getCarrierRestrictionStatusToLog() + ")";
    }

    private String getCarrierInfoList() {
@@ -476,6 +477,13 @@ public final class CarrierRestrictionRules implements Parcelable {
        }
    }

    private String getCarrierRestrictionStatusToLog() {
        if(android.os.Build.isDebuggable()) {
            return ", CarrierRestrictionStatus = " + mCarrierRestrictionStatus;
        }
        return "";
    }

    /**
     * Builder for a {@link CarrierRestrictionRules}.
     */