diff options
| author | 2018-02-27 02:03:54 +0000 | |
|---|---|---|
| committer | 2018-02-27 02:03:54 +0000 | |
| commit | 5f676ad625c801692ee6128a6f59a87182bb70f7 (patch) | |
| tree | 053565faa84979e2c694894d625e4341cd1aa24c | |
| parent | b4654687ef1388e714bcb4d5bdea463aaa4f36d6 (diff) | |
| parent | 1d2ddbb9ae518889aba11703c5dab74ed71d85ca (diff) | |
Merge "Hide APN, USER and Password from log in SETUP_DATA_CALL" am: d676c5c134
am: 1d2ddbb9ae
Change-Id: Ib137d185149dca4ae5117f6c32f610281960123a
| -rw-r--r-- | telephony/java/android/telephony/data/DataProfile.java | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/telephony/java/android/telephony/data/DataProfile.java b/telephony/java/android/telephony/data/DataProfile.java index 41c1430e386f..e8597b221391 100644 --- a/telephony/java/android/telephony/data/DataProfile.java +++ b/telephony/java/android/telephony/data/DataProfile.java @@ -17,6 +17,7 @@ package android.telephony.data; import android.annotation.SystemApi; +import android.os.Build; import android.os.Parcel; import android.os.Parcelable; import android.text.TextUtils; @@ -230,8 +231,10 @@ public final class DataProfile implements Parcelable { @Override public String toString() { - return "DataProfile=" + mProfileId + "/" + mApn + "/" + mProtocol + "/" + mAuthType - + "/" + mUserName + "/" + mPassword + "/" + mType + "/" + mMaxConnsTime + return "DataProfile=" + mProfileId + "/" + mProtocol + "/" + mAuthType + + "/" + (Build.IS_USER ? "***/***/***" : + (mApn + "/" + mUserName + "/" + mPassword)) + + "/" + mType + "/" + mMaxConnsTime + "/" + mMaxConns + "/" + mWaitTime + "/" + mEnabled + "/" + mSupportedApnTypesBitmap + "/" + mRoamingProtocol + "/" + mBearerBitmap + "/" + mMtu + "/" + mMvnoType + "/" + mMvnoMatchData + "/" + mModemCognitive; |