tmo1 / sms-ie

SMS Import / Export is a simple Android app that imports and exports SMS and MMS messages, call logs, and contacts from and to JSON / NDJSON files.
GNU General Public License v3.0
319 stars 38 forks source link

Incorrect interpretation of SIM card slots #118

Open Marucins opened 1 year ago

Marucins commented 1 year ago

I am using a OnePlus 9 Pro, I have created an SMS/MMS copy on the phone which has two SIM cards. After uploading this copy to the S23 Ultra, the software misinterprets the SIM card slots. It changes them in reverse. Where SIM1 was is SIM2 and where SIM2 is SIM1.

For "[com.github.tmo1.sms_ie-v2.0.0-pre.2.apk]"

tmo1 commented 1 year ago

Thank you for reporting this. I don't have a dual SIM device, and I don't really know anything about how they work. It woulld be good to get this right, but I doubt I'll be able to get to this in the near future.

tmo1 commented 1 year ago

I checked the Android documentation, and I suspect that this problem arises from the fact that Android does not associate messages directly with SIM cards, but rather with "Subscription IDs," and:

there may be cases where the same SIM has a different Subscription ID on different devices or different SIMs have the same ID on different devices.

If your SIM cards have switched IDs on the new device, then that would presumably cause the messages to be associated with the wrong SIM cards. The best way to fix this (short of getting the SIM cards to have the same IDs as on the original device, either by physically swapping them or via some other method) would probably be to adjust all the sub_id values in the JSON via jq or a script.