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
diff --git a/cmds/dumpstate/dumpstate.c b/cmds/dumpstate/dumpstate.c
index 6570078..7738648 100644
--- a/cmds/dumpstate/dumpstate.c
+++ b/cmds/dumpstate/dumpstate.c
@@ -124,6 +124,13 @@
             "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);