From d2672bda9c27e16adcf22820567713ca628411d2 Mon Sep 17 00:00:00 2001 From: Mike Ma Date: Wed, 15 Jan 2020 15:57:20 -0800 Subject: Dump connmetrics in protobuf format Add protobuf dumpsys of connmetrics. Primarily used by incident service to capture an incident report proto. Currently, "proto" is used to dump the ring buffer in base64-encoded proto. The newly added "--proto" arg is a dumpsys convention to dump a service in proto wire format. This change reuses most of the code for executing "proto". Other cmds remain unchanged. Command to invoke (any of the following after lunch and env setup): $ adb shell dumpsys connmetrics --proto $ incident_report 3049 Bug: 146086778 Test: $ incident_report 3049, then compare the content with "dumpsys connmetrics" Change-Id: Ief2297d99aeb553224a83894ba3b9695ff0b87aa --- proto/Android.bp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'proto') diff --git a/proto/Android.bp b/proto/Android.bp index 7cf6ce740969..01a72eaa6bf8 100644 --- a/proto/Android.bp +++ b/proto/Android.bp @@ -32,3 +32,8 @@ filegroup { name: "system-messages-proto-src", srcs: ["src/system_messages.proto"], } + +filegroup { + name: "ipconnectivity-proto-src", + srcs: ["src/ipconnectivity.proto"], +} -- cgit v1.2.3