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

Commit fda1f432 authored by Arun Voddu's avatar Arun Voddu Committed by Android (Google) Code Review
Browse files

Merge "Logging carrier restriction status information in case of debug binary" into main

parents 969a9dc5 55f10cb1
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}.
     */