CVE-2026-55289 AI-generated analysis
platform/packages/services/Telecomm: shim UserCallActivity, TelecomUi UserCallActivity, TelecomServiceImpl#placeCall, NewOutgoingCallIntentBroadcaster
Telecom's ACTION_CALL trampoline (system shim UserCallActivity -> TelecomUi UserCallActivity -> TelecomServiceImpl#placeCall) now forwards the original sender's package and UID in extras, and placeCall evaluates CALL_PHONE, CALL_PRIVILEGED and the CALL_PHONE app-op against that identity instead of TelecomUi's privileged identity, so trampolined calls from unprivileged apps are no longer promoted to ACTION_CALL_PRIVILEGED.
Root cause
In the Android 17 Telecom layout, an ACTION_CALL intent from a third-party app is received by the system shim com.android.server.telecom.components.UserCallActivity and re-targeted as ACTION_CALL_TRAMPOLINE to com.android.server.telecomui.components.UserCallActivity, which calls TelecomManager#placeCall. TelecomServiceImpl#placeCall then ran canCallPhone, mAppOpsManager.noteOp(OPSTR_CALL_PHONE, Binder.getCallingUid(), callingPackage, ...) and checkCallingOrSelfPermission(CALL_PHONE / CALL_PRIVILEGED) against the binder caller, which is TelecomUi. Because TelecomUi holds CALL_PRIVILEGED, hasCallPrivilegedPermission was true and the intent handed to UserCallIntentProcessor#processIntent was treated as privileged (ACTION_CALL_PRIVILEGED rather than ACTION_CALL, per the new test). NewOutgoingCallIntentBroadcaster#process therefore did not apply its ACTION_CALL 'caller must be system or default dialer' checks for dangerous MMI/USSD codes and emergency numbers. No information about the real sender was carried across the trampoline. The removed TelecomUi verifyCallAction() only normalized the intent action, and placeCall receives only the data and extras.
How the fix works
- shim/src/com/android/server/telecom/components/UserCallActivity.java:onCreate - after building the ACTION_CALL_TRAMPOLINE intent, checks intent.getComponent(). Only when the target class name equals UserCallActivity.class.getName() does it add the extras android.telecom.extra.TRAMPOLINE_CALLING_PACKAGE = getLaunchedFromPackage() and android.telecom.extra.TRAMPOLINE_CALLING_UID = getLaunchedFromUid(). This excludes the EmergencyCallActivity/PrivilegedCallActivity aliases, for which ActivityManager already enforced CALL_PRIVILEGED or the START_ANY_ACTIVITY bypass. Because newIntent is a copy of the incoming intent, putExtra overwrites any sender-supplied values of these keys on that path. For alias targets the extras are deliberately not added, which preserves privilege delegation and avoids the Emergency SOS regression b/524878429.
- TelecomUi/src/com/android/server/telecomui/components/UserCallActivity.java:onCreate - removes verifyCallAction(). The trampoline intent's extras (including the new ones) are passed unchanged to tm.placeCall(intent.getData(), intent.getExtras()).
- src/com/android/server/telecom/TelecomServiceImpl.java:placeCall - after enforceCallingPackage(callingPackage) (still checked against the binder caller), computes actualCallingUid/actualCallingPackage/actualCallingFeatureId. If isCallerTelecomUi(callingPackage) is true (the binder caller holds CALL_PRIVILEGED and callingPackage equals mTelecomUiPackageName) and the extras contain EXTRA_TRAMPOLINE_CALLING_PACKAGE, the package and UID are taken from the extras. The extras are then removed so they do not propagate downstream, and the feature id is set to null to avoid an AppOps attribution mismatch.
- src/com/android/server/telecom/TelecomServiceImpl.java:placeCall - the non-self-managed CALL_PHONE gate now calls the new canCallPhone(actualCallingPackage, actualCallingFeatureId, actualCallingUid, msg) overload inside Binder.clearCallingIdentity()/restoreCallingIdentity. The SecurityException and anomaly report are unchanged.
- src/com/android/server/telecom/TelecomServiceImpl.java:placeCall - hasCallAppOp, hasCallPermission and hasCallPrivilegedPermission are now computed under cleared identity. They use mAppOpsManager.noteOp(OPSTR_CALL_PHONE, actualCallingUid, actualCallingPackage, actualCallingFeatureId, null) and mContext.checkPermission(CALL_PHONE / CALL_PRIVILEGED, IGNORE_PID (-1), actualCallingUid) instead of checkCallingOrSelfPermission. processIntent now receives actualCallingPackage. The test testPlaceCallTrampolinePrivilegeDowngrade asserts that the intent becomes ACTION_CALL and that the package extra is stripped.
- src/com/android/server/telecom/TelecomServiceImpl.java:canCallPhone / isPrivilegedDialerCalling - adds new overloads that take an explicit callingUid. The existing 2- and 3-argument forms delegate with Binder.getCallingUid(). isPrivilegedDialerCalling(pkg, uid) calls mAppOpsManager.checkPackage(callingUid, callingPackage) and derives the user id from UserHandle.getUserHandleForUid(callingUid). canCallPhone uses checkPermission/enforcePermission(..., IGNORE_PID, callingUid).
- src/com/android/server/telecom/NewOutgoingCallIntentBroadcaster.java:process - changes only a log message (adds '(and not trampolined).'). The blocking logic (launchSystemDialer + OUTGOING_CANCELED when !mIsDefaultOrSystemPhoneApp) is unchanged.
- tests/src/com/android/server/telecom/tests/TelecomServiceImplTest.java - setUp routes checkPermission/enforcePermission to the checkCallingOrSelfPermission mocks; adds testPlaceCallTrampolinePrivilegeDowngrade.
Completeness
- Covers the trampoline path through the shim's unprivileged UserCallActivity. The sender's identity is forwarded and is consumed only when the binder caller is TelecomUi (a CALL_PRIVILEGED holder whose package equals mTelecomUiPackageName). It is then used for canCallPhone, the AppOps note, both permission checks and the package passed to processIntent.
- For direct placeCall binder callers, isCallerTelecomUi() is false, so the extras are not consumed and the checks still use the binder caller's own UID and package. The checks are now UID-based (checkPermission/enforcePermission with pid -1 instead of the checkCallingOrSelf variants), and the AppOps and permission checks run with the calling identity cleared.
- On the unprivileged path, forged extras from the original ACTION_CALL sender are overwritten by the shim. On the alias paths (EmergencyCallActivity/PrivilegedCallActivity), sender extras pass through unmodified, but the sender must have passed ActivityManager's CALL_PRIVILEGED / START_ANY_ACTIVITY enforcement to reach them. isPrivilegedDialerCalling also calls checkPackage(uid, pkg) on the forwarded pair.
- In the shim, a null targetComponent is treated like a privileged alias (no extras attached), so such an intent would still be evaluated with TelecomUi's identity. The material does not show whether the delivered intent can have a null component.
- The sender's original attribution tag (feature id) is lost (set to null) for trampolined calls.
- enforceCallingPackage(callingPackage, "placeCall") still checks the binder caller (TelecomUi), not the forwarded package. The forwarded package is validated only via checkPackage inside isPrivilegedDialerCalling.
Behavior changes
- When a non-dialer app holding only CALL_PHONE sends ACTION_CALL for a dangerous MMI/vertical code or an emergency number, NewOutgoingCallIntentBroadcaster now launches the system dialer and sets DisconnectCause.OUTGOING_CANCELED instead of placing the call immediately.
- A trampolined caller without CALL_PHONE (or with the CALL_PHONE app-op denied) now gets SecurityException('CALL_PHONE permission required to place calls.') plus an anomaly report from placeCall.
- Two new extras (android.telecom.extra.TRAMPOLINE_CALLING_PACKAGE / _UID) are added by the shim and stripped by placeCall before the intent reaches UserCallIntentProcessor.
- The CALL_PHONE app-op for trampolined calls is noted against the original app's UID/package with a null attribution tag, not against TelecomUi.
- Emergency SOS (SystemUI via the EmergencyCallActivity alias) keeps TelecomUi's identity, because the extras are only attached for the plain UserCallActivity target.
- TelecomUi's UserCallActivity no longer rewrites the intent action (verifyCallAction removed).
- New log lines: 'Unprivileged trampoline: forwarding calling package ...' / 'Privileged trampoline: skipping calling package extraction ...'.
Per major
- Android 14: not affected per the bulletin; android-security-14.0.0_r31 has 6/8 lines of the patched region; no fix applied
- Android 15: not affected per the bulletin; android-security-15.0.0_r19 has 6/8 lines of the patched region; no fix applied
- Android 16: not affected per the bulletin; android-security-16.0.0_r10 has 6/8 lines of the patched region; no fix applied
- Android 17: same fix: commit 45a9ba77aa09 (cherry-pick of fdb996fdb068, Change-Id Ib6007e161d45429a11b1ec3e2a34dbc87a380b7b) in android-security-17.0.0_r1; fully present (8/8 lines) at android-security-17.0.0_r3
Unknowns
- Whether the TelecomUi UserCallActivity (the ACTION_CALL_TRAMPOLINE receiver) is exported or otherwise directly reachable by non-system apps with self-supplied trampoline extras; the material does not show its manifest.
- Whether the intent delivered to the shim UserCallActivity can ever have a null component (the null case is treated as privileged).
- How mTelecomUiPackageName is populated, and whether getLaunchedFromPackage()/getLaunchedFromUid() are always available for the shim activity.
- The effect of shipping only the shim half without the TelecomServiceImpl change (extras would not be stripped before downstream processing).
- The exact commit of the earlier, regressed fix attempt (b/524878429) and whether any intermediate tag shipped it.