summaryrefslogtreecommitdiff
path: root/service
diff options
context:
space:
mode:
authorSiddharth Ray <siddharthr@google.com>2018-08-10 17:37:23 -0700
committerSiddharth Ray <siddharthr@google.com>2018-08-15 13:54:44 -0700
commit7cd3e51bbe6513217933b436e9ece2600ba0805f (patch)
treeb7d7cec1ddfb1ee4971b57f6f8f308ffaf48ec1b /service
parent4db818057501c2b913825e7eeb78c89a82c98fff (diff)
Addition of HW Revision to Wifi Metrics
Test: adb shell dumpsys wifi | grep "Hardware Version" Hardware Version: EVT2.0 BUG:112541087 Change-Id: I05146d74f9e3f0fefbce5b71f2da8cbd251c4d86 Merged-In: I05146d74f9e3f0fefbce5b71f2da8cbd251c4d86
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", "");
}
}