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

Commit 172f3ad7 authored by Hunter Knepshield's avatar Hunter Knepshield Committed by Gerrit Code Review
Browse files

Merge "Print out IccIoResult's actual payload contents."

parents 83057d18 c925bf86
Loading
Loading
Loading
Loading
+8 −3
Original line number Diff line number Diff line
@@ -187,9 +187,14 @@ IccIoResult {

    @Override
    public String toString() {
        return "IccIoResult sw1:0x" + Integer.toHexString(sw1) + " sw2:0x"
                + Integer.toHexString(sw2) + " Payload: "
                + ((Build.IS_DEBUGGABLE && Build.IS_ENG) ? payload : "*******")
        return "IccIoResult sw1:0x"
                + Integer.toHexString(sw1)
                + " sw2:0x"
                + Integer.toHexString(sw2)
                + " Payload: "
                + ((Build.IS_DEBUGGABLE && Build.IS_ENG)
                        ? IccUtils.bytesToHexString(payload)
                        : "*******")
                + ((!success()) ? " Error: " + getErrorString() : "");
    }