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

importing messages not possible #120

Closed MolendijkM closed 11 months ago

MolendijkM commented 1 year ago

Hi, I am having an issue with importing messages. Importing calls and contacts worked fine, but when I try to import messages, they are all greyed out. smsimportexport is the default sms app. the messages are in the .json format, and when I open one in text editor they have content. I tried re-installing the app but this did not help. How can I import my sms messages?

edit I have to point out that the files were created with sms-ie itself (scheduled export, with removal of old exports (which were not deleted by the way))

crosenbe commented 1 year ago

Same issue here. Only files with .json suffix are enabled to import messages. Extracting the messages.ndjson to messages.json doesn't work either. There is an exception an array is expected.

Issue appears on Android13. (exported on Android9)

crosenbe commented 1 year ago

It seems the json structure was not exported as array but an array is expected. I extracted the json file from the zip and modified it in a simple manner.

Original version

{ <record> }
{ <record> }
{ <record> }

Modification

[
{ <record> },
{ <record> },
{ <record> }
]

I pushed the json file to my device and the import was successful but i lost my MMS in case i pushed the json and not the zip.

aa755 commented 1 year ago

I have an old .json export. Now I want to import it to my new phone where the app expects a .zip import. is there a way to convert?

tmo1 commented 1 year ago

Please see issue #117. If you still have trouble, please report the problem with more details, including the version of the app used to export and import.

tmo1 commented 1 year ago

I have an old .json export. Now I want to import it to my new phone where the app expects a .zip import. is there a way to convert?

https://github.com/tmo1/sms-ie#changes-in-version-200 https://github.com/tmo1/sms-ie/blob/master/tools/Tools.md#v1-v2-convertpy https://github.com/tmo1/sms-ie/blob/master/tools/v1-v2-convert.py

tmo1 commented 11 months ago

I'm closing this issue on the assumption that the problems reported here all stem from the v1 - v2 transition, and can be resolved using the methods I link to above. If any problems remain, please reopen the issue and provide more detail.

aa755 commented 11 months ago

my problem was resolved using the methods you linked, thanks

tmo1 commented 11 months ago

my problem was resolved using the methods you linked, thanks

Thanks for letting me know!