Merge "Renamed the id printing method" into udc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
f166dde024
@@ -453,7 +453,7 @@ public final class EuiccProfileInfo implements Parcelable {
|
|||||||
+ ", accessRules="
|
+ ", accessRules="
|
||||||
+ Arrays.toString(mAccessRules)
|
+ Arrays.toString(mAccessRules)
|
||||||
+ ", iccid="
|
+ ", iccid="
|
||||||
+ SubscriptionInfo.givePrintableIccid(mIccid)
|
+ SubscriptionInfo.getPrintableId(mIccid)
|
||||||
+ ")";
|
+ ")";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -947,29 +947,30 @@ public class SubscriptionInfo implements Parcelable {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get ICCID stripped PII information on user build.
|
* Get stripped PII information from the id.
|
||||||
*
|
*
|
||||||
* @param iccId The original ICCID.
|
* @param id The raw id (e.g. ICCID, IMSI, etc...).
|
||||||
* @return The stripped string.
|
* @return The stripped string.
|
||||||
*
|
*
|
||||||
* @hide
|
* @hide
|
||||||
*/
|
*/
|
||||||
public static String givePrintableIccid(String iccId) {
|
@Nullable
|
||||||
String iccIdToPrint = null;
|
public static String getPrintableId(@Nullable String id) {
|
||||||
if (iccId != null) {
|
String idToPrint = null;
|
||||||
if (iccId.length() > 9 && !TelephonyUtils.IS_DEBUGGABLE) {
|
if (id != null) {
|
||||||
iccIdToPrint = iccId.substring(0, 9) + Rlog.pii(false, iccId.substring(9));
|
if (id.length() > 9 && !TelephonyUtils.IS_DEBUGGABLE) {
|
||||||
|
idToPrint = id.substring(0, 9) + Rlog.pii(false, id.substring(9));
|
||||||
} else {
|
} else {
|
||||||
iccIdToPrint = iccId;
|
idToPrint = id;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return iccIdToPrint;
|
return idToPrint;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
String iccIdToPrint = givePrintableIccid(mIccId);
|
String iccIdToPrint = getPrintableId(mIccId);
|
||||||
String cardStringToPrint = givePrintableIccid(mCardString);
|
String cardStringToPrint = getPrintableId(mCardString);
|
||||||
return "[SubscriptionInfo: id=" + mId
|
return "[SubscriptionInfo: id=" + mId
|
||||||
+ " iccId=" + iccIdToPrint
|
+ " iccId=" + iccIdToPrint
|
||||||
+ " simSlotIndex=" + mSimSlotIndex
|
+ " simSlotIndex=" + mSimSlotIndex
|
||||||
|
|||||||
@@ -165,7 +165,7 @@ public final class UiccPortInfo implements Parcelable{
|
|||||||
return "UiccPortInfo (isActive="
|
return "UiccPortInfo (isActive="
|
||||||
+ mIsActive
|
+ mIsActive
|
||||||
+ ", iccId="
|
+ ", iccId="
|
||||||
+ SubscriptionInfo.givePrintableIccid(mIccId)
|
+ SubscriptionInfo.getPrintableId(mIccId)
|
||||||
+ ", portIndex="
|
+ ", portIndex="
|
||||||
+ mPortIndex
|
+ mPortIndex
|
||||||
+ ", mLogicalSlotIndex="
|
+ ", mLogicalSlotIndex="
|
||||||
|
|||||||
@@ -281,7 +281,7 @@ public class UiccSlotInfo implements Parcelable {
|
|||||||
+ ", mIsEuicc="
|
+ ", mIsEuicc="
|
||||||
+ mIsEuicc
|
+ mIsEuicc
|
||||||
+ ", mCardId="
|
+ ", mCardId="
|
||||||
+ SubscriptionInfo.givePrintableIccid(mCardId)
|
+ SubscriptionInfo.getPrintableId(mCardId)
|
||||||
+ ", cardState="
|
+ ", cardState="
|
||||||
+ mCardStateInfo
|
+ mCardStateInfo
|
||||||
+ ", mIsExtendedApduSupported="
|
+ ", mIsExtendedApduSupported="
|
||||||
|
|||||||
Reference in New Issue
Block a user