diff options
author | Etan Cohen <etancohen@google.com> | 2018-11-12 16:20:48 -0800 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2018-11-12 16:20:48 -0800 |
commit | 9341b1ef1369ad3ffc5a34c383a0e497a14849db (patch) | |
tree | a4fbcb5cc2f482f6298122acbb8cfad39fce7970 | |
parent | 9b2e34e4368b57d2540dd6f35215547d09386ab2 (diff) | |
parent | 0a5ff7a2f1f875bb1346bcdec5926ba77a605f34 (diff) |
Merge "Add dumpsys to help debug Carrier Wi-Fi" into pi-dev
am: 0a5ff7a2f1
Change-Id: Ib03508702e808b88902ecfac2ebabc1df604a74e
-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); } } |