Giter VIP home page Giter VIP logo

Comments (3)

tom93 avatar tom93 commented on August 12, 2024

Hi, a couple of questions:

  • How large is the backup? Edit: There is currently no progress indication, so for large backups it can be hard to tell whether the import completed. The expected behaviour is that you'll see a message saying "Importing..." at the start, then some time later you'll see another message saying "Importing successful" and the import dialog (which asked you to choose whether to import SMS / MMS) should close. If the dialog doesn't automatically close, it means the import is still running.

  • Just to confirm, did you create it using the Fossify / Simple Mobile Tools app, or some other app?

  • When you open the backup using a text editor and look for "subscriptionId", do you see "subscriptionId":1 everywhere or do you also see other values (e.g. "subscriptionId":2)? If you see values other than 1, then the issue could be related to multiple SIM cards; the workaround is to change everything to "subscriptionId":1 (credit).
    Edit: The value 1 will only work if the new phone's Subscriber ID is also 1. It's better to use -1 ("unknown"), which will work regardless.

  • the previews of every messages appears to be visible

    This is interesting. To clarify, do you mean that when you are in the main screen (the conversation list) you can see the snippets showing the most recent message in each conversation? And when you open the conversation you can't see any messages at all?

If you're willing to do some experiments, it would be interesting to try with a smaller backup. Here is an example: example-backup.json. You can also create a smaller backup by hand from your original backup:

  1. Open the original .json file using a text editor (you might need to temporarily change the file extension to .txt, and use a text editor that supports large files).
  2. Search for some text that you know is in the backup but doesn't appear after import.
  3. Copy the entire message. For SMS, it's everything from previous "{" to the next "}".
  4. Create a new text file, paste the message, and insert "[" at the start and "]" at the end. It should look similar to this (same as the example above):
    [{"subscriptionId":1,"address":"5550100","body":"This is an example message","date":1720795913000,"dateSent":0,"locked":0,"protocol":null,"read":1,"status":-1,"type":2,"serviceCenter":null,"backupType":"sms"}]
    
  5. Rename to .json and import.

these collective SMS are not in chronological order.

This is probably the same as issue #42. There is a patch for that in the works.

from messages.

miru299 avatar miru299 commented on August 12, 2024

Hi Tom93,

I appreciate for your help with this issue, I will try to do smaller chucks of the backs up and see what its lead to, as far as the technique, I was able to view quite a few messages from one contact, which is good sign and shows 98,000 lines in the file. The result with original method of backups didn't show most of the conversation.

  • In my case using SimpleSms, the behavior started off same by displaying the "imported.." message then instead of showing "Importing successful", it directly goes back to the conversation list. This is only with SimpleSms

  • In terms of the size of the file . it can be little tricky, since I do not know how accurate it maybe. On the other hand, If I change the default SMS app to Fossify SMS,. It reproduces the expected behavior you mentioned.

  • When I comparing the size, its 32mb on Fossify, whereas Simple SMS is displayed as 0,

  • I have used both Fossify / Simple Mobile to export the messages for testing it out and the end result is same

  • have used Simple Mobile SMS tool to do this

When you open the backup using a text editor and look for "subscriptionId", do you see "subscriptionId":1 everywhere or do you also see other values (e.g. "subscriptionId":2)? If you see values other than 1, then the issue could be related to multiple SIM cards; the workaround is to change everything to "subscriptionId":1.

  • I followed the steps, I was able to open the json file and reformat the json data using plugin for better viewing, I am seeing mix of "subscriptionId" some are set as 3 , other as 1

This is interesting. To clarify, do you mean that when you are in the main screen (the conversation list) you can see the snippets showing the most recent message in each conversation?
And when you open the conversation you can't see any messages at all?

  • Yes that's correct, there are snippets of the the recent messages in the preview line, when I open the conversation, its basically empty except for few verification messages that are okay.

from messages.

tom93 avatar tom93 commented on August 12, 2024

there are snippets of the the recent messages in the preview line, when I open the conversation, its basically empty except for few verification messages that are okay.

I believe the subscriptionId values are causing this issue on Android 14 (I created #191 to track this). The workaround is to change them to -1, either manually using a text editor or using this debug APK which I built; it also has a bunch of other useful patches. Alternatively, wait until #192 is merged & released.

Let me know if that helps!

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.