diff options
| author | Aaron Huang <huangaaron@google.com> | 2021-12-09 16:18:06 +0800 |
|---|---|---|
| committer | Aaron Huang <huangaaron@google.com> | 2021-12-15 19:33:03 +0800 |
| commit | e6ab4493c6fc9e2a5af68b16cdb4b047edf6b048 (patch) | |
| tree | c4bdb82deb2896fa553268dae8ebfc348de20c93 /framework-t/src/android/net/IpSecAlgorithm.java | |
| parent | f318d55576d449a811e82bffa80cdc836127ec9f (diff) | |
Remove isUnsafeBuild() from IpSecAlgorithm
IpSec is going to move to Connectivity mainline module so
hidden API usage should be removed. There's no formal API
could be an alternative for Build.IS_ENG. Considering
isUnsafeBuild() is not a really helpful method because it
only prints the log in eng build. Therefore, remove it.
Bug: 204153604
Test: FrameworksNetTests
Change-Id: Ic354e12423629b0d72e8087843893953a0c8c465
Diffstat (limited to 'framework-t/src/android/net/IpSecAlgorithm.java')
| -rw-r--r-- | framework-t/src/android/net/IpSecAlgorithm.java | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/framework-t/src/android/net/IpSecAlgorithm.java b/framework-t/src/android/net/IpSecAlgorithm.java index 840af28b77..5e647fe2f9 100644 --- a/framework-t/src/android/net/IpSecAlgorithm.java +++ b/framework-t/src/android/net/IpSecAlgorithm.java @@ -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 @NonNull public String toString() { return new StringBuilder() .append("{mName=") .append(mName) - .append(", mKey=") - .append(isUnsafeBuild() ? HexDump.toHexString(mKey) : "<hidden>") .append(", mTruncLenBits=") .append(mTruncLenBits) .append("}") |
