diff options
author | android-build-team Robot <android-build-team-robot@google.com> | 2018-08-16 02:14:04 +0000 |
---|---|---|
committer | android-build-team Robot <android-build-team-robot@google.com> | 2018-08-16 02:14:04 +0000 |
commit | 5abd5ecb068ebe233202ae6cc34df871b724bd87 (patch) | |
tree | 29bde0cdef7eb76a1f282e0a35bcb26ea729b533 | |
parent | 21d97fe535f0db2f39d235264d08583c74c7b319 (diff) | |
parent | 55ae4248411a8cbd7eb09d284e40e0bf0e445a55 (diff) | |
download | telephony-pie-dr1-release.tar.gz |
Merge cherrypicks of [4787631, 4787901, 4785407, 4787495, 4788077, 4788078, 4788079, 4788280, 4787496, 4787137, 4786086, 4786087, 4786088, 4786089, 4786090, 4786091, 4787632, 4788320, 4785408] into pi-dr1-releaseandroid-9.0.0_r12android-9.0.0_r11pie-dr1-release
Change-Id: I8eb9aae0dfd629d661427ca2aadc0a7a9c6336ca
-rw-r--r-- | proto/src/telephony.proto | 3 | ||||
-rw-r--r-- | src/java/com/android/internal/telephony/metrics/TelephonyMetrics.java | 5 |
2 files changed, 8 insertions, 0 deletions
diff --git a/proto/src/telephony.proto b/proto/src/telephony.proto index e441f71ca8..c4c6a4f219 100644 --- a/proto/src/telephony.proto +++ b/proto/src/telephony.proto @@ -47,6 +47,9 @@ message TelephonyLog { // Modem power stats optional ModemPowerStats modem_power_stats = 8; + + // Hardware revision (EVT, DVT, PVT etc.) + optional string hardware_revision = 9; } // The time information diff --git a/src/java/com/android/internal/telephony/metrics/TelephonyMetrics.java b/src/java/com/android/internal/telephony/metrics/TelephonyMetrics.java index a436d25cdc..a390b759b7 100644 --- a/src/java/com/android/internal/telephony/metrics/TelephonyMetrics.java +++ b/src/java/com/android/internal/telephony/metrics/TelephonyMetrics.java @@ -38,6 +38,7 @@ import static com.android.internal.telephony.nano.TelephonyProto.PdpType.PDP_UNK import android.hardware.radio.V1_0.SetupDataCallResult; import android.os.Build; import android.os.SystemClock; +import android.os.SystemProperties; import android.telephony.Rlog; import android.telephony.ServiceState; import android.telephony.TelephonyHistogram; @@ -431,6 +432,7 @@ public class TelephonyMetrics { pw.println("Amount of time modem is in rx (ms): " + s.rxTimeMs); pw.println("Amount of time modem is in tx (ms): " + Arrays.toString(s.txTimeMs)); pw.decreaseIndent(); + pw.println("Hardware Version: " + SystemProperties.get("ro.boot.revision", "")); } /** @@ -527,6 +529,9 @@ public class TelephonyMetrics { // Build modem power metrics log.modemPowerStats = new ModemPowerMetrics().buildProto(); + // Log the hardware revision + log.hardwareRevision = SystemProperties.get("ro.boot.revision", ""); + // Log the starting system time log.startTime = new TelephonyProto.Time(); log.startTime.systemTimestampMillis = mStartSystemTimeMs; |