diff options
author | Hai Shalom <haishalom@google.com> | 2020-03-17 18:49:14 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2020-03-17 18:49:14 +0000 |
commit | 5425855b789a8f851292869cb61c1afb0db4ec12 (patch) | |
tree | 634d1b0d0d18b5ea84ec4fe6eee9de0237c391ec | |
parent | 9e5b05950bba2ffeb2fe1bb00c27d3ddb617adae (diff) | |
parent | 9a471250cede3b2186a6232e7f228b65d276479e (diff) |
Merge "[WiFi] Hide IMSI in ClientModeImpl logs" into rvc-dev
-rw-r--r-- | service/java/com/android/server/wifi/ClientModeImpl.java | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/service/java/com/android/server/wifi/ClientModeImpl.java b/service/java/com/android/server/wifi/ClientModeImpl.java index 76b089d79..4f5f7d3b0 100644 --- a/service/java/com/android/server/wifi/ClientModeImpl.java +++ b/service/java/com/android/server/wifi/ClientModeImpl.java @@ -3894,7 +3894,12 @@ public class ClientModeImpl extends StateMachine { // Pair<identity, encrypted identity> Pair<String, String> identityPair = mTelephonyUtil .getSimIdentity(mTargetWifiConfiguration); - Log.i(TAG, "SUP_REQUEST_IDENTITY: identityPair=" + identityPair); + Log.i(TAG, "SUP_REQUEST_IDENTITY: identityPair=[" + + ((identityPair.first.length() >= 7) + ? identityPair.first.substring(0, 7 /* Prefix+PLMN ID */) + "****" + : identityPair.first) + ", " + + (!TextUtils.isEmpty(identityPair.second) ? identityPair.second + : "<NONE>") + "]"); if (identityPair != null && identityPair.first != null) { mWifiNative.simIdentityResponse(mInterfaceName, identityPair.first, identityPair.second); |