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

Commit 7b960c8a authored by Amit Mahajan's avatar Amit Mahajan
Browse files

Hide sensitive payload from logging.

For:
RIL_REQUEST_SIM_OPEN_CHANNEL
RIL_REQUEST_SIM_TRANSMIT_APDU_CHANNEL
UNSOL_STK_EVENT_NOTIFY
UNSOL_STK_PROACTIVE_COMMAND

Bug: 17984085
Change-Id: I8b83ae0d85792636bae0b7e0f57b0ea6e5cb33d9
parent 8eb4b07b
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -2631,6 +2631,9 @@ public final class RIL extends BaseCommands implements CommandsInterface {
            case RIL_REQUEST_GET_IMSI:
            case RIL_REQUEST_GET_IMEI:
            case RIL_REQUEST_GET_IMEISV:
            case RIL_REQUEST_SIM_OPEN_CHANNEL:
            case RIL_REQUEST_SIM_TRANSMIT_APDU_CHANNEL:

                if (!RILJ_LOGV) {
                    // If not versbose logging just return and don't display IMSI and IMEI, IMEISV
                    return "";
@@ -2902,7 +2905,7 @@ public final class RIL extends BaseCommands implements CommandsInterface {
                break;

            case RIL_UNSOL_STK_PROACTIVE_COMMAND:
                if (RILJ_LOGD) unsljLogRet(response, ret);
                if (RILJ_LOGD) unsljLog(response);

                if (mCatProCmdRegistrant != null) {
                    mCatProCmdRegistrant.notifyRegistrant(
@@ -2911,7 +2914,7 @@ public final class RIL extends BaseCommands implements CommandsInterface {
                break;

            case RIL_UNSOL_STK_EVENT_NOTIFY:
                if (RILJ_LOGD) unsljLogRet(response, ret);
                if (RILJ_LOGD) unsljLog(response);

                if (mCatEventRegistrant != null) {
                    mCatEventRegistrant.notifyRegistrant(