Share via


Debug.DumpService(String, FileDescriptor, String[]) Method

Definition

Get a debugging dump of a system service by name.

[Android.Runtime.Register("dumpService", "(Ljava/lang/String;Ljava/io/FileDescriptor;[Ljava/lang/String;)Z", "")]
public static bool DumpService (string? name, Java.IO.FileDescriptor? fd, string[]? args);
[<Android.Runtime.Register("dumpService", "(Ljava/lang/String;Ljava/io/FileDescriptor;[Ljava/lang/String;)Z", "")>]
static member DumpService : string * Java.IO.FileDescriptor * string[] -> bool

Parameters

name
String

of the service to dump

fd
FileDescriptor

to write dump output to (usually an output log file)

args
String[]

to pass to the service's dump method, may be null

Returns

true if the service was dumped successfully, false if the service could not be found or had an error while dumping

Attributes

Remarks

Get a debugging dump of a system service by name.

Most services require the caller to hold android.permission.DUMP.

Java documentation for android.os.Debug.dumpService(java.lang.String, java.io.FileDescriptor, java.lang.String[]).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to