Messages icon indicating copy to clipboard operation
Messages copied to clipboard

Fix missing messages after import on Android 14 due to subscriptionId

Open tom93 opened this issue 1 year ago • 0 comments

What is it?

  • [x] Bugfix
  • [ ] Feature
  • [ ] Codebase improvement

Description of the changes in your PR

On Android 14, imported messages are not visible if their subscriptionId[1] does not correspond to one of the SIMs in the device. As a workaround, we set subscriptionId to -1 ("unknown") on all messages during import.

This does mean that when exporting then importing on the same device, the SIM associations will be lost. But that doesn't seem noticeable.

Credit: SMS Import / Export app, https://www.github.com/tmo1/sms-ie/issues/128

[1] https://developer.android.com/identity/user-data-ids#mobile-subscription-status

Fixes the following issue(s)

  • Fixes #191.

Acknowledgement

tom93 avatar Jul 15 '24 13:07 tom93