Contents

Docs

General
Provisioning
Work profile
Fully managed
App management
FAQ
Share this page

Android 18 Beta 1 - DP21.261120.006

Track: A18 Beta | Predecessor: none (first A18 build) | Cross-track predecessor: QPR2 Stable | Milestone: 2027 stable

Android 18 Beta 1 (API 38, codename Daifuku) is the largest enterprise surface change since the typed policy engine landed. Five headline areas: restructured data leak prevention (DLP) with relocated reporting surface and new batch/screen-capture APIs, managed user creation APIs (server currently disabled), EDR-class advanced security telemetry data structures, policy engine v2 maturation with new handler types, and push-based security log streaming (network log callbacks pre-existed in QPR2). The flag count jumped from 157 (QPR2 stable) to 198, with 50 new flags, 9 removed, 6 changed to runtime delegation, and 1 graduated. Many new APIs have empty or throwing server bodies in this build.

Data leak prevention (DLP) - expanded subsystem (provisional)

#

The existing android.app.admin.dataleakprevention package (restructured from 24 to 20 direct files) gains batch operations and shared-storage awareness. Server-side DLP set/get stubs remain empty in this build:

  • DataLeakPreventionManager (@SystemApi) with methods for content URI access checking, batch operations, and screen capture pre-checking
  • Rule model: DataLeakPreventionRule with source/destination matchers (app, shared storage, affiliation-state-aware), transfer action matching, and enforcement actions (ALLOWED, BLOCKED, REDACTED with priority-based resolution)
  • UI handling modes: silent, system-owned, or caller-owned DLP enforcement UI
  • Reporting surface: 23 classes in reporting.dataleakprevention (19 relocated from dataleakprevention/reporting/, 4 genuinely new: PortableStorageEntity, SharedStorageEntity, PrintPayload, PrinterDestination)

The core DLP manager, rules, and URI checks were present in QPR2 stable. A18 adds batch checking, screen capture gating, and relocates the reporting surface. An enableDataLeakPrevention flag in the PermissionController APEX gates enforcement. EMMs currently implement DLP at the app layer; OS-level DLP would enable enforcement at the content provider boundary across all apps without per-app SDK integration. Server stubs indicate this remains provisional.

Managed user creation API (provisional)

#

New DevicePolicyManager.createManagedUser() with CreateManagedUserParams builder:

  • Required: profileOwner (ComponentName), userType (String), userName (String)
  • Optional: skipSetupWizard, leaveAllSystemAppsEnabled, adminExtras (PersistableBundle), userIcon (Bitmap)
  • Async: returns via OutcomeReceiver<UserHandle, ManagedUserCreationException>
  • Flags: createManagedUserApi (gates the API), createManagedSecondaryUser (gates secondary user types) - both false

Related: new REQUIRED_APP_MULTIUSER_MANAGED_DEVICE constant for intent filtering required multi-user apps. The server body currently throws, so this is provisional in Beta 1. The existing createAndManageUser() already accepts a profile-owner component; this new API adds builder-pattern configuration with user type validation, admin extras, and async delivery.

Advanced security telemetry (provisional)

#

New reporting.securitytelemetry package (27 classes) delivering EDR-class event streams:

  • Process events: ProcessExecEvent (immediate parent context), ProcessTerminateEvent
  • Network events: NetworkFlowEvent (flow attribution to processes), NetworkSocketListenEvent
  • Agent events: AgentStartEvent (TCB descriptors - TEE/StrongBox booleans, kernel version), AgentHeartbeatEvent
  • Data model: Process (abstract; AppProcess/NativeProcess), NetworkFlow, Socket, ImageFile, TcbAttributes

Gated by advancedSecurityTelemetryEnabled (false, renamed from advancedSecurityLoggingEnabled). Process spawn context (immediate parent, not full ancestor chains), network flow attribution, and socket monitoring are capabilities that currently require privileged agents. All server-side registration bodies are empty stubs.

Security log streaming (provisional)

#

Two DPM methods (first seen in QPR3 Beta 3) supplement the batch-and-poll model with push-based delivery:

  • setSecurityLogEventCallback(Executor, Consumer<List<SecurityLog.SecurityEvent>>) - real-time security log callback (server body empty)
  • clearSecurityLogEventCallback() - remove callback (server body empty)

Gated by securityLogStreamingEnabled (false). Network log streaming (setNetworkLogEventsCallback) was already added in QPR2 Beta 4.

Policy engine v2 - migration trigger removed

#

The external migration trigger is gone, but PolicyMigrator remains active (startup migration calls persist in DPMS):

  • triggerDevicePolicyEngineMigration removed - external trigger dropped; PolicyMigrator still runs migrateV1PoliciesToDevicePolicyEngineLocked() and migratePoliciesToPolicyEngineLocked() at startup. policyEngineV2 flag remains false, so legacy fallbacks are still present
  • Old handlers deleted: EnumStoredAsBooleanPolicyHandler, EnumStoredAsGlobalAndLocalBooleanPolicyHandler, ListOfPackageIdentifierPolicyHandler
  • New handlers: SimplePolicyHandler (for SimplePolicyIdentifier-based policies), PackagePolicyHandler (per-package storage)
  • New infrastructure: FlagUnion resolution mechanism, PolicyValidator framework (Integer, List, String, Enum validators), ComplexTypeReaders/Writers/SerializerHelper, DevicePolicyRoleManager, KeyChainPolicyManager

New policy areas (provisional)

#
Policy Identifier Description
Printing PRINTER_CONFIGURATIONS Admin-managed printer configuration lists
Sensors CAMERA_ACCESS Tri-state: USER_CHOICE, ENABLED, DISABLED
Pinned launcher items PinnedLauncherItems Admin-managed pinned launcher items with validation
Factory reset Security.FACTORY_RESET Integration via FactoryResetPolicyHelper

Feature flags (198 total, up from 157)

#

Graduated to true (1): pushDpcPackagesToSystemServices

Graduated unconditionally - removed (5): checkPersonalSuspensionForAllProfiles, deviceTheftImplEnabled, enableNullableAdminComponent, suspendPackagesCoexistence, useHardenedFrpActiveCheck

Removed - reorganised (4): advancedSecurityLoggingEnabled, policyStreamliningBluetoothSharing, policyStreamliningScreenCapture, policyStreamliningScreenCaptureApi

Changed to runtime delegation (6): extendEsidSnLength, lockscreenInfoCoexistence, moveAdbRoleBypassingCheck, policyStreamliningApplicationPolicy, policyStreamliningSubscriptions, policyStreamliningTheFeaturePack

Regressed to false (2): increaseWatchStrongAuthTimeout, useRemoveUserWhenPossibleForWipeForegroundUser

50 new flags (all false), including:

  • Multi-user (8): createManagedUserApi, createManagedSecondaryUser, multiUserPolicyEnabled, userTypePolicyEnabled, allowDedicatedTaskUserLogoutOnHsum, allowDeviceControllerRemoveUser, requestBugreportForMum, enableUserScopedResources
  • Security and telemetry (4): advancedSecurityTelemetryEnabled, securityLogStreamingEnabled, disallowAdbSideloading, deviceManagementPrivacyDisclosure
  • Policy streamlining (18): Bluetooth, camera access, complex types, incoming ADB, long support message, loopback server, managed Wi-Fi credentials sharing, modes sync, nearby app/notification streaming, pinned launcher items, printing, set timezone, system error dialogs, USB device access, user feedback, Wi-Fi SSID/state (policyStreamliningSafeBoot and policyStreamliningUntrustedApps pre-existed in QPR2)
  • Work profile features (5): appFunctionsWorkProfileSupportEnabled, bonoboWorkProfileSupportEnabled, circleToSearchWorkProfileSupportEnabled, floatyWorkProfileSupportEnabled, workProfileAssistantCapabilitiesEnabled
  • Device management (7): unifiedManagedDeviceApis, enableNullableAdminForAffiliationIds, excludeAllowlistedAdbProvisionedDo, forceResetAdbProvisionedDo, enableCustomAppSilentInstallWorkProfile, enforceDisallowAssistContent, keyguardDisableQsTiles
  • Other (8): ailEnterpriseFiltering (AI/ML content filtering), canAdminGrantSensorsPermissionsPerUser, decoupleWifiEnterprise, forceNewEsidCalculation, policyEngineV2SizeTracking, wifiTetheringPasswordRequirementEnabled, reapplyPermissionGrantOnPackageInstall, throwExceptionOnInvalidSmsApp

New DPM methods

#
  • createManagedUser(CreateManagedUserParams, Executor, OutcomeReceiver) - managed user creation
  • getDeviceManagementPackage() - returns UserPackage
  • reportUserLogout(UserInfo) - user logout reporting
  • setSecurityLogEventCallback / clearSecurityLogEventCallback - real-time security log push
  • hasDevicePolicyPermissionGlobally / hasDevicePolicyPermissionForUser - permission checks (also in QPR3 Beta 4)
  • addResolvedPerUserPolicyCallbackForAllUsers / removeResolvedPerUserPolicyCallbackForAllUsers - all-user policy callbacks
  • installKeyPair with new InstallKeyFlags interface

Enterprise app changes

#
  • ManagedProvisioning (4,636 files) - OBSERVE_ROLE_HOLDERS permission, Material date picker components
  • SettingsGoogle (1,269 files) - POSTURE_GUIDANCE biometric, LAUNCH_BONUS_TIME_PICKER, SET_BIOMETRIC_DIALOG_ADVANCED permissions
  • SystemUIGoogle (971 files) - ASSOCIATE_INPUT_DEVICE_TO_DISPLAY permission (new); SUBSCRIBE_TO_KEYGUARD_LOCKED_STATE and AMBIENT_INDICATION present in both builds (not new)
  • SetupWizard (110 files) - POST_NOTIFICATIONS, NOTIFICATION_DURING_SETUP, REBOOT permissions, new SideloadWakeupReceiver
mail Reply by email | edit_note Edit this page | code_blocks Code

Docs

General
Provisioning
Work profile
Fully managed
App management
FAQ
Ask MIKA
MIKA Mobile Intelligence & Knowledge Assistant