Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d676c5c1 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Hide APN, USER and Password from log in SETUP_DATA_CALL"

parents 3a12454f 8b34ac65
Loading
Loading
Loading
Loading
+5 −2
Original line number Original line Diff line number Diff line
@@ -17,6 +17,7 @@
package android.telephony.data;
package android.telephony.data;


import android.annotation.SystemApi;
import android.annotation.SystemApi;
import android.os.Build;
import android.os.Parcel;
import android.os.Parcel;
import android.os.Parcelable;
import android.os.Parcelable;
import android.text.TextUtils;
import android.text.TextUtils;
@@ -230,8 +231,10 @@ public final class DataProfile implements Parcelable {


    @Override
    @Override
    public String toString() {
    public String toString() {
        return "DataProfile=" + mProfileId + "/" + mApn + "/" + mProtocol + "/" + mAuthType
        return "DataProfile=" + mProfileId + "/" + mProtocol + "/" + mAuthType
                + "/" + mUserName + "/" + mPassword + "/" + mType + "/" + mMaxConnsTime
                + "/" + (Build.IS_USER ? "***/***/***" :
                         (mApn + "/" + mUserName + "/" + mPassword))
                + "/" + mType + "/" + mMaxConnsTime
                + "/" + mMaxConns + "/" + mWaitTime + "/" + mEnabled + "/"
                + "/" + mMaxConns + "/" + mWaitTime + "/" + mEnabled + "/"
                + mSupportedApnTypesBitmap + "/" + mRoamingProtocol + "/" + mBearerBitmap + "/"
                + mSupportedApnTypesBitmap + "/" + mRoamingProtocol + "/" + mBearerBitmap + "/"
                + mMtu + "/" + mMvnoType + "/" + mMvnoMatchData + "/" + mModemCognitive;
                + mMtu + "/" + mMvnoType + "/" + mMvnoMatchData + "/" + mModemCognitive;