Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

backport from android-security-14.0.0_r17; backport getInCallServiceComponents() fix from 15 #15

Merged
merged 2 commits into from
Feb 9, 2025

Conversation

muhomorr
Copy link
Member

@muhomorr muhomorr commented Feb 9, 2025

No description provided.

Grant Menke and others added 2 commits February 8, 2025 15:57
This CL adds a check to ensure that connection creation occurs within 15 seconds after binding to that ConnectionService. If the connection/conference is not created in that timespan, this CL adds logic to manually unbind the ConnectionService at that point in time. This prevents malicious apps from keeping a declared permission in forever even in the background. This updated CL includes a null check to avoid a NPE that occurred in the first iteration of this change.

Bug: 293458004
Test: manually using the provided apk + atest CallsManagerTest
Flag: EXEMPT Security High/Critical Severity CVE
(cherry picked from commit 48d6b0df91fb1c8c0b11891f878084c6d8f9fa8a)
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:ed874348d2e9f4a219381ac646452783fc91fbca)
Merged-In: If46cfa26278f09854c10266af6eaa73382f20296
Change-Id: If46cfa26278f09854c10266af6eaa73382f20296
Several permission checks in InCallController.getInCallServiceComponents() were ignoring the
package's userId and instead always used the USER_SYSTEM (0) userId.

This broke support for secondary-user-only in-call service host packages, such as non-preinstalled
Android Auto.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants