Android.App.Admin Namespace

Classes

ConnectEvent

A class that represents a TCP connect event initiated through the standard network stack.

DelegatedAdminReceiver

Base class for delegated apps to handle callbacks related to their delegated capabilities.

DeviceAdminInfo

This class is used to specify meta information of a device administrator component.

DeviceAdminInfo.InterfaceConsts
DeviceAdminReceiver

Base class for implementing a device administration component.

DeviceAdminService

Base class for a service that device owner/profile owners can optionally have.

DevicePolicyIdentifiers

Class containing identifiers for policy APIs in DevicePolicyManager, for example they will be passed in PolicyUpdateReceiver#onPolicySetResult and PolicyUpdateReceiver#onPolicyChanged to communicate updates of a certain policy back to the admin.

DevicePolicyManager

Public interface for managing policies enforced on a device.

DevicePolicyManager.ClearApplicationUserDataEventArgs
DevicePolicyManager.InstallSystemUpdateCallback

Callback used in #installSystemUpdate to indicate that there was an error while trying to install an update.

DevicePolicyResources

Class containing the required identifiers to update device management resources.

DevicePolicyResourcesManager

Class containing required APIs to set, reset, and get device policy related resources.

DnsEvent

A class that represents a DNS lookup event initiated through the standard network stack.

FactoryResetProtectionPolicy

The factory reset protection policy determines which accounts can unlock a device that has gone through untrusted factory reset.

FactoryResetProtectionPolicy.Builder

Builder class for FactoryResetProtectionPolicy objects.

FactoryResetProtectionPolicy.InterfaceConsts
FreezePeriod

A class that represents one freeze period which repeats <em>annually</em>.

ManagedSubscriptionsPolicy

A policy class that describes how managed SIM subscriptions should behave on the device.

ManagedSubscriptionsPolicy.InterfaceConsts
NetworkEvent

An abstract class that represents a network event.

NetworkEvent.InterfaceConsts
PackagePolicy

A generic class that defines which APK packages are in scope for some device policy.

PackagePolicy.InterfaceConsts
PolicyUpdateReceiver

Base class for implementing a policy update receiver.

PolicyUpdateResult

Class containing the reason for the policy (set from DevicePolicyManager) update (e.

PreferentialNetworkServiceConfig

Network configuration to be set for the user profile DevicePolicyManager#setPreferentialNetworkServiceConfigs.

PreferentialNetworkServiceConfig.Builder

Builder used to create PreferentialNetworkServiceConfig objects.

PreferentialNetworkServiceConfig.InterfaceConsts
SecurityLog

Definitions for working with security logs.

SecurityLog.SecurityEvent

A class representing a security event log entry.

SecurityLog.SecurityEvent.InterfaceConsts
SystemUpdateInfo

A class containing information about a pending system update.

SystemUpdateInfo.InterfaceConsts
SystemUpdatePolicy

Determines when over-the-air system updates are installed on a device.

SystemUpdatePolicy.InterfaceConsts
SystemUpdatePolicy.ValidationFailedException

An exception class that represents various validation errors thrown from SystemUpdatePolicy#setFreezePeriods and DevicePolicyManager#setSystemUpdatePolicy

SystemUpdatePolicy.ValidationFailedException.InterfaceConsts
TargetUser

Class representing the target user of a policy set by an admin (set from DevicePolicyManager), this is passed in to PolicyUpdateReceiver#onPolicySetResult and PolicyUpdateReceiver#onPolicyChanged.

UnsafeStateException

Exception thrown when a android.app.admin.DevicePolicyManager operation failed because it was not safe to be executed at that moment.

UnsafeStateException.InterfaceConsts
WifiSsidPolicy

Used to indicate the Wi-Fi SSID restriction policy the network must satisfy in order to be eligible for a connection.

WifiSsidPolicy.InterfaceConsts

Interfaces

DevicePolicyManager.IOnClearApplicationUserDataListener

Callback used in #clearApplicationUserData to indicate that the clearing of an application's user data is done.

Enums

BugReportFailureReason
DeviceAdminUses
DevicePolicyManagerFlags

Enumerates values returned by several types and taken as a parameter of the F:Android.App.Admin.DevicePolicyManager.AddCrossProfileIntentFilter member.

EncryptionStatus

Enumerates values returned by several types.

ExtraResourceType
HeadlessDeviceOwnerMode
IdAttestationFlags
InstallKeyFlags
KeyguardDisable

Enumerates values returned by several types and taken as a parameter of the F:Android.App.Admin.DevicePolicyManager.SetKeyguardDisabledFeatures member.

LockTaskFeatures
ManagedSubscriptionsType
MteMode
NearbyStreaming
OperationSafetyReason
PackagePolicyMode
PasswordComplexity
PasswordQuality
PermissionGrantState
PermissionPolicy
PersonalAppsDevicePolicy
PolicyUpdateResultCode
PreferentialNetworkId
PrivateDnsMode
PrivateDnsSet
ResetPasswordFlags

Enumerates values returned by the ResetPasswordRequireEntry, and RequireEntry members and taken as a parameter of the F:Android.App.Admin.DevicePolicyManager.ResetPassword member.

SecurityLogLevel
SecurityLogTags
SecurityPatchStates
SystemUpdatePolicyErrorCode
SystemUpdatePolicyType
UpdateErrorCode
UserManagementFlags
WifiSecurity
WifiSsidPolicyType
WipeDataFlags

Enumerates values returned by the WipeExternalStorage, None, and WipeExternalStorage members and taken as a parameter of the F:Android.App.Admin.DevicePolicyManager.WipeData member.