summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoshan Pius <rpius@google.com>2020-03-30 20:45:04 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2020-03-30 20:45:04 +0000
commitd423cc31445bbf5ea65f8a161844403c1df54d64 (patch)
tree296348c9d1dc7c1aae0d7196afbdc1dcd55945f1
parent73dddf087b975622a3621c8334e0e1b092472275 (diff)
parentaca59a05b604fbaaac30c5102c5dbb962039bb72 (diff)
Merge "WifiBackupRestore: Collect legacy ip config data for debugging" into rvc-dev
-rw-r--r--service/java/com/android/server/wifi/WifiBackupRestore.java9
1 files changed, 8 insertions, 1 deletions
diff --git a/service/java/com/android/server/wifi/WifiBackupRestore.java b/service/java/com/android/server/wifi/WifiBackupRestore.java
index 8d86c365f..c55236ee4 100644
--- a/service/java/com/android/server/wifi/WifiBackupRestore.java
+++ b/service/java/com/android/server/wifi/WifiBackupRestore.java
@@ -128,6 +128,7 @@ public class WifiBackupRestore {
private byte[] mDebugLastBackupDataRetrieved;
private byte[] mDebugLastBackupDataRestored;
private byte[] mDebugLastSupplicantBackupDataRestored;
+ private byte[] mDebugLastIpConfigBackupDataRestored;
public WifiBackupRestore(WifiPermissionsUtil wifiPermissionsUtil) {
mWifiPermissionsUtil = wifiPermissionsUtil;
@@ -367,6 +368,7 @@ public class WifiBackupRestore {
if (mVerboseLoggingEnabled) {
mDebugLastSupplicantBackupDataRestored = supplicantData;
+ mDebugLastIpConfigBackupDataRestored = ipConfigData;
}
SupplicantBackupMigration.SupplicantNetworks supplicantNetworks =
@@ -419,6 +421,7 @@ public class WifiBackupRestore {
mDebugLastBackupDataRetrieved = null;
mDebugLastBackupDataRestored = null;
mDebugLastSupplicantBackupDataRestored = null;
+ mDebugLastIpConfigBackupDataRestored = null;
}
}
@@ -440,10 +443,14 @@ public class WifiBackupRestore {
+ createLogFromBackupData(mDebugLastBackupDataRestored));
}
if (mDebugLastSupplicantBackupDataRestored != null) {
- pw.println("Last old backup data restored: "
+ pw.println("Last old supplicant backup data restored: "
+ SupplicantBackupMigration.createLogFromBackupData(
mDebugLastSupplicantBackupDataRestored));
}
+ if (mDebugLastIpConfigBackupDataRestored != null) {
+ pw.println("Last old ipconfig backup data restored: "
+ + mDebugLastIpConfigBackupDataRestored);
+ }
}
/**