Closed farzadx closed 1 year ago
Thank you - I'm looking into this.
Thanks . Will there be any fix ? 😢
I can't find any trace of the error message you're seeing online, but I hope I can fix the problem. I have something I'll try when I get a chance.
I have been unable to reproduce the problem using the JSON file you provided on various (emulated) Android images, including an Android 12 (API 31) one - in my tests, the two SMS messages import correctly, without error. Is your Poco X3 Pro using MIUI, or something closer to stock Android, like LineageOS?
Miui
If the problem can't be reproduced on regular Android, there's not much I can do to troubleshoot. Just guessing from the error message (about which I can't find anything online, as above, perhaps because it's not a standard Android error message), you might try removing the "deleted": "0"
lines from the JSON and seeing if that lets the improt work. If it does, I can provide a script or jq invocation that automates the process.
I recover my messages with other phone, ok i will try , thanks
If the problem can't be reproduced on regular Android, there's not much I can do to troubleshoot. Just guessing from the error message (about which I can't find anything online, as above, perhaps because it's not a standard Android error message), you might try removing the
"deleted": "0"
lines from the JSON and seeing if that lets the improt work. If it does, I can provide a script or jq invocation that automates the process.
I had similar issue on miui 14. After I deleted "deleted 0" and "sync state 0" completely from the file on the latest beta 2.0 pre version, I was able to restore my SMS. A total of 14000+ SMS so the backup was absolutely necessary.
I had similar issue on miui 14. After I deleted "deleted 0" and "sync state 0" completely from the file on the latest beta 2.0 pre version, I was able to restore my SMS.
Thank you for the report. I plan to document this problem and solution in the README and close this issue.
FTR, removing all the deleted
keys from the JSON can be done with the jq tool:
~$ jq 'del(.[].display_name)' messages-nnn.json > messages-nnn-MIUI-stripped.json
where messages-nnn.json
is the name of the original JSON file, and messages-nnn-MIUI-stripped.json
is a file to write the stripped JSON to.
To remove both the deleted
and sync_state
keys, run:
~$ jq 'del(.[] ["deleted", "sync_state"])' messages-nnn.json > messages-nnn-MIUI-stripped.json
Hi When i import messages i get error My phone is poco x3 pro Android 12