octoshrimpy / quik

The most beautiful SMS messenger for Android - Revived
GNU General Public License v3.0
723 stars 31 forks source link

🐞 [BUG] Error restoring a SMS backup copy #70

Open Ilya-Ezhik opened 8 months ago

Ilya-Ezhik commented 8 months ago

When trying to restore an SMS from a backup, an error occurs when reading the copy file.

Steps to reproduce the behavior:

  1. Go to "Menu --> Backup"
  2. Click on "Restore"
  3. Select the copy file
  4. Click "OK"

The dialog box will contain a description of the error "it is impossible to read the backup file"

Screenshot_20240307_022132

octoshrimpy commented 8 months ago

Looking now.

Ilya-Ezhik commented 8 months ago

Looking now.

Thanks! There is also a problem with group SMS sending, but for this probably need to open a new topic?

octoshrimpy commented 8 months ago

re is also a problem with group SMS sending, but for this probably need to open a new topic?

yes please.

octoshrimpy commented 8 months ago

looks like this may be because quik never asked for access to files, only media. it never writes a backup. I'm assuming it's the same problem when importing a backup. did this work with QKSMS?

Ilya-Ezhik commented 8 months ago

it never writes a backup.

When creating a backup, it creates a JSON file in the selected folder on the phone with all SMS (headers from the phone number and SMS text)! And then he can't read it (described above)

Ilya-Ezhik commented 8 months ago

Idid this work with QKSMS?

Yes, in that application, a backup is created and successfully restored! Without problems!

octoshrimpy commented 8 months ago

it never writes a backup.

When creating a backup, it creates a JSON file in the selected folder on the phone with all SMS (headers from the phone number and SMS text)! And then he can't read it (described above)

and you can open the json with another file viewer/editor without problem? I wonder if I have remnants of some debug build from testing directly from android studio that is interfering. mine isn't storing the file at all, which is even worse.

Ilya-Ezhik commented 8 months ago

and you can open the json with another file viewer/editor without problem?

Yes! I open it on phone using the MT Manager app without any problems! :)

Screenshot_20240308_002309_MT Manager

edent commented 8 months ago

I'm having the same issue. Both phones are use V4.0.7.

I have manually copied across the JSON file. When I try to open it in the app I get the error "Couldn't read backup file".

I can create a backup into a specific folder. But if I try to read that newly created backup on the same phone, I get that error.

The JSON file is valid and look like:

{
    "messageCount": 765,
    "messages": [
        {
            "address": "+447700900123",
            "body": "I need to order a cake for my friend's birthday in a few days.♡",
            "date": 1703340489087,
            "dateSent": 0,
            "locked": false,
            "protocol": 0,
            "read": true,
            "status": -1,
            "subId": 3,
            "type": 1
        },

Although it starts with a few "blank" entries like:

        {
            "address": "",
            "body": "",
            "date": 1511875195000,
            "dateSent": 1511875195000,
            "locked": false,
            "protocol": 0,
            "read": true,
            "status": -1,
            "subId": -1,
            "type": 2
        },
        {
            "address": "+4407700900321,
            "body": "",
            "date": 1511875284000,
            "dateSent": 1511875284000,
            "locked": false,
            "protocol": 0,
            "read": true,
            "status": -1,
            "subId": -1,
            "type": 1
        },

(Phone numbers replaced with fakes by me)

esan0 commented 8 months ago

Same issue.

octoshrimpy commented 8 months ago

looking into it. I have some large life changes coming up in the next couple months so I cannot guarantee a fix soon, but am trying to find the issue.

engelhro commented 6 months ago

Any news on this issue?

I'm affected as well. Switched from one phone to a new one today, and now I can't import my backup and all its messages. Would be really nice if this could be fixed 👍.

Thanks a lot for a short update!

SanskritFritz commented 6 months ago

Just a heads-up, a workaround: QKSMS is able to restore the backups made with QUIK.

engelhro commented 6 months ago

Just a heads-up, a workaround: QKSMS is able to restore the backups made with QUIK.

Yeah, I've seen that afterwards and it indeed helped to solve my issue! 😀

The problem existing in QUIK but not already in QKSMS should hopefully help the developer to more easily identify and fix the problem.

Would still be nice to see a working restore functionality also in the "revived" app which is QUIK.

b-risk commented 5 months ago

Hi, I'm having a similar issue too, I made a backup with this revived app on my phone and I transferred it to my computer, after wiping my phone (so no making a new backup) and installing GrapheneOS and restoring from the file in settings it gives an error where it says "couldn't read"

antistress commented 5 months ago

Same bug here with latest version from F-Droid (4.0.7) on my new Galaxy S10e with lineage-20.0-20240608-nightly And same workaround : I had to use QKSMS to import the backup file and then QUIK to synchronise itself with QKSMS

Saarsk commented 5 months ago

Here was my workaround:

I used the app "SMS Import / Export" available from F-Droid.

You might want to check the Readme. There were no issues for me, but if you have group messages etc. there might be issues.

All I did was tap "import" and it appeared in QUIK. I see there's an option in QUIK to re-synch with the native SMS database.

MoralCode commented 3 months ago

Here was my workaround:

I used the app "SMS Import / Export" available from F-Droid.

You might want to check the Readme. There were no issues for me, but if you have group messages etc. there might be issues.

All I did was tap "import" and it appeared in QUIK. I see there's an option in QUIK to re-synch with the native SMS database.

This seemed to work for me, and also seemed to import MMS, which I suspect the built in importer doesn't do.

rafnov commented 3 weeks ago

Same on me. Successfuly created backup .json (quite small - 1,17 MB) on Realme 7 Pro, uploaded to Google drive, then downloaded od Realme GT Neo 2 and tried to restore: unable to read a file. 😟 Any chances for soon fix? It's been some time since Quik was updated...

wrenix commented 3 weeks ago

I use https://github.com/tmo1/sms-ie for this Problem now

rafnov commented 3 weeks ago

Ok, it worked perfectly for me too, but that doesn't fix anything in Quik.

Renarde-dev commented 1 week ago

I could wait for a release and SMS-IE didn't work for me so I wrote a quick script to convert backups to Fossify Messages and used it to import my messages : If you want to use my script it's available on my forgejo instance : https://forgejo.la-taniere-solidaire.gay/Renarde/SMS_Import_script

[Edit : I forgot to make the script public ><]

dex2000 commented 6 days ago

FYI: it was broken in 4.06 too