Add SubscriptionManager.INVALID_SUB_ID while filtering SMS/MMS.
When SMS/MMS are restored from another device, then their sub_id=-1. In order to query/delete/update these messages sub_id=-1 should be appeneded to the selection string while filtering SMS/MMS based on subId.
Bug: 264328116
Test: Manually sending/receiving SMS/MMS,
atest com.android.providers.telephony.SmsProviderTest,
atest com.android.providers.telephony.MmsProviderTest,
atest com.android.providers.telephony.ProviderUtilTest,
atest CtsTelephonyProviderTestCases,
atest CtsTelephonyTestCases
Change-Id: I14b874bb073afb84a80e340c4cdb0d1721ae3918
2 files changed