summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author John Michelau <john.michelau@motorola.com> 2010-09-22 16:49:19 -0500
committer Wink Saville <wink@google.com> 2011-05-14 18:54:47 -0700
commit71bbe7a87cc75dba446db807a0f223cba8fa2e6c (patch)
tree45adc30bc6bf457162e94cfa9213eba4288e9d15
parent6e41b32dd08a866cb7158b387646e96c9105831b (diff)
Support for Vendor RIL dump of baseband logs
Added hook for Vendor RIL to provide a dump of the underlying baseband's logs. The Vendor RIL must implement the actual executable that does the capture. Change-Id: I40fdf2ccc4bb14a9cef92b7866fad19684502524
-rw-r--r--cmds/dumpstate/dumpstate.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/cmds/dumpstate/dumpstate.c b/cmds/dumpstate/dumpstate.c
index 6570078f2065..77386489abf7 100644
--- a/cmds/dumpstate/dumpstate.c
+++ b/cmds/dumpstate/dumpstate.c
@@ -124,6 +124,13 @@ static void dumpstate() {
"su", "root", "wlutil", "counters", NULL);
#endif
+ char ril_dumpstate_timeout[PROPERTY_VALUE_MAX] = {0};
+ property_get("ril.dumpstate.timeout", ril_dumpstate_timeout, "30");
+ if (strlen(ril_dumpstate_timeout) > 0) {
+ run_command("DUMP VENDOR RIL LOGS", atoi(ril_dumpstate_timeout),
+ "su", "root", "vril-dump", NULL);
+ }
+
print_properties();
run_command("KERNEL LOG", 20, "dmesg", NULL);