Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 90fbe009 authored by Nikhil Kumar's avatar Nikhil Kumar
Browse files

Implement callingUser propagation in outgoing SMS impl class

Currently, many calls within the outgoing SMS process use a clear calling identity. However, certain sub-calls, such as package verification in SMSDispatcher, require the calling user ID to check the associated package. Due to the clear calling identity, all calls in SMSDispatcher currently query the package in the user 0 (system user) space. This will cause a failure if a secondary user tries to send an SMS from a package not installed on the system user.

To address this, implementing a mechanism to propagate the calling user ID throughout the outgoing SMS flow, ensuring it's available where needed. This will allow package queries to be performed in the correct user space, preventing failures when secondary users send SMS messages from packages not installed for the system user.

Bug: 353351921
Test: atest TelephonyFrameworkTests
Flag: com.android.internal.telephony.flags.sms_mms_deliver_broadcasts_redirect_to_main_user
Change-Id: I6336c987b470b7bda66c2526aa7b6bafcc59d0df
parent cac7ad60
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment