-
-
Notifications
You must be signed in to change notification settings - Fork 42
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
export messages json is 0 bytes #169
Comments
|
This has happened to me too. The file size was correct when I checked using a file manager but it was 0 bytes only in the document file picker. It could be that the file was still being written, FossifyOrg/General-Discussion#120 will at least clear up the progress issue. |
@naveensingh |
You could open it as a text file in any file manager app. You can even open it on your desktop in Notepad. I was only interested if there's any data in a file because Android can report file size wrongly.
If there's no data in a file, it sounds like it can be a similar problem as #6, but for some reason the app doesn't crash in your case. Maybe the same fix will help. In that issue, the author of the fix uploaded an APK file - you can check if it also addresses your problem. |
@Aga-C |
@QuestioningEspecialy I can't reproduce the new SecurityException (#6 (comment)). Have you tried stock Android, or only GrapheneOS? And which file picker are you using? |
@tom93 i've only used GrapheneOS and FossifyOrg's File Manager (if i understood you correctly) |
The file picker is the app that asks you to pick the destination folder. It opens after you tap "OK" in dialog for choosing what to export (SMS/MMS). You should be able to tell by the appearance whether it's a native file manager or Fossify File Manager. I tested with Fossify File Manager as the file picker on Android (I had to run I can't find an easy way to run GrapheneOS in an emulator. Speaking for myself (since I'm not on the Fossify team), I think the GrapheneOS team should take a look at this and let us know whether it's a bug in GrapheneOS or the Fossify apps, because it's working fine on Android and I can't find an easy way to test on GrapheneOS. They should be able to reproduce the issue using the official release of Fossify Messages from GitHub or F-Droid; they'll just need to ensure that the export is small, otherwise they'll run into the same issue that you initially ran into (#6). If you'd like to back up your messages soon, it might be possible to find a temporary workaround (e.g. use Android's sharing API to transfer the exported file to another app such as the file manager). |
If I had a nickel for every time a FOSS messaging app messed up backup/restore, I'd have two nickels, which isn't a lot but it's weird that it happened twice (the other being QUIK sms) |
I have the same issue. If i only export MMS or SMS, it will work fine. If I try to export both, it fails. The file it creates on failure are definitely empty. |
@DaGeek247, are you getting a crash? If so, see #6 (APK with patch: #6 (comment)).
If not, I have some questions: What precisely happens during the failed export after you tap "OK"? What are the file sizes of the successful individual SMS and MMS exports? And please check you have enough available storage.
@QuestioningEspecialy, I just noticed that you didn't get a crash originally (unlike #6), and that SMS-only worked for you originally but not with my APK. So my theory that the patch is allowing the app to progress further and encounter the SecurityException is probably wrong.
I think getting the debug logs is the next logical step in troubleshooting (I'm happy to build a debug APK that displays the full exception details, let me know if you're interested).
|
Nope, just a failure to write anything after creating the empty file.
I press export, I select the documents folder as the save location with the default name. It then shows the little "Exporting" notification at the bottom of the screen. After 15 seconds, the settings screen switches back to the text conversations screen on it's own. The new file has no data in it.
47.42MB for the MMS file, and 2.15MB for the SMS file.
Oh it definitely has the space. 67GB free on the phone storage. |
That's odd. The app is supposed to stay on the Settings screen after the export finishes. I tried to reproduce the issue using backups of a similar size in an emulator (Android 14), but the export worked fine (and was pretty fast). |
Android 13, OnUI 5.1, Google Play November 1, 2023, Security Patch June 1, 2024, S20FE 5G. The custom patched version exported successfully. The current f-droid version (1.0.1) continues to repeatably fail to export sms and mms at the same time. |
Cool, so this should be fixed once #139 is merged & released. I was mistaken about the crash dialog -- Android can silently restart the app without giving any indication that there was a crash. On Android 14, the dialog "[app] keeps stopping" is only displayed if the app crashed multiple times within a short time period; further, in my testing I couldn't make the dialog appear a second time unless I reinstalled the app. @QuestioningEspecialy, given all this, I believe you are running into the same bug after all (the confirmation would be if the app switches to the conversation list after the export instead of staying on the Settings screen). So just wait until #139 is merged & released. Also, I worked out why you got the SecurityException. You wrote
At first I misread this and thought you just had some trouble making it the default messaging app, but now I realise that you managed to open the app without making it the default messaging app. This isn't supported, and can't be supported because the Google Play policy requirements say
So the "bug" is that when the app is launched using your clever workaround (App info > Additional settings in the app) it doesn't ask you to make it the default messaging app. It should ask you do make it the default messaging app, because otherwise it can't do anything useful (it's not supposed to request any SMS permissions due to the Google Play policy, and without permissions it will just get a SecurityException). |
Checklist
Affected app version
1.0.1
Affected Android/Custom ROM version
Android 14 / GrapheneOS
Affected device model
Google Pixel 6a
How did you install the app?
GitHub releases
Steps to reproduce the bug
Expected behavior
should be atleast a kilobyte, but probably over 300MB by now
Actual behavior
its file size ain't even a byte 😐
Screenshots/Screen recordings
No response
Additional information
n/a
The text was updated successfully, but these errors were encountered: