Giter Site home page Giter Site logo

Comments (15)

Aga-C avatar Aga-C commented on July 23, 2024 2
  1. Just to be sure - have you checked if the file really has no data? Because it can be working, but for a some reason Android reports wrong file size.
  2. Does it work when you check to export only SMS?
  3. When exporting, do you see a toast message informing that the export has been successful?

from messages.

tom93 avatar tom93 commented on July 23, 2024 2

The custom patched version exported successfully.

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

after finding a way around setting it as the new default app just so i can open it (App info > Additional settings in the app)

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

Apps must be actively registered as the default SMS, Phone, or Assistant handler before prompting users to accept any of SMS or Call Log permissions. Those apps must immediately stop using the permission when they're no longer the default handler.

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).

from messages.

naveensingh avatar naveensingh commented on July 23, 2024 1

Because it can be working, but for a some reason Android reports wrong file size.

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.

from messages.

QuestioningEspecialy avatar QuestioningEspecialy commented on July 23, 2024 1

@Aga-C
the 0 byte json's are empty in HTML Viewer, Vanadium (a browser), and a document viewer
i'll try out the fix later

from messages.

QuestioningEspecialy avatar QuestioningEspecialy commented on July 23, 2024

@Aga-C

  1. is there a quick way to check without temporarily installing a different messenger app? don't want duplicates in my primary messenger 🤷🏿‍♂️
  2. exporting SMS alone does work, but exporting MMS alone doesn't
  3. only when exporting SMS alone

@naveensingh
i've only checked with Fossify's File Manager and my desktop Windows Explorer (or whatever the general folder system's called)
not sure what the "document file picker" is, but those exports from yesterday are still 0 bytes on my phone

from messages.

Aga-C avatar Aga-C commented on July 23, 2024

 is there a quick way to check without temporarily installing a different messenger app? don't want duplicates in my primary messenger 🤷🏿‍♂️

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.

 but exporting MMS alone doesn't

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.

from messages.

tom93 avatar tom93 commented on July 23, 2024

@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?
(I tested in an emulator running Android 14, device definition Pixel 6a, architecture x86_64 because the emulator didn't support arm64-v8a in my setup; command: avdmanager create avd --name pixel_6a -k "system-images;android-34;default;x86_64" -d pixel_6a)
I don't think the SecurityException is caused by my patch. Probably the patch is allowing the app to progress further and encounter the SecurityException. If you can get the debug logs it would probably be helpful.
Another thing to try (easy but only marginally useful) is to switch back to the official release and export just SMS, and then just MMS; hopefully one of them would be small enough for the export to progress, and either succeed or run into the same SecurityException (the aim is to pinpoint whether the SecurityException is caused by the debug release or something else).

from messages.

QuestioningEspecialy avatar QuestioningEspecialy commented on July 23, 2024

@tom93 i've only used GrapheneOS and FossifyOrg's File Manager (if i understood you correctly)
i might the the debug logs process later 😑

from messages.

tom93 avatar tom93 commented on July 23, 2024

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 pm hide com.android.documentsui as root to avoid using the native file manager), but I still didn't get the SecurityException.

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).

from messages.

s1nistr4 avatar s1nistr4 commented on July 23, 2024

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)

from messages.

DaGeek247 avatar DaGeek247 commented on July 23, 2024

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.

from messages.

tom93 avatar tom93 commented on July 23, 2024

from messages.

DaGeek247 avatar DaGeek247 commented on July 23, 2024

are you getting a crash?

Nope, just a failure to write anything after creating the empty file.

What precisely happens during the failed import after you tap "OK"?

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.

What are the file sizes of the successful individual SMS and MMS exports?

47.42MB for the MMS file, and 2.15MB for the SMS file.

And please check you have enough available storage.

Oh it definitely has the space. 67GB free on the phone storage.

from messages.

tom93 avatar tom93 commented on July 23, 2024

@DaGeek247:

After 15 seconds, the settings screen switches back to the text conversations screen on it's own.

That's odd. The app is supposed to stay on the Settings screen after the export finishes.
And the code should display either "Exporting successful", or an error message, or a crash dialog when the export finishes (so in all cases you should see something).
The only explanation I can think of is that the OS is terminating the activity.
Are you using Android or GrapheneOS? And which version?

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).
I don't know if it could be an out-of-memory issue. On the one hand, 50MB isn't that big. On the other hand, the only difference between individual SMS/MMS export and combined export should be the size (and time).
I think my APK with the out-of-memory fix (#6 (comment)) might still be worth a shot. Even better would be a debug build that displays more information. (And best of all would be the logcat output...)

from messages.

DaGeek247 avatar DaGeek247 commented on July 23, 2024

Are you using Android or GrapheneOS? And which version?

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.

from messages.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.