-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
🐞 [BUG] Error restoring a SMS backup copy #70
Comments
Looking now. |
Thanks! There is also a problem with group SMS sending, but for this probably need to open a new topic? |
yes please. |
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? |
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) |
Yes, in that application, a backup is created and successfully restored! Without problems! |
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. |
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:
Although it starts with a few "blank" entries like:
(Phone numbers replaced with fakes by me) |
Same issue. |
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. |
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! |
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. |
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" |
Same bug here with latest version from F-Droid (4.0.7) on my new Galaxy S10e with lineage-20.0-20240608-nightly |
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. |
Same on me. |
I use https://github.com/tmo1/sms-ie for this Problem now |
Ok, it worked perfectly for me too, but that doesn't fix anything in Quik. |
FYI: it was broken in 4.06 too |
Hello, it seems to me that QUIK can import .XML files. |
it should import his own backup-files... |
I believe the issue is with permissions, as android permissions from when QKSMS was last updated vs now are very different. I'm trying to wrangle those permissions, as i'm having problems with camera as well. |
i dont think that changes of android permissions is the problem. (Last qkms-update-> January> 23, |
you also have to take into consideration the version of android QKSMS was compiled against, vs quik. quik is compiled against a newer version of the SDK, one where the permissions were deprecated. |
i have compared now the permissions and see that qksms have additional (all other permissions are the same) |
Where/how did you compare them? if you just looked at the permissions settings menus for each app in the UI of your device, theres a good chance that the underlying technical identifiers for each permission may have changed without being visible on that menu. For example, i think newer versions of android allow more granular file access permissions, where, if an app needs access to photos, you can select groups, or even individual photos to allow access to, rather than it being "all or nothing" with your entire camera roll. |
Yep.
I'm a user not an app developer. |
It's okay If you aren't a dev! As someone who has played both roles, I figured it was worth asking the question to clarify, both to help octoshrimpy understand your point, and also to offer an explanation for how your observation and octoshrimpy's assertion that the permissions had changed could both be true at the same time. |
@dex2000: @MoralCode is 100% correct. Any help is good help (and bad help is just Quality Control!) If you'd like to learn, here's a great place to start on the topic: |
I have the same issue, that is:
I'm using QUIK 4.0.10-beta (Obtainium says it's 4.0.11), Pixel 7a, GrapheneOS. It didn't ask for any additional permissions. Didn't test QKSMS as the issue was not pressing but having a working import/export would definitely be nice. Thanks for your work on this app! |
what if you go into the app's info screen and give it as many filesystem related permissions as youre able to allow - does that change the behavior of whats included in the backup file? |
There are "Music and audio" and "Photos and videos", and they are allowed. In fact, it says "No permissions denied".
Actually there's nothing wrong with the file's contents because it was a fresh install with no messages. In fact, I've sent an SMS, made another backup and the message is duly reflected in the new file. The "Couldn't read backup file" error persists, however. (On both files.) |
@MoralCode i dont understand your answers here. Maybe it could be help the lot of people where its broken. @ivan-lt all what i understand here (with my small english-knowledge): you have to learn programming languages and fix it yourself. |
I'm a noob and you know it, but:
looks very really logical, but in qksms are the last lines otherwise (stop comes first) any ideas? |
I was experimenting with this, and for some reason, when QUIK is not set as the default messaging app, it is able to restore the backup. This seems to confirm that permissions are the issue, though, I am not sure why being the default app is causing the problem. |
That would be an awesome workaround, however, I can't reproduce it here -- even when QUIK is not set as the default app, it can't read backup files, neither old nor new. Rebooting doesn't help. |
What Android version are you using? In my reading regarding this, I found that Google recently changed the Android file permissions, which is what's causing this problem, I think. |
Android 15 (GrapheneOS) |
I see, are you able to build this locally to test? @octoshrimpy After doing some research the issue may be with the proguard rules, they are the same as QKSMS but the code for Backup and Restore has changed quite a bit since then, and those rules are over 6 years old. |
@Inhishonor you made me happy for a second, but it didn't work, I have the same problem as @ivan-lt mentioned. I am also using Graphene OS, Android 15.
|
Sorry, I realized that when that happened, it was only because I had been running a locally built app. It was not due to the fact that I had revoked and then re-enabled default messaging. |
I have narrowed it down to proguard as the culprit, with it disabled even on a release build, I was able to backup and restore. |
I submitted pull request #311 that modifies the proguard rules to allow the restore functionality to access the files. I confirmed this works across two devices, each running different android versions. |
When trying to restore an SMS from a backup, an error occurs when reading the copy file.
Steps to reproduce the behavior:
The dialog box will contain a description of the error "it is impossible to read the backup file"
The text was updated successfully, but these errors were encountered: