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.
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-checkingDataLeakPreventionRule with source/destination matchers (app, shared storage, affiliation-state-aware), transfer action matching, and enforcement actions (ALLOWED, BLOCKED, REDACTED with priority-based resolution)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.
New DevicePolicyManager.createManagedUser() with CreateManagedUserParams builder:
profileOwner (ComponentName), userType (String), userName (String)skipSetupWizard, leaveAllSystemAppsEnabled, adminExtras (PersistableBundle), userIcon (Bitmap)OutcomeReceiver<UserHandle, ManagedUserCreationException>createManagedUserApi (gates the API), createManagedSecondaryUser (gates secondary user types) - both falseRelated: 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.
New reporting.securitytelemetry package (27 classes) delivering EDR-class event streams:
ProcessExecEvent (immediate parent context), ProcessTerminateEventNetworkFlowEvent (flow attribution to processes), NetworkSocketListenEventAgentStartEvent (TCB descriptors - TEE/StrongBox booleans, kernel version), AgentHeartbeatEventProcess (abstract; AppProcess/NativeProcess), NetworkFlow, Socket, ImageFile, TcbAttributesGated 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.
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.
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 presentEnumStoredAsBooleanPolicyHandler, EnumStoredAsGlobalAndLocalBooleanPolicyHandler, ListOfPackageIdentifierPolicyHandlerSimplePolicyHandler (for SimplePolicyIdentifier-based policies), PackagePolicyHandler (per-package storage)FlagUnion resolution mechanism, PolicyValidator framework (Integer, List, String, Enum validators), ComplexTypeReaders/Writers/SerializerHelper, DevicePolicyRoleManager, KeyChainPolicyManager| 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 |
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:
createManagedUserApi, createManagedSecondaryUser, multiUserPolicyEnabled, userTypePolicyEnabled, allowDedicatedTaskUserLogoutOnHsum, allowDeviceControllerRemoveUser, requestBugreportForMum, enableUserScopedResourcesadvancedSecurityTelemetryEnabled, securityLogStreamingEnabled, disallowAdbSideloading, deviceManagementPrivacyDisclosurepolicyStreamliningSafeBoot and policyStreamliningUntrustedApps pre-existed in QPR2)appFunctionsWorkProfileSupportEnabled, bonoboWorkProfileSupportEnabled, circleToSearchWorkProfileSupportEnabled, floatyWorkProfileSupportEnabled, workProfileAssistantCapabilitiesEnabledunifiedManagedDeviceApis, enableNullableAdminForAffiliationIds, excludeAllowlistedAdbProvisionedDo, forceResetAdbProvisionedDo, enableCustomAppSilentInstallWorkProfile, enforceDisallowAssistContent, keyguardDisableQsTilesailEnterpriseFiltering (AI/ML content filtering), canAdminGrantSensorsPermissionsPerUser, decoupleWifiEnterprise, forceNewEsidCalculation, policyEngineV2SizeTracking, wifiTetheringPasswordRequirementEnabled, reapplyPermissionGrantOnPackageInstall, throwExceptionOnInvalidSmsAppcreateManagedUser(CreateManagedUserParams, Executor, OutcomeReceiver) - managed user creationgetDeviceManagementPackage() - returns UserPackagereportUserLogout(UserInfo) - user logout reportingsetSecurityLogEventCallback / clearSecurityLogEventCallback - real-time security log pushhasDevicePolicyPermissionGlobally / hasDevicePolicyPermissionForUser - permission checks (also in QPR3 Beta 4)addResolvedPerUserPolicyCallbackForAllUsers / removeResolvedPerUserPolicyCallbackForAllUsers - all-user policy callbacksinstallKeyPair with new InstallKeyFlags interfaceOBSERVE_ROLE_HOLDERS permission, Material date picker componentsPOSTURE_GUIDANCE biometric, LAUNCH_BONUS_TIME_PICKER, SET_BIOMETRIC_DIALOG_ADVANCED permissionsASSOCIATE_INPUT_DEVICE_TO_DISPLAY permission (new); SUBSCRIBE_TO_KEYGUARD_LOCKED_STATE and AMBIENT_INDICATION present in both builds (not new)POST_NOTIFICATIONS, NOTIFICATION_DURING_SETUP, REBOOT permissions, new SideloadWakeupReceiver