Android security tags, read closely by Lightrion

CVE-2026-58836 AI-generated analysis

platform/frameworks/base, PackageManager install path (services/core/java/com/android/server/pm/InstallPackageHelper.java), Enhanced Confirmation Mode (ECM) / AppOps OP_ACCESS_RESTRICTED_SETTINGS

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 (5 corrections). Verify against the commit before relying on it.

Removes the feature-flag gate and the handler post that could skip eagerly setting OP_ACCESS_RESTRICTED_SETTINGS to MODE_ERRORED after installing a package whose source is LOCAL_FILE or DOWNLOADED_FILE. The ECM "explicitly guarded" state is now written inline at install completion instead of being left to lazy evaluation.

Root cause

In InstallPackageHelper, a post-install step marks potentially dangerous packages (package source PACKAGE_SOURCE_LOCAL_FILE or PACKAGE_SOURCE_DOWNLOADED_FILE) as ECM-guarded by setting OP_ACCESS_RESTRICTED_SETTINGS to AppOpsManager.MODE_ERRORED. This step was wrapped in `if (!android.permission.flags.Flags.enhancedConfirmationModeApisEnabled() || !android.security.Flags.extendEcmToAllSettings())`, so it was skipped whenever both flags were enabled and ECM state was left to lazy evaluation. The removed comment justified this by saying the op's default mode became "decided later" in Android B. Per the commit message, a third-party package installer could then set the package source to PACKAGE_SOURCE_STORE to bypass ECM. The step was also posted to mPm.mHandler instead of running inline.

How the fix works

Completeness

Behavior changes

Per major

Unknowns

Back to November 2026 · Findings