summaryrefslogtreecommitdiff
path: root/service
diff options
context:
space:
mode:
authorTreeHugger Robot <treehugger-gerrit@google.com>2018-08-15 23:16:52 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2018-08-15 23:16:52 +0000
commitc442cac03988b303a1151a774cc291a89ed1dad1 (patch)
tree2ca9f9b670957c488e88a77dc8f17770fac52817 /service
parent87ed136e3dc12e605202bb9dca07e8290f908539 (diff)
parent7cd3e51bbe6513217933b436e9ece2600ba0805f (diff)
Merge "Addition of HW Revision to Wifi Metrics" into pi-dev
Diffstat (limited to 'service')
-rw-r--r--service/java/com/android/server/wifi/WifiMetrics.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/service/java/com/android/server/wifi/WifiMetrics.java b/service/java/com/android/server/wifi/WifiMetrics.java
index 0b746196f..15f65c980 100644
--- a/service/java/com/android/server/wifi/WifiMetrics.java
+++ b/service/java/com/android/server/wifi/WifiMetrics.java
@@ -28,6 +28,8 @@ import android.net.wifi.hotspot2.PasspointConfiguration;
import android.os.Handler;
import android.os.Looper;
import android.os.Message;
+import android.os.SystemProperties;
+
import android.util.Base64;
import android.util.Log;
import android.util.Pair;
@@ -2162,6 +2164,7 @@ public class WifiMetrics {
pw.println("mWifiLogProto.isMacRandomizationOn=" + mIsMacRandomizationOn);
pw.println("mWifiLogProto.scoreExperimentId=" + mWifiLogProto.scoreExperimentId);
+ pw.println("Hardware Version: " + SystemProperties.get("ro.boot.revision", ""));
}
}
}
@@ -2528,6 +2531,7 @@ public class WifiMetrics {
mWifiLogProto.wifiPowerStats = mWifiPowerMetrics.buildProto();
mWifiLogProto.wifiWakeStats = mWifiWakeMetrics.buildProto();
mWifiLogProto.isMacRandomizationOn = mIsMacRandomizationOn;
+ mWifiLogProto.hardwareRevision = SystemProperties.get("ro.boot.revision", "");
}
}