Merge "Remove isUnsafeBuild() from IpSecAlgorithm"
This commit is contained in:
@@ -469,20 +469,12 @@ public final class IpSecAlgorithm implements Parcelable {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Because encryption keys are sensitive and userdebug builds are used by large user pools
|
|
||||||
// such as beta testers, we only allow sensitive info such as keys on eng builds.
|
|
||||||
private static boolean isUnsafeBuild() {
|
|
||||||
return Build.IS_DEBUGGABLE && Build.IS_ENG;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@NonNull
|
@NonNull
|
||||||
public String toString() {
|
public String toString() {
|
||||||
return new StringBuilder()
|
return new StringBuilder()
|
||||||
.append("{mName=")
|
.append("{mName=")
|
||||||
.append(mName)
|
.append(mName)
|
||||||
.append(", mKey=")
|
|
||||||
.append(isUnsafeBuild() ? HexDump.toHexString(mKey) : "<hidden>")
|
|
||||||
.append(", mTruncLenBits=")
|
.append(", mTruncLenBits=")
|
||||||
.append(mTruncLenBits)
|
.append(mTruncLenBits)
|
||||||
.append("}")
|
.append("}")
|
||||||
|
|||||||
Reference in New Issue
Block a user