summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Hugo Benichi <hugobenichi@google.com> 2016-11-10 23:55:50 +0000
committer android-build-merger <android-build-merger@google.com> 2016-11-10 23:55:50 +0000
commitb446883f3f66bf5f760c884c007dbe40de49b06b (patch)
tree58d04e39719cd54a036cb25778af7d05a581880f
parent0e11e0d9612dc3a434efd68f4cc2a9818d4795cf (diff)
parent0e013c9b9f19f641f97d7832032603e5cf1af27f (diff)
resolve merge conflicts of 89aa6fb to mnc-dr-dev am: a0cfb157ec
am: 0e013c9b9f Change-Id: Iab130296a52ba31005344793ed07c22003ac729f
-rw-r--r--services/net/java/android/net/dhcp/DhcpClient.java9
1 files changed, 9 insertions, 0 deletions
diff --git a/services/net/java/android/net/dhcp/DhcpClient.java b/services/net/java/android/net/dhcp/DhcpClient.java
index c9efc69b5979..ac0c6a3aec65 100644
--- a/services/net/java/android/net/dhcp/DhcpClient.java
+++ b/services/net/java/android/net/dhcp/DhcpClient.java
@@ -43,6 +43,7 @@ import android.os.SystemClock;
import android.system.ErrnoException;
import android.system.Os;
import android.system.PacketSocketAddress;
+import android.util.EventLog;
import android.util.Log;
import android.util.TimeUtils;
@@ -372,6 +373,14 @@ public class DhcpClient extends BaseDhcpStateMachine {
if (PACKET_DBG) {
Log.d(TAG, HexDump.dumpHexString(mPacket, 0, length));
}
+ } catch (Exception e) {
+ // SafetyNet logging for b/31850211
+ int snetTagId = 0x534e4554;
+ String bugId = "31850211";
+ int uid = -1;
+ String data = e.getClass().getName();
+ EventLog.writeEvent(snetTagId, bugId, uid, data);
+ Log.e(TAG, "Failed to parse DHCP packet", e);
}
}
maybeLog("Receive thread stopped");