Don't print PII
Anthony Lee [Tue, 25 Aug 2015 16:28:42 +0000 (09:28 -0700)]
Bug: 22907228
Change-Id: I8a9926f5374ad4dc15c993dcfcc039852acdfb0f

src/java/com/android/internal/telephony/uicc/IccRecords.java

index 4049d4b..d91c4e7 100644 (file)
@@ -25,6 +25,8 @@ import android.os.RegistrantList;
 
 import android.telephony.Rlog;
 import android.telephony.TelephonyManager;
+import android.text.TextUtils;
+
 import com.android.internal.telephony.CommandsInterface;
 import com.android.internal.telephony.uicc.IccCardApplicationStatus.AppState;
 
@@ -713,7 +715,11 @@ public abstract class IccRecords extends Handler implements IccConstants {
         pw.println(" mRecordsToLoad=" + mRecordsToLoad);
         pw.println(" mRdnCache=" + mAdnCache);
         pw.println(" iccid=" + mIccId);
-        pw.println(" mMsisdn=" + mMsisdn);
+        if (TextUtils.isEmpty(mMsisdn)) {
+            pw.println(" mMsisdn=null");
+        } else {
+            pw.println(" mMsisdn=" + (VDBG ? mMsisdn : "XXX"));
+        }
         pw.println(" mMsisdnTag=" + mMsisdnTag);
         pw.println(" mVoiceMailNum=" + mVoiceMailNum);
         pw.println(" mVoiceMailTag=" + mVoiceMailTag);