ActivityManager.DumpPackageState(FileDescriptor, String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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.
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.