Skip to content

Telecom: allow Android Auto to resolve PhoneAccounts for SIM disambiguation#25

Open
mroetsc wants to merge 1 commit into
GrapheneOS:16-qpr2from
mroetsc:telecom/fix-android-auto-PhoneContacts-resolve
Open

Telecom: allow Android Auto to resolve PhoneAccounts for SIM disambiguation#25
mroetsc wants to merge 1 commit into
GrapheneOS:16-qpr2from
mroetsc:telecom/fix-android-auto-PhoneContacts-resolve

Conversation

@mroetsc

@mroetsc mroetsc commented Jun 3, 2026

Copy link
Copy Markdown

related issue: GrapheneOS/os-issue-tracker#3166

I mirrored the permission used in getUserSelectedOutgoingPhoneAccount:

String perm = android.Manifest.permission.READ_PRIVILEGED_PHONE_STATE_ANDROID_AUTO;

to add a similar case to canGetPhoneAccount, since Android Auto is running sandboxed and can therefore not match against any of the other required permissions.

For the try / catch I used the same logic as in the clause above:

try {
if (isPrivilegedDialerCalling(callingPackage) || isCallerSimCallManager(
accountHandle)) {
return true;
}
} catch (SecurityException e) {
// ignore
}

…uation

canGetPhoneAccount() blocks AA since it cannot hold
READ_PRIVILEGED_PHONE_STATE
as a sandboxed app. Mirrors the existing carve-out in
getUserSelectedOutgoingPhoneAccount.

Fixes: GrapheneOS/os-issue-tracker#3166
@mroetsc mroetsc changed the title Telecom: allow Android Auto to resolve PhoneAccounts for SIM disambiuation Telecom: allow Android Auto to resolve PhoneAccounts for SIM disambiguation Jun 3, 2026
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.

1 participant