Android security tags, read closely by Lightrion

CVE-2025-22442 AI-generated analysis

platform/frameworks/base, DevicePolicyManagerService / UserManagerService (managed profile provisioning and user restrictions)

AI-generated: written from the bulletin and the fixing diffs by claude-fable-5-1, then checked against the code by claude-opus-5-5 (7 corrections). Verify against the commit before relying on it.

Makes DISALLOW_DEBUGGING_FEATURES a default restriction for managed profiles. It also applies the default managed-profile device-policy restrictions inside UserManagerService when the profile is created (before the profile owner is set and, on Android 14, before the user stops being partial), and makes "pm install --user" refuse nonexistent or partial users.

Root cause

The diffs show two related problems. (1) UserRestrictionsUtils.DEFAULT_ENABLED_FOR_MANAGED_PROFILES contained only DISALLOW_BLUETOOTH_SHARING, so a work profile did not get DISALLOW_DEBUGGING_FEATURES by default ("Developer options" enabled). Separately, maybeSetDefaultRestrictionsForAdminLocked returned early when the full default set equals() admin.defaultEnabledRestrictionsAlreadySet, and its policy-engine branch then applied the full default set rather than only the delta. (2) In DevicePolicyManagerService's managed-profile provisioning path (createAndProvisionManagedProfile), the profile user was created via mUserManager.createProfileForUserEvenWhenDisallowed without device-policy restrictions. The default restrictions were applied only later, in the profile-owner path that calls maybeSetDefaultRestrictionsForAdminLocked. On Android 14, UserManagerService.createUserInternalUncheckedNoTracing also marked the user non-partial and wrote it out (userInfo.partial = false, writeUserLP, updateUserIds) before even the base restrictions were set. On Android 14, PackageManagerShellCommand.doRunInstall also did not check that the target user existed or was fully created. From the diffs, the fix appears intended to keep shell installs from targeting a profile that is not fully set up.

How the fix works

Completeness

Behavior changes

Per major

Unknowns

Back to November 2026 · Findings