DevicePolicyManager DevicePolicyManager Class

Definition

Public interface for managing policies enforced on a device.

[Android.Runtime.Register("android/app/admin/DevicePolicyManager", ApiSince=8, DoNotGenerateAcw=true)]
public class DevicePolicyManager : Java.Lang.Object
type DevicePolicyManager = class
    inherit Object
Inheritance
DevicePolicyManagerDevicePolicyManager
Attributes

Remarks

Android platform documentation

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.

Constructors

DevicePolicyManager(IntPtr, JniHandleOwnership) DevicePolicyManager(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

Fields

ActionAddDeviceAdmin ActionAddDeviceAdmin

Activity action: ask the user to add a new device administrator to the system.

ActionApplicationDelegationScopesChanged ActionApplicationDelegationScopesChanged
ActionDeviceAdminService ActionDeviceAdminService
ActionDeviceOwnerChanged ActionDeviceOwnerChanged
ActionManagedProfileProvisioned ActionManagedProfileProvisioned
ActionProvisioningSuccessful ActionProvisioningSuccessful
ActionProvisionManagedDevice ActionProvisionManagedDevice
ActionProvisionManagedProfile ActionProvisionManagedProfile

Activity action: Starts the provisioning flow which sets up a managed profile.

ActionSetNewParentProfilePassword ActionSetNewParentProfilePassword
ActionSetNewPassword ActionSetNewPassword

Activity action: have the user enter a new password.

ActionStartEncryption ActionStartEncryption

Activity action: begin the process of encrypting data on the device.

ActionSystemUpdatePolicyChanged ActionSystemUpdatePolicyChanged
DelegationAppRestrictions DelegationAppRestrictions
DelegationBlockUninstall DelegationBlockUninstall
DelegationCertInstall DelegationCertInstall
DelegationEnableSystemApp DelegationEnableSystemApp
DelegationPackageAccess DelegationPackageAccess
DelegationPermissionGrant DelegationPermissionGrant
ExtraAddExplanation ExtraAddExplanation

An optional CharSequence providing additional explanation for why the admin is being added.

ExtraDelegationScopes ExtraDelegationScopes
ExtraDeviceAdmin ExtraDeviceAdmin

The ComponentName of the administrator component.

ExtraProvisioningAccountToMigrate ExtraProvisioningAccountToMigrate
ExtraProvisioningAdminExtrasBundle ExtraProvisioningAdminExtrasBundle
ExtraProvisioningDeviceAdminComponentName ExtraProvisioningDeviceAdminComponentName
ExtraProvisioningDeviceAdminMinimumVersionCode ExtraProvisioningDeviceAdminMinimumVersionCode
ExtraProvisioningDeviceAdminPackageChecksum ExtraProvisioningDeviceAdminPackageChecksum

A String extra holding the URL-safe base64 encoded SHA-256 or SHA-1 hash (see notes below) of the file at download location specified in ExtraProvisioningDeviceAdminPackageDownloadLocation.

ExtraProvisioningDeviceAdminPackageDownloadCookieHeader ExtraProvisioningDeviceAdminPackageDownloadCookieHeader

A String extra holding a http cookie header which should be used in the http request to the url specified in ExtraProvisioningDeviceAdminPackageDownloadLocation.

ExtraProvisioningDeviceAdminPackageDownloadLocation ExtraProvisioningDeviceAdminPackageDownloadLocation

A String extra holding a url that specifies the download location of the device admin package.

ExtraProvisioningDeviceAdminPackageName ExtraProvisioningDeviceAdminPackageName

A String extra holding the package name of the mobile device management application that will be set as the profile owner or device owner.

ExtraProvisioningDeviceAdminSignatureChecksum ExtraProvisioningDeviceAdminSignatureChecksum
ExtraProvisioningDisclaimerContent ExtraProvisioningDisclaimerContent
ExtraProvisioningDisclaimerHeader ExtraProvisioningDisclaimerHeader
ExtraProvisioningDisclaimers ExtraProvisioningDisclaimers
ExtraProvisioningEmailAddress ExtraProvisioningEmailAddress

A String extra that, holds the email address of the account which a managed profile is created for.

ExtraProvisioningKeepAccountOnMigration ExtraProvisioningKeepAccountOnMigration
ExtraProvisioningLeaveAllSystemAppsEnabled ExtraProvisioningLeaveAllSystemAppsEnabled
ExtraProvisioningLocale ExtraProvisioningLocale

A String extra holding the Locale that the device will be set to.

ExtraProvisioningLocalTime ExtraProvisioningLocalTime

A Long extra holding the wall clock time (in milliseconds) to be set on the device's AlarmManager.

ExtraProvisioningLogoUri ExtraProvisioningLogoUri
ExtraProvisioningMainColor ExtraProvisioningMainColor
ExtraProvisioningSkipEncryption ExtraProvisioningSkipEncryption
ExtraProvisioningSkipUserConsent ExtraProvisioningSkipUserConsent
ExtraProvisioningTimeZone ExtraProvisioningTimeZone

A String extra holding the time zone AlarmManager that the device will be set to.

ExtraProvisioningWifiHidden ExtraProvisioningWifiHidden

A boolean extra indicating whether the wifi network in ExtraProvisioningWifiSsid is hidden or not.

ExtraProvisioningWifiPacUrl ExtraProvisioningWifiPacUrl

A String extra holding the proxy auto-config (PAC) URL for the wifi network in ExtraProvisioningWifiSsid.

ExtraProvisioningWifiPassword ExtraProvisioningWifiPassword

A String extra holding the password of the wifi network in ExtraProvisioningWifiSsid.

ExtraProvisioningWifiProxyBypass ExtraProvisioningWifiProxyBypass

A String extra holding the proxy bypass for the wifi network in ExtraProvisioningWifiSsid.

ExtraProvisioningWifiProxyHost ExtraProvisioningWifiProxyHost

A String extra holding the proxy host for the wifi network in ExtraProvisioningWifiSsid.

ExtraProvisioningWifiProxyPort ExtraProvisioningWifiProxyPort

An int extra holding the proxy port for the wifi network in ExtraProvisioningWifiSsid.

ExtraProvisioningWifiSecurityType ExtraProvisioningWifiSecurityType

A String extra indicating the security type of the wifi network in ExtraProvisioningWifiSsid.

ExtraProvisioningWifiSsid ExtraProvisioningWifiSsid

A String extra holding the ssid of the wifi network that should be used during nfc device owner provisioning for downloading the mobile device management application.

FlagEvictCredentialEncryptionKey FlagEvictCredentialEncryptionKey
FlagManagedCanAccessParent FlagManagedCanAccessParent
FlagParentCanAccessManaged FlagParentCanAccessManaged
KeyguardDisableFeaturesAll KeyguardDisableFeaturesAll

Disable all current and future keyguard customizations.

KeyguardDisableFeaturesNone KeyguardDisableFeaturesNone

Widgets are enabled in keyguard

KeyguardDisableFingerprint KeyguardDisableFingerprint

Disable fingerprint sensor on keyguard secure screens (e.g.

KeyguardDisableRemoteInput KeyguardDisableRemoteInput
KeyguardDisableSecureCamera KeyguardDisableSecureCamera

Disable the camera on secure keyguard screens (e.g.

KeyguardDisableSecureNotifications KeyguardDisableSecureNotifications

Disable showing all notifications on secure keyguard screens (e.g.

KeyguardDisableTrustAgents KeyguardDisableTrustAgents

Ignore trust agent state on secure keyguard screens (e.g.

KeyguardDisableUnredactedNotifications KeyguardDisableUnredactedNotifications

Only allow redacted notifications on secure keyguard screens (e.g.

KeyguardDisableWidgetsAll KeyguardDisableWidgetsAll

Disable all keyguard widgets.

MimeTypeProvisioningNfc MimeTypeProvisioningNfc

This MIME type is used for starting the Device Owner provisioning.

PolicyDisableCamera PolicyDisableCamera
PolicyDisableScreenCapture PolicyDisableScreenCapture
ResetPasswordDoNotAskCredentialsOnBoot ResetPasswordDoNotAskCredentialsOnBoot
ResetPasswordRequireEntry ResetPasswordRequireEntry

Flag for ResetPassword(String, ResetPasswordFlags): don't allow other admins to change the password again until the user has entered it.

SkipSetupWizard SkipSetupWizard
WipeExternalStorage WipeExternalStorage

Flag for WipeData(WipeDataFlags): also erase the device's external storage (such as SD cards).

WipeResetProtectionData WipeResetProtectionData

Properties

ActiveAdmins ActiveAdmins

Return a list of all currently active device administrators' component names.

AutoTimeRequired AutoTimeRequired
Class Class

Returns the unique instance of Class that represents this object's class.

(Inherited from Object)
CurrentFailedPasswordAttempts CurrentFailedPasswordAttempts

Retrieve the number of times the user has failed at entering a password since that last successful password entry.

DeviceOwnerLockScreenInfo DeviceOwnerLockScreenInfo
DeviceOwnerLockScreenInfoFormatted DeviceOwnerLockScreenInfoFormatted
Handle Handle

The handle to the underlying Android instance.

(Inherited from Object)
IJavaObjectEx.IsProxy IJavaObjectEx.IsProxy Inherited from Object
IJavaObjectEx.KeyHandle IJavaObjectEx.KeyHandle Inherited from Object
IJavaObjectEx.NeedsActivation IJavaObjectEx.NeedsActivation Inherited from Object
IJavaPeerable.JniManagedPeerState IJavaPeerable.JniManagedPeerState Inherited from Object
IsActivePasswordSufficient IsActivePasswordSufficient

Determine whether the current password the user has set is sufficient to meet the policy requirements (quality, minimum length) that have been requested by the admins of this user and its profiles.

IsCallerApplicationRestrictionsManagingPackage IsCallerApplicationRestrictionsManagingPackage
JniIdentityHashCode JniIdentityHashCode Inherited from Object
JniPeerMembers JniPeerMembers
PeerReference PeerReference Inherited from Object
StorageEncryptionStatus StorageEncryptionStatus

Called by an application that is administering the device to determine the current encryption status of the device.

SystemUpdatePolicy SystemUpdatePolicy
ThresholdClass ThresholdClass

This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

ThresholdType ThresholdType

This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

Methods

AddCrossProfileIntentFilter(ComponentName, IntentFilter, DevicePolicyManagerFlags) AddCrossProfileIntentFilter(ComponentName, IntentFilter, DevicePolicyManagerFlags)

Called by the profile owner of a managed profile so that some intents sent in the managed profile can also be resolved in the parent, or vice versa.

AddCrossProfileWidgetProvider(ComponentName, String) AddCrossProfileWidgetProvider(ComponentName, String)

Called by the profile owner of a managed profile to enable widget providers from a given package to be available in the parent profile.

AddPersistentPreferredActivity(ComponentName, IntentFilter, ComponentName) AddPersistentPreferredActivity(ComponentName, IntentFilter, ComponentName)

Called by a profile owner or device owner to add a default intent handler activity for intents that match a certain intent filter.

AddUserRestriction(ComponentName, String) AddUserRestriction(ComponentName, String)

Called by a profile or device owner to set a user restriction specified by the key.

BindDeviceAdminServiceAsUser(ComponentName, Intent, IServiceConnection, Bind, UserHandle) BindDeviceAdminServiceAsUser(ComponentName, Intent, IServiceConnection, Bind, UserHandle)
ClearCrossProfileIntentFilters(ComponentName) ClearCrossProfileIntentFilters(ComponentName)

Called by a profile owner of a managed profile to remove the cross-profile intent filters that go from the managed profile to the parent, or from the parent to the managed profile.

ClearDeviceOwnerApp(String) ClearDeviceOwnerApp(String)

Clears the current device owner.

ClearPackagePersistentPreferredActivities(ComponentName, String) ClearPackagePersistentPreferredActivities(ComponentName, String)
ClearProfileOwner(ComponentName) ClearProfileOwner(ComponentName)
ClearResetPasswordToken(ComponentName) ClearResetPasswordToken(ComponentName)
ClearUserRestriction(ComponentName, String) ClearUserRestriction(ComponentName, String)

Called by a profile or device owner to clear a user restriction specified by the key.

Clone() Clone()

Creates and returns a copy of this Object.

(Inherited from Object)
CreateAdminSupportIntent(String) CreateAdminSupportIntent(String)
CreateAndInitializeUser(ComponentName, String, String, ComponentName, Bundle) CreateAndInitializeUser(ComponentName, String, String, ComponentName, Bundle)

Called by a device owner to create a user with the specified name.

CreateAndManageUser(ComponentName, String, ComponentName, PersistableBundle, UserManagementFlags) CreateAndManageUser(ComponentName, String, ComponentName, PersistableBundle, UserManagementFlags)
CreateUser(ComponentName, String) CreateUser(ComponentName, String)

Called by a device owner to create a user with the specified name.

Dispose() Dispose() Inherited from Object
Dispose(Boolean) Dispose(Boolean) Inherited from Object
EnableSystemApp(ComponentName, Intent) EnableSystemApp(ComponentName, Intent)

Called by profile or device owners to re-enable system apps by intent that were disabled by default when the user was initialized.

EnableSystemApp(ComponentName, String) EnableSystemApp(ComponentName, String)

Called by profile or device owners to re-enable a system app that was disabled by default when the user was initialized.

Equals(Object) Equals(Object)

Compares this instance with the specified object and indicates if they are equal.

(Inherited from Object)
FromContext(Context) FromContext(Context)
GetAccountTypesWithManagementDisabled() GetAccountTypesWithManagementDisabled()

Gets the array of accounts for which account management is disabled by the profile owner.

GetAffiliationIds(ComponentName) GetAffiliationIds(ComponentName)
GetAlwaysOnVpnPackage(ComponentName) GetAlwaysOnVpnPackage(ComponentName)
GetApplicationRestrictions(ComponentName, String) GetApplicationRestrictions(ComponentName, String)

Called by a profile or device owner to get the application restrictions for a given target application running in the profile.

GetApplicationRestrictionsManagingPackage(ComponentName) GetApplicationRestrictionsManagingPackage(ComponentName)
GetBindDeviceAdminTargetUsers(ComponentName) GetBindDeviceAdminTargetUsers(ComponentName)
GetBluetoothContactSharingDisabled(ComponentName) GetBluetoothContactSharingDisabled(ComponentName)
GetCameraDisabled(ComponentName) GetCameraDisabled(ComponentName)

Determine whether or not the device's cameras have been disabled for this user, either by the current admin, if specified, or all admins.

GetCertInstallerPackage(ComponentName) GetCertInstallerPackage(ComponentName)
GetCrossProfileCallerIdDisabled(ComponentName) GetCrossProfileCallerIdDisabled(ComponentName)

Called by a profile owner of a managed profile to determine whether or not caller-Id information has been disabled.

GetCrossProfileContactsSearchDisabled(ComponentName) GetCrossProfileContactsSearchDisabled(ComponentName)
GetCrossProfileWidgetProviders(ComponentName) GetCrossProfileWidgetProviders(ComponentName)

Called by the profile owner of a managed profile to query providers from which packages are available in the parent profile.

GetDelegatedScopes(ComponentName, String) GetDelegatedScopes(ComponentName, String)
GetDelegatePackages(ComponentName, String) GetDelegatePackages(ComponentName, String)
GetHashCode() GetHashCode()

Returns an integer hash code for this object.

(Inherited from Object)
GetInstalledCaCerts(ComponentName) GetInstalledCaCerts(ComponentName)

Returns all CA certificates that are currently trusted, excluding system CA certificates.

GetKeyguardDisabledFeatures(ComponentName) GetKeyguardDisabledFeatures(ComponentName)

Determine whether or not features have been disabled in keyguard either by the current admin, if specified, or all admins.

GetLockTaskPackages(ComponentName) GetLockTaskPackages(ComponentName)
GetLongSupportMessage(ComponentName) GetLongSupportMessage(ComponentName)
GetLongSupportMessageFormatted(ComponentName) GetLongSupportMessageFormatted(ComponentName)
GetMaximumFailedPasswordsForWipe(ComponentName) GetMaximumFailedPasswordsForWipe(ComponentName)

Retrieve the current maximum number of login attempts that are allowed before the device wipes itself, for all admins of this user and its profiles or a particular one.

GetMaximumTimeToLock(ComponentName) GetMaximumTimeToLock(ComponentName)

Retrieve the current maximum time to unlock for all admins of this user and its profiles or a particular one.

GetOrganizationColor(ComponentName) GetOrganizationColor(ComponentName)
GetOrganizationName(ComponentName) GetOrganizationName(ComponentName)
GetOrganizationNameFormatted(ComponentName) GetOrganizationNameFormatted(ComponentName)
GetParentProfileInstance(ComponentName) GetParentProfileInstance(ComponentName)
GetPasswordExpiration(ComponentName) GetPasswordExpiration(ComponentName)

Get the current password expiration time for the given admin or an aggregate of all admins of this user and its profiles if admin is null.

GetPasswordExpirationTimeout(ComponentName) GetPasswordExpirationTimeout(ComponentName)

Get the password expiration timeout for the given admin.

GetPasswordHistoryLength(ComponentName) GetPasswordHistoryLength(ComponentName)

Retrieve the current password history length for all admins of this user and its profiles or a particular one.

GetPasswordMaximumLength(PasswordQuality) GetPasswordMaximumLength(PasswordQuality)

Return the maximum password length that the device supports for a particular password quality.

GetPasswordMinimumLength(ComponentName) GetPasswordMinimumLength(ComponentName)

Retrieve the current minimum password length for all admins of this user and its profiles or a particular one.

GetPasswordMinimumLetters(ComponentName) GetPasswordMinimumLetters(ComponentName)

Retrieve the current number of letters required in the password for all admins or a particular one.

GetPasswordMinimumLowerCase(ComponentName) GetPasswordMinimumLowerCase(ComponentName)

Retrieve the current number of lower case letters required in the password for all admins of this user and its profiles or a particular one.

GetPasswordMinimumNonLetter(ComponentName) GetPasswordMinimumNonLetter(ComponentName)

Retrieve the current number of non-letter characters required in the password for all admins of this user and its profiles or a particular one.

GetPasswordMinimumNumeric(ComponentName) GetPasswordMinimumNumeric(ComponentName)

Retrieve the current number of numerical digits required in the password for all admins of this user and its profiles or a particular one.

GetPasswordMinimumSymbols(ComponentName) GetPasswordMinimumSymbols(ComponentName)

Retrieve the current number of symbols required in the password for all admins or a particular one.

GetPasswordMinimumUpperCase(ComponentName) GetPasswordMinimumUpperCase(ComponentName)

Retrieve the current number of upper case letters required in the password for all admins of this user and its profiles or a particular one.

GetPasswordQuality(ComponentName) GetPasswordQuality(ComponentName)

Retrieve the current minimum password quality for all admins of this user and its profiles or a particular one.

GetPendingSystemUpdate(ComponentName) GetPendingSystemUpdate(ComponentName)
GetPermissionGrantState(ComponentName, String, String) GetPermissionGrantState(ComponentName, String, String)
GetPermissionPolicy(ComponentName) GetPermissionPolicy(ComponentName)
GetPermittedAccessibilityServices(ComponentName) GetPermittedAccessibilityServices(ComponentName)

Returns the list of permitted accessibility services set by this device or profile owner.

GetPermittedCrossProfileNotificationListeners(ComponentName) GetPermittedCrossProfileNotificationListeners(ComponentName)
GetPermittedInputMethods(ComponentName) GetPermittedInputMethods(ComponentName)

Returns the list of permitted input methods set by this device or profile owner.

GetRequiredStrongAuthTimeout(ComponentName) GetRequiredStrongAuthTimeout(ComponentName)
GetScreenCaptureDisabled(ComponentName) GetScreenCaptureDisabled(ComponentName)

Determine whether or not screen capture has been disabled by the current admin, if specified, or all admins.

GetShortSupportMessage(ComponentName) GetShortSupportMessage(ComponentName)
GetShortSupportMessageFormatted(ComponentName) GetShortSupportMessageFormatted(ComponentName)
GetStorageEncryption(ComponentName) GetStorageEncryption(ComponentName)

Called by an application that is administering the device to determine the requested setting for secure storage.

GetTrustAgentConfiguration(ComponentName, ComponentName) GetTrustAgentConfiguration(ComponentName, ComponentName)
GetUserRestrictions(ComponentName) GetUserRestrictions(ComponentName)
GetWifiMacAddress(ComponentName) GetWifiMacAddress(ComponentName)
HasCaCertInstalled(ComponentName, Byte[]) HasCaCertInstalled(ComponentName, Byte[])

Returns whether this certificate is installed as a trusted CA.

HasGrantedPolicy(ComponentName, DeviceAdminUses) HasGrantedPolicy(ComponentName, DeviceAdminUses)

Returns true if an administrator has been granted a particular device policy.

InstallCaCert(ComponentName, Byte[]) InstallCaCert(ComponentName, Byte[])

Installs the given certificate as a user CA.

InstallKeyPair(ComponentName, IPrivateKey, Certificate, String) InstallKeyPair(ComponentName, IPrivateKey, Certificate, String)

Called by a device or profile owner to install a certificate and private key pair.

InstallKeyPair(ComponentName, IPrivateKey, Certificate[], String, Boolean) InstallKeyPair(ComponentName, IPrivateKey, Certificate[], String, Boolean)
IsAdminActive(ComponentName) IsAdminActive(ComponentName)

Return true if the given administrator component is currently active (enabled) in the system.

IsApplicationHidden(ComponentName, String) IsApplicationHidden(ComponentName, String)

Called by profile or device owners to determine if a package is hidden.

IsBackupServiceEnabled(ComponentName) IsBackupServiceEnabled(ComponentName)
IsDeviceOwnerApp(String) IsDeviceOwnerApp(String)

Used to determine if a particular package has been registered as a Device Owner app.

IsLockTaskPermitted(String) IsLockTaskPermitted(String)

This function lets the caller know whether the given component is allowed to start the lock task mode.

IsManagedProfile(ComponentName) IsManagedProfile(ComponentName)
IsMasterVolumeMuted(ComponentName) IsMasterVolumeMuted(ComponentName)

Called by profile or device owners to check whether the master volume mute is on or off.

IsNetworkLoggingEnabled(ComponentName) IsNetworkLoggingEnabled(ComponentName)
IsPackageSuspended(ComponentName, String) IsPackageSuspended(ComponentName, String)
IsProfileOwnerApp(String) IsProfileOwnerApp(String)

Used to determine if a particular package is registered as the profile owner for the current user.

IsProvisioningAllowed(String) IsProvisioningAllowed(String)
IsResetPasswordTokenActive(ComponentName) IsResetPasswordTokenActive(ComponentName)
IsSecurityLoggingEnabled(ComponentName) IsSecurityLoggingEnabled(ComponentName)
IsUninstallBlocked(ComponentName, String) IsUninstallBlocked(ComponentName, String)

Check whether the current user has been blocked by device policy from uninstalling a package.

JavaFinalize() JavaFinalize()

Invoked when the garbage collector has detected that this instance is no longer reachable.

(Inherited from Object)
LockNow() LockNow()

Make the device lock immediately, as if the lock screen timeout has expired at the point of this call.

LockNow(DevicePolicyManagerFlags) LockNow(DevicePolicyManagerFlags)
Notify() Notify()

Causes a thread which is waiting on this object's monitor (by means of calling one of the wait() methods) to be woken up.

(Inherited from Object)
NotifyAll() NotifyAll()

Causes all threads which are waiting on this object's monitor (by means of calling one of the wait() methods) to be woken up.

(Inherited from Object)
Reboot(ComponentName) Reboot(ComponentName)
RemoveActiveAdmin(ComponentName) RemoveActiveAdmin(ComponentName)

Remove a current administration component.

RemoveCrossProfileWidgetProvider(ComponentName, String) RemoveCrossProfileWidgetProvider(ComponentName, String)

Called by the profile owner of a managed profile to disable widget providers from a given package to be available in the parent profile.

RemoveKeyPair(ComponentName, String) RemoveKeyPair(ComponentName, String)
RemoveUser(ComponentName, UserHandle) RemoveUser(ComponentName, UserHandle)

Called by a device owner to remove a user and all associated data.

RequestBugreport(ComponentName) RequestBugreport(ComponentName)
ResetPassword(String, ResetPasswordFlags) ResetPassword(String, ResetPasswordFlags)

Force a new device unlock password (the password needed to access the entire device, not for individual accounts) on the user.

ResetPasswordWithToken(ComponentName, String, Byte[], ResetPasswordFlags) ResetPasswordWithToken(ComponentName, String, Byte[], ResetPasswordFlags)
RetrieveNetworkLogs(ComponentName, Int64) RetrieveNetworkLogs(ComponentName, Int64)
RetrievePreRebootSecurityLogs(ComponentName) RetrievePreRebootSecurityLogs(ComponentName)
RetrieveSecurityLogs(ComponentName) RetrieveSecurityLogs(ComponentName)
SetAccountManagementDisabled(ComponentName, String, Boolean) SetAccountManagementDisabled(ComponentName, String, Boolean)

Called by a device owner or profile owner to disable account management for a specific type of account.

SetAffiliationIds(ComponentName, ICollection<String>) SetAffiliationIds(ComponentName, ICollection<String>)
SetAlwaysOnVpnPackage(ComponentName, String, Boolean) SetAlwaysOnVpnPackage(ComponentName, String, Boolean)
SetApplicationHidden(ComponentName, String, Boolean) SetApplicationHidden(ComponentName, String, Boolean)

Called by profile or device owners to hide or unhide packages.

SetApplicationRestrictions(ComponentName, String, Bundle) SetApplicationRestrictions(ComponentName, String, Bundle)

Called by a profile or device owner to set the application restrictions for a given target application running in the profile.

SetApplicationRestrictionsManagingPackage(ComponentName, String) SetApplicationRestrictionsManagingPackage(ComponentName, String)
SetAutoTimeRequired(ComponentName, Boolean) SetAutoTimeRequired(ComponentName, Boolean)

Called by a device owner to set whether auto time is required.

SetBackupServiceEnabled(ComponentName, Boolean) SetBackupServiceEnabled(ComponentName, Boolean)
SetBluetoothContactSharingDisabled(ComponentName, Boolean) SetBluetoothContactSharingDisabled(ComponentName, Boolean)
SetCameraDisabled(ComponentName, Boolean) SetCameraDisabled(ComponentName, Boolean)

Called by an application that is administering the device to disable all cameras on the device, for this user.

SetCertInstallerPackage(ComponentName, String) SetCertInstallerPackage(ComponentName, String)
SetCrossProfileCallerIdDisabled(ComponentName, Boolean) SetCrossProfileCallerIdDisabled(ComponentName, Boolean)

Called by a profile owner of a managed profile to set whether caller-Id information from the managed profile will be shown in the parent profile, for incoming calls.

SetCrossProfileContactsSearchDisabled(ComponentName, Boolean) SetCrossProfileContactsSearchDisabled(ComponentName, Boolean)
SetDelegatedScopes(ComponentName, String, IList<String>) SetDelegatedScopes(ComponentName, String, IList<String>)
SetDeviceOwnerLockScreenInfo(ComponentName, ICharSequence) SetDeviceOwnerLockScreenInfo(ComponentName, ICharSequence)
SetDeviceOwnerLockScreenInfo(ComponentName, String) SetDeviceOwnerLockScreenInfo(ComponentName, String)
SetGlobalSetting(ComponentName, String, String) SetGlobalSetting(ComponentName, String, String)

Called by device owners to update Settings.Global settings.

SetHandle(IntPtr, JniHandleOwnership) SetHandle(IntPtr, JniHandleOwnership)

Sets the Handle property.

(Inherited from Object)
SetKeyguardDisabled(ComponentName, Boolean) SetKeyguardDisabled(ComponentName, Boolean)
SetKeyguardDisabledFeatures(ComponentName, KeyguardDisable) SetKeyguardDisabledFeatures(ComponentName, KeyguardDisable)

Called by an application that is administering the device to disable keyguard customizations, such as widgets.

SetLockTaskPackages(ComponentName, String[]) SetLockTaskPackages(ComponentName, String[])

Sets which packages may enter lock task mode.

SetLongSupportMessage(ComponentName, ICharSequence) SetLongSupportMessage(ComponentName, ICharSequence)
SetLongSupportMessage(ComponentName, String) SetLongSupportMessage(ComponentName, String)
SetMasterVolumeMuted(ComponentName, Boolean) SetMasterVolumeMuted(ComponentName, Boolean)

Called by profile or device owners to set the master volume mute on or off.

SetMaximumFailedPasswordsForWipe(ComponentName, Int32) SetMaximumFailedPasswordsForWipe(ComponentName, Int32)

Setting this to a value greater than zero enables a built-in policy that will perform a device wipe after too many incorrect device-unlock passwords have been entered.

SetMaximumTimeToLock(ComponentName, Int64) SetMaximumTimeToLock(ComponentName, Int64)

Called by an application that is administering the device to set the maximum time for user activity until the device will lock.

SetNetworkLoggingEnabled(ComponentName, Boolean) SetNetworkLoggingEnabled(ComponentName, Boolean)
SetOrganizationColor(ComponentName, Color) SetOrganizationColor(ComponentName, Color)
SetOrganizationName(ComponentName, ICharSequence) SetOrganizationName(ComponentName, ICharSequence)
SetOrganizationName(ComponentName, String) SetOrganizationName(ComponentName, String)
SetPackagesSuspended(ComponentName, String[], Boolean) SetPackagesSuspended(ComponentName, String[], Boolean)
SetPasswordExpirationTimeout(ComponentName, Int64) SetPasswordExpirationTimeout(ComponentName, Int64)

Called by a device admin to set the password expiration timeout.

SetPasswordHistoryLength(ComponentName, Int32) SetPasswordHistoryLength(ComponentName, Int32)

Called by an application that is administering the device to set the length of the password history.

SetPasswordMinimumLength(ComponentName, Int32) SetPasswordMinimumLength(ComponentName, Int32)

Called by an application that is administering the device to set the minimum allowed password length.

SetPasswordMinimumLetters(ComponentName, Int32) SetPasswordMinimumLetters(ComponentName, Int32)

Called by an application that is administering the device to set the minimum number of letters required in the password.

SetPasswordMinimumLowerCase(ComponentName, Int32) SetPasswordMinimumLowerCase(ComponentName, Int32)

Called by an application that is administering the device to set the minimum number of lower case letters required in the password.

SetPasswordMinimumNonLetter(ComponentName, Int32) SetPasswordMinimumNonLetter(ComponentName, Int32)

Called by an application that is administering the device to set the minimum number of non-letter characters (numerical digits or symbols) required in the password.

SetPasswordMinimumNumeric(ComponentName, Int32) SetPasswordMinimumNumeric(ComponentName, Int32)

Called by an application that is administering the device to set the minimum number of numerical digits required in the password.

SetPasswordMinimumSymbols(ComponentName, Int32) SetPasswordMinimumSymbols(ComponentName, Int32)

Called by an application that is administering the device to set the minimum number of symbols required in the password.

SetPasswordMinimumUpperCase(ComponentName, Int32) SetPasswordMinimumUpperCase(ComponentName, Int32)

Called by an application that is administering the device to set the minimum number of upper case letters required in the password.

SetPasswordQuality(ComponentName, PasswordQuality) SetPasswordQuality(ComponentName, PasswordQuality)

Called by an application that is administering the device to set the password restrictions it is imposing.

SetPermissionGrantState(ComponentName, String, String, PermissionGrantState) SetPermissionGrantState(ComponentName, String, String, PermissionGrantState)
SetPermissionPolicy(ComponentName, PermissionPolicy) SetPermissionPolicy(ComponentName, PermissionPolicy)
SetPermittedAccessibilityServices(ComponentName, IList<String>) SetPermittedAccessibilityServices(ComponentName, IList<String>)
SetPermittedCrossProfileNotificationListeners(ComponentName, IList<String>) SetPermittedCrossProfileNotificationListeners(ComponentName, IList<String>)
SetPermittedInputMethods(ComponentName, IList<String>) SetPermittedInputMethods(ComponentName, IList<String>)
SetProfileEnabled(ComponentName) SetProfileEnabled(ComponentName)

Sets the enabled state of the profile.

SetProfileName(ComponentName, String) SetProfileName(ComponentName, String)

Sets the name of the profile.

SetRecommendedGlobalProxy(ComponentName, ProxyInfo) SetRecommendedGlobalProxy(ComponentName, ProxyInfo)

Set a network-independent global HTTP proxy.

SetRequiredStrongAuthTimeout(ComponentName, Int64) SetRequiredStrongAuthTimeout(ComponentName, Int64)
SetResetPasswordToken(ComponentName, Byte[]) SetResetPasswordToken(ComponentName, Byte[])
SetRestrictionsProvider(ComponentName, ComponentName) SetRestrictionsProvider(ComponentName, ComponentName)

Designates a specific service component as the provider for making permission requests of a local or remote administrator of the user.

SetScreenCaptureDisabled(ComponentName, Boolean) SetScreenCaptureDisabled(ComponentName, Boolean)

Called by a device/profile owner to set whether the screen capture is disabled.

SetSecureSetting(ComponentName, String, String) SetSecureSetting(ComponentName, String, String)

Called by profile or device owners to update Settings.Secure settings.

SetSecurityLoggingEnabled(ComponentName, Boolean) SetSecurityLoggingEnabled(ComponentName, Boolean)
SetShortSupportMessage(ComponentName, ICharSequence) SetShortSupportMessage(ComponentName, ICharSequence)
SetShortSupportMessage(ComponentName, String) SetShortSupportMessage(ComponentName, String)
SetStatusBarDisabled(ComponentName, Boolean) SetStatusBarDisabled(ComponentName, Boolean)
SetStorageEncryption(ComponentName, Boolean) SetStorageEncryption(ComponentName, Boolean)

Called by an application that is administering the device to request that the storage system be encrypted.

SetSystemUpdatePolicy(ComponentName, SystemUpdatePolicy) SetSystemUpdatePolicy(ComponentName, SystemUpdatePolicy)
SetTrustAgentConfiguration(ComponentName, ComponentName, PersistableBundle) SetTrustAgentConfiguration(ComponentName, ComponentName, PersistableBundle)
SetUninstallBlocked(ComponentName, String, Boolean) SetUninstallBlocked(ComponentName, String, Boolean)

Called by profile or device owners to change whether a user can uninstall a package.

SetUserIcon(ComponentName, Bitmap) SetUserIcon(ComponentName, Bitmap)
SwitchUser(ComponentName, UserHandle) SwitchUser(ComponentName, UserHandle)

Called by a device owner to switch the specified user to the foreground.

ToArray<T>() ToArray<T>() Inherited from Object
ToString() ToString()

Returns a string containing a concise, human-readable description of this object.

(Inherited from Object)
UninstallAllUserCaCerts(ComponentName) UninstallAllUserCaCerts(ComponentName)

Uninstalls all custom trusted CA certificates from the profile.

UninstallCaCert(ComponentName, Byte[]) UninstallCaCert(ComponentName, Byte[])

Uninstalls the given certificate from trusted user CAs, if present.

UnregisterFromRuntime() UnregisterFromRuntime() Inherited from Object
Wait() Wait()

Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object.

(Inherited from Object)
Wait(Int64) Wait(Int64)

Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object or until the specified timeout expires.

(Inherited from Object)
Wait(Int64, Int32) Wait(Int64, Int32)

Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object or until the specified timeout expires.

(Inherited from Object)
WipeData(WipeDataFlags) WipeData(WipeDataFlags)

Ask the user data be wiped.

Explicit Interface Implementations

IJavaObjectEx.ToLocalJniHandle() IJavaObjectEx.ToLocalJniHandle() Inherited from Object
IJavaPeerable.Disposed() IJavaPeerable.Disposed() Inherited from Object
IJavaPeerable.DisposeUnlessReferenced() IJavaPeerable.DisposeUnlessReferenced() Inherited from Object
IJavaPeerable.Finalized() IJavaPeerable.Finalized() Inherited from Object
IJavaPeerable.SetJniIdentityHashCode(Int32) IJavaPeerable.SetJniIdentityHashCode(Int32) Inherited from Object
IJavaPeerable.SetJniManagedPeerState(JniManagedPeerStates) IJavaPeerable.SetJniManagedPeerState(JniManagedPeerStates) Inherited from Object
IJavaPeerable.SetPeerReference(JniObjectReference) IJavaPeerable.SetPeerReference(JniObjectReference) Inherited from Object

Extension Methods

JavaCast<TResult>(IJavaObject) JavaCast<TResult>(IJavaObject)

Performs an Android runtime-checked type conversion.

JavaCast<TResult>(IJavaObject) JavaCast<TResult>(IJavaObject)
GetJniTypeName(IJavaPeerable) GetJniTypeName(IJavaPeerable)

Applies to