Redirect incoming messages broadcasts to the MAIN user.
InboundSMSHandler broadcasts incoming SMS messages to interested apps after storing them in the SmsProvider raw table and ACKing them to the SMSC. In the existing implementation all the default SMS app broadcast like SMS_DELIVER_ACTION, WAP_PUSH_DELIVER_ACTION are only sent to the SYSTEM user's default SMS app. In HSUM, when we intend to assign the bugle process to the MAIN user, we need to refactor the framework module. This will involve redirecting all the specialized broadcasts and actions from the SYSTEM user to the Subscription User. Refactor InboundSMSHander to start sending these broadcast to the MAIN user while maintaining the backward compatibility. For more info follow design doc: go/messages-hsum-design-doc Bug: 335820374 Test: Manually verfied below features on HSUM and non-HSUM mode devices aftter the change and with flag enabled. (1) Incoming and Outgoing Messages (2) Incoming and outgoing calls (3) Full RCS functionality Test: atest FrameworksTelephonyTests:WapPushOverSmsTest -c Test: atest FrameworksTelephonyTests:GsmInboundSmsHandlerTest -c Flag: com.android.internal.telephony.flags.sms_mms_deliver_broadcasts_redirect_to_main_user Change-Id: I016ec42d076dda7ca074a28846142b3a2a3f367a
Loading
Please register or sign in to comment