From 7f9f348bcd064271e4c0aa0fc57a70a403fc1cb0 Mon Sep 17 00:00:00 2001 From: Wenting Xiong Date: Thu, 27 Aug 2020 18:16:06 +0800 Subject: [PATCH] Redact DTMF digits log for production users DTMF digits entered by the user is considered privacy data and should be hidden in the info logs. Test: manual Test: atest CtsTelecomTestCases Bug: 196017457 Change-Id: Ice8b63a6a64608dd7a58daf2c5d98842617db264 --- telecomm/java/android/telecom/ConnectionService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/telecomm/java/android/telecom/ConnectionService.java b/telecomm/java/android/telecom/ConnectionService.java index d82205e205389..887a4f004b804 100755 --- a/telecomm/java/android/telecom/ConnectionService.java +++ b/telecomm/java/android/telecom/ConnectionService.java @@ -2297,7 +2297,7 @@ public abstract class ConnectionService extends Service { } private void playDtmfTone(String callId, char digit) { - Log.i(this, "playDtmfTone %s %c", callId, digit); + Log.i(this, "playDtmfTone %s %s", callId, Log.pii(digit)); if (mConnectionById.containsKey(callId)) { findConnectionForAction(callId, "playDtmfTone").onPlayDtmfTone(digit); } else {