Import doesn't include all messages on Android 14 due to subscriptionId issue #191
Open
7 tasks done
Labels
bug
Something is not working
Checklist
Affected app version
1.0.1
Affected Android/Custom ROM version
Android 14 (does not happen on Android 13)
Affected device model
Emulator
How did you install the app?
GitHub releases
Steps to reproduce the bug
(The backup was specially crafted to contain messages with subscriptionId values -1 to 4, but this issue can also happen with real backups on phones that have been used with more than one SIM card.)
Expected behavior
There should be 6 messages:
The snippet should be "Test subscriptionId 4".
Actual behavior
The conversation snippet is initially "Test subscriptionId 4" (which is correct).
The messages in the conversation are only "Test subscriptionId -1" and "Test subscriptionId 1" (depending on the SIM card).
When returning to the conversation list, the snippet is now "Test subscriptionId 1".
When deleting the conversation, the messages are removed from the conversation but the conversation remains in the conversation list (and the snippet becomes "Test subscriptionId 4").
Screenshots/Screen recordings
screenrecord.mp4
Additional information
Equivalent bug in the "SMS Import / Export" app, with some analysis: tmo1/sms-ie#128
They decided to work around Android's behaviour by setting the subscription ID to -1 (unknown) during import. I suggest we do the same: #192.
Credit: SMS Import / Export, @BlastboomStrice (#88 (comment)), @miru299 (#188), @gusr (#6 (comment)).
The text was updated successfully, but these errors were encountered: