public class CrashDumperPlugin extends java.lang.Object implements DumperPlugin
| Constructor and Description |
|---|
CrashDumperPlugin() |
| Modifier and Type | Method and Description |
|---|---|
void |
dump(DumperContext dumpContext)
Invoked in response to the user running the dumpapp command and specifying your plugin.
|
java.lang.String |
getName()
Plugin name according to the dumpsys command-line interface.
|
public java.lang.String getName()
DumperPlugingetName in interface DumperPluginpublic void dump(DumperContext dumpContext) throws DumpException
DumperPlugin
Any output written to DumperContext.getStdout() will be displayed to the caller.
dump in interface DumperPlugindumpContext - Contains the command-line state (extra arguments, output channel, etc).DumpException - Your plugin can throw this event to easily bail from a dump sequence
on unexpected errors. The message will be displayed directly to the caller and the
dumpapp script will terminate with a non-successful exit code.