Android security tags, read closely by Lightrion

CVE-2026-55262 AI-generated analysis

platform/frameworks/base, NotificationManagerService (notification listener access management)

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

The component-name length limit in NotificationManagerService.setNotificationListenerAccessGrantedForUser is now enforced on the encoded byte length of the flattened ComponentName (getBytes().length) instead of its Java char count (length()).

Root cause

In services/core/java/com/android/server/notification/NotificationManagerService.java, setNotificationListenerAccessGrantedForUser rejected a grant when listener.flattenToString().length() exceeded NotificationManager.MAX_SERVICE_COMPONENT_NAME_LENGTH. String.length() counts UTF-16 code units, so a component name made of multi-byte characters (e.g. U+4E2D is 3 bytes in UTF-8, per the test comment) could pass the check while its encoded form was far longer than the intended limit. The flattened name is then passed on to mListeners.setPackageOrComponentEnabled and mConditionProviders.setPackageOrComponentEnabled, so the limit the check was meant to enforce was not actually honoured for the stored value.

How the fix works

Completeness

Behavior changes

Per major

Unknowns

Back to November 2026 · Findings