diff options
author | Sanket Padawe <sanketpadawe@google.com> | 2015-10-15 15:46:39 -0700 |
---|---|---|
committer | Sanket Padawe <sanketpadawe@google.com> | 2015-10-15 15:46:39 -0700 |
commit | fb34a123ed17b2ab732815608be47d832e5ada89 (patch) | |
tree | 4b605b98c00b698f4a8980a5741c33384a0ffb48 /telephony | |
parent | 575b629ef8e21cca5a40acaafeee7653d90956fe (diff) | |
download | frameworks_base-fb34a123ed17b2ab732815608be47d832e5ada89.zip frameworks_base-fb34a123ed17b2ab732815608be47d832e5ada89.tar.gz frameworks_base-fb34a123ed17b2ab732815608be47d832e5ada89.tar.bz2 |
Mask IccId which gets printed in bug reports & radio logs.
Bug: 24941148
Change-Id: Ibe397f5d9b0da245e3e64f626937db4792c7f3c2
Diffstat (limited to 'telephony')
-rw-r--r-- | telephony/java/android/telephony/SubscriptionInfo.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/telephony/java/android/telephony/SubscriptionInfo.java b/telephony/java/android/telephony/SubscriptionInfo.java index 37ffa06..e11c8d3 100644 --- a/telephony/java/android/telephony/SubscriptionInfo.java +++ b/telephony/java/android/telephony/SubscriptionInfo.java @@ -334,7 +334,8 @@ public class SubscriptionInfo implements Parcelable { @Override public String toString() { - return "{id=" + mId + ", iccId=" + mIccId + " simSlotIndex=" + mSimSlotIndex + String iccIdToPrint = mIccId != null ? mIccId.substring(0, 9) + "XXXXXXXXXXX" : null; + return "{id=" + mId + ", iccId=" + iccIdToPrint + " simSlotIndex=" + mSimSlotIndex + " displayName=" + mDisplayName + " carrierName=" + mCarrierName + " nameSource=" + mNameSource + " iconTint=" + mIconTint + " dataRoaming=" + mDataRoaming + " iconBitmap=" + mIconBitmap + " mcc " + mMcc |