From 02523f5cec3856bb3442750de30d1b55bb20e8f7 Mon Sep 17 00:00:00 2001 From: Amit Mahajan Date: Fri, 23 Apr 2021 16:46:36 -0700 Subject: [PATCH] Redact cellIdentity from logs since it's PII. Test: manual Bug: 185173370 Change-Id: Ib11def900cbd29981364a92208592790404ae647 --- services/core/java/com/android/server/TelephonyRegistry.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/services/core/java/com/android/server/TelephonyRegistry.java b/services/core/java/com/android/server/TelephonyRegistry.java index ee3530a9eac85..edf832f0fc22f 100644 --- a/services/core/java/com/android/server/TelephonyRegistry.java +++ b/services/core/java/com/android/server/TelephonyRegistry.java @@ -2072,7 +2072,8 @@ public class TelephonyRegistry extends ITelephonyRegistry.Stub { private void notifyCellLocationForSubscriber(int subId, CellIdentity cellIdentity, boolean hasUserSwitched) { - log("notifyCellLocationForSubscriber: subId=" + subId + " cellIdentity=" + cellIdentity); + log("notifyCellLocationForSubscriber: subId=" + subId + " cellIdentity=" + + Rlog.pii(DBG || VDBG || DBG_LOC, cellIdentity)); if (!checkNotifyPermission("notifyCellLocation()")) { return; }