diff options
author | TreeHugger Robot <treehugger-gerrit@google.com> | 2018-11-12 23:22:20 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2018-11-12 23:22:20 +0000 |
commit | 0a5ff7a2f1f875bb1346bcdec5926ba77a605f34 (patch) | |
tree | 85c885283129de764d61bf2106496fb64180923e /service | |
parent | 51134fb02c2b0b64b9705aa293bf929d45b76a65 (diff) | |
parent | f14d04bae2a302484c6bd79489192222ce26696d (diff) |
Merge "Add dumpsys to help debug Carrier Wi-Fi" into pi-dev
Diffstat (limited to 'service')
-rw-r--r-- | service/java/com/android/server/wifi/CarrierNetworkConfig.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/service/java/com/android/server/wifi/CarrierNetworkConfig.java b/service/java/com/android/server/wifi/CarrierNetworkConfig.java index 78dbe3a0d..cf39e0a7b 100644 --- a/service/java/com/android/server/wifi/CarrierNetworkConfig.java +++ b/service/java/com/android/server/wifi/CarrierNetworkConfig.java @@ -59,6 +59,7 @@ public class CarrierNetworkConfig { private final Map<String, NetworkInfo> mCarrierNetworkMap; private boolean mIsCarrierImsiEncryptionInfoAvailable = false; + private ImsiEncryptionInfo mLastImsiEncryptionInfo = null; // used for dumpsys only /** * Enable/disable verbose logging. @@ -137,9 +138,9 @@ public class CarrierNetworkConfig { return false; } try { - ImsiEncryptionInfo imsiEncryptionInfo = telephonyManager + mLastImsiEncryptionInfo = telephonyManager .getCarrierInfoForImsiEncryption(TelephonyManager.KEY_TYPE_WLAN); - if (imsiEncryptionInfo == null) { + if (mLastImsiEncryptionInfo == null) { return false; } } catch (RuntimeException e) { @@ -280,5 +281,6 @@ public class CarrierNetworkConfig { pw.println("mCarrierNetworkMap=" + mCarrierNetworkMap); pw.println("mIsCarrierImsiEncryptionInfoAvailable=" + mIsCarrierImsiEncryptionInfoAvailable); + pw.println("mLastImsiEncryptionInfo=" + mLastImsiEncryptionInfo); } } |