Udostępnij za pośrednictwem


DevicePolicyManager.RequestBugreport(ComponentName) Method

Definition

Called by a device owner to request a bugreport.

[Android.Runtime.Register("requestBugreport", "(Landroid/content/ComponentName;)Z", "GetRequestBugreport_Landroid_content_ComponentName_Handler", ApiSince=24)]
public virtual bool RequestBugreport (Android.Content.ComponentName admin);
[<Android.Runtime.Register("requestBugreport", "(Landroid/content/ComponentName;)Z", "GetRequestBugreport_Landroid_content_ComponentName_Handler", ApiSince=24)>]
abstract member RequestBugreport : Android.Content.ComponentName -> bool
override this.RequestBugreport : Android.Content.ComponentName -> bool

Parameters

admin
ComponentName

Which DeviceAdminReceiver this request is associated with.

Returns

true if the bugreport collection started successfully, or false if it wasn't triggered because a previous bugreport operation is still active (either the bugreport is still running or waiting for the user to share or decline)

Attributes

Remarks

Called by a device owner to request a bugreport.

If the device contains secondary users or profiles, they must be affiliated with the device. Otherwise a SecurityException will be thrown. See #isAffiliatedUser.

Java documentation for android.app.admin.DevicePolicyManager.requestBugreport(android.content.ComponentName).

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