DevicePolicyManager.GetCertInstallerPackage(ComponentName) Method

Definition

Called by a profile owner or device owner to retrieve the certificate installer for the user, or null if none is set.

[Android.Runtime.Register("getCertInstallerPackage", "(Landroid/content/ComponentName;)Ljava/lang/String;", "GetGetCertInstallerPackage_Landroid_content_ComponentName_Handler", ApiSince=23)]
public virtual string? GetCertInstallerPackage (Android.Content.ComponentName admin);
[<Android.Runtime.Register("getCertInstallerPackage", "(Landroid/content/ComponentName;)Ljava/lang/String;", "GetGetCertInstallerPackage_Landroid_content_ComponentName_Handler", ApiSince=23)>]
abstract member GetCertInstallerPackage : Android.Content.ComponentName -> string
override this.GetCertInstallerPackage : Android.Content.ComponentName -> string

Parameters

admin
ComponentName

Which DeviceAdminReceiver this request is associated with.

Returns

The package name of the current delegated certificate installer, or null if none is set.

Attributes

Remarks

Called by a profile owner or device owner to retrieve the certificate installer for the user, or null if none is set. If there are multiple delegates this function will return one of them.

This member is deprecated. From android.os.Build.VERSION_CODES#O. Use #getDelegatePackages with the #DELEGATION_CERT_INSTALL scope instead.

Java documentation for android.app.admin.DevicePolicyManager.getCertInstallerPackage(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