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
diff --git a/telecomm/java/android/telecom/ConnectionService.java b/telecomm/java/android/telecom/ConnectionService.java
index d82205e..887a4f0 100755
--- a/telecomm/java/android/telecom/ConnectionService.java
+++ b/telecomm/java/android/telecom/ConnectionService.java
@@ -2297,7 +2297,7 @@
}
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 {