Dela via


ActivityManager.DumpPackageState(FileDescriptor, String) Method

Definition

Perform a system dump of various state associated with the given application package name.

[Android.Runtime.Register("dumpPackageState", "(Ljava/io/FileDescriptor;Ljava/lang/String;)V", "GetDumpPackageState_Ljava_io_FileDescriptor_Ljava_lang_String_Handler")]
[Android.Runtime.RequiresPermission("android.permission.DUMP")]
public virtual void DumpPackageState (Java.IO.FileDescriptor? fd, string? packageName);
[<Android.Runtime.Register("dumpPackageState", "(Ljava/io/FileDescriptor;Ljava/lang/String;)V", "GetDumpPackageState_Ljava_io_FileDescriptor_Ljava_lang_String_Handler")>]
[<Android.Runtime.RequiresPermission("android.permission.DUMP")>]
abstract member DumpPackageState : Java.IO.FileDescriptor * string -> unit
override this.DumpPackageState : Java.IO.FileDescriptor * string -> unit

Parameters

fd
FileDescriptor

The file descriptor that the dump should be written to. The file descriptor is <em>not</em> closed by this function; the caller continues to own it.

packageName
String

The name of the package that is to be dumped.

Attributes

Remarks

Perform a system dump of various state associated with the given application package name. This call blocks while the dump is being performed, so should not be done on a UI thread. The data will be written to the given file descriptor as text.

Java documentation for android.app.ActivityManager.dumpPackageState(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