Navigation

    UBports Robot Logo

    UBports Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    SOLVED Problem restoring history.sqlite file

    Support
    2
    8
    76
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Keneda
      Keneda last edited by Keneda

      Now i succeeded installing last ubports OS on my MX4, i started restoring my data.
      I backed it up via wifitransfert, cloning the entire phablet folder.

      First i cloned back the contact.db and photo folder attached to in evolution\adressboock\system folder, then restarted phone and voilà, contacts back.

      Then i intended to do the same with history.sqlite + attachments folder cloned in history-service folder then restarting phone, but it's a fail.

      Phone restart took longer, then messaging app took a loooong time to load, with a circle rounding, but when finished, nothing on phone, not a single old message.

      Tried without attachments folder, same.

      Tried to delete history-deamon.lock (that wasn't on my old ota 15 system), same, and daemon file automatically recreated by system.

      Noticed a new file was created after attempt to restore old history files : history.sqlite-journal.

      What am i doing wrong?

      2015-Now : Meizu MX4 (Stable) for daily use
      Spare : Nexus 5 (Stable)

      1 Reply Last reply Reply Quote 0
      • Keneda
        Keneda @kugiigi last edited by Keneda

        @kugiigi
        Thank to you, don't know if that's linked but everything is fine now, history.sqlite-journal disappeared, some messages went nowhere, but now it's ok!!!

        Maybe the history.sqlite-journal was a "work in progress" by the phone to restore this quite big database files (186Mio total, 1700 files in attachment).

        2015-Now : Meizu MX4 (Stable) for daily use
        Spare : Nexus 5 (Stable)

        1 Reply Last reply Reply Quote 1
        • K
          kugiigi last edited by

          How did you restore your home data? Perhaps a problem with the directory/file permission?
          Also, do you use the same sim card? I think using a different sim will not show the old data.

          Keneda 1 Reply Last reply Reply Quote 0
          • Keneda
            Keneda @kugiigi last edited by

            @kugiigi
            I used wifitransfert as i did for backing all phablet and then restore contact.db
            I tried first without and then with same sim card as before upgrading mx4.

            2015-Now : Meizu MX4 (Stable) for daily use
            Spare : Nexus 5 (Stable)

            1 Reply Last reply Reply Quote 0
            • Keneda
              Keneda last edited by

              So i ran some tests...

              I got a very old (2016) back up of history.sqlite and attachments files, and restored it, and it worked, no history.sqlite-journal created by os.

              The tried again my actual history-service files and again, doesn't work, and history.sqlite-journal created.

              The very old sqlite file is 368Kio, the actual is 2.4Mio, and "journal" created is 1.3Mio.

              I think it's a matter of size or something to do with number of messages in conversations.
              I searched a messages limite option but nothing.

              I think i'm pretty stuck right here, except if someone has a solution to this, someone with a really good knowledge of the system...

              2015-Now : Meizu MX4 (Stable) for daily use
              Spare : Nexus 5 (Stable)

              1 Reply Last reply Reply Quote 0
              • K
                kugiigi last edited by

                Mine is 5.2 MB and works. I also transfer my data from devices to devices. Can you try sending an SMS after you restored the file? Would be better if the contact is someone you have an existing thread already.

                Keneda 2 Replies Last reply Reply Quote 1
                • Keneda
                  Keneda @kugiigi last edited by Keneda

                  @kugiigi

                  Is yours comes from a canonical OTA-15 phone?
                  Have you a history.sqlite-journal file created after restoring it?

                  2015-Now : Meizu MX4 (Stable) for daily use
                  Spare : Nexus 5 (Stable)

                  K 1 Reply Last reply Reply Quote 0
                  • K
                    kugiigi @Keneda last edited by

                    @Keneda Yes, my SMS/Calls data goes way back 2015 😉 And no, I don't have that journal file.

                    1 Reply Last reply Reply Quote 1
                    • Keneda
                      Keneda @kugiigi last edited by Keneda

                      @kugiigi
                      Thank to you, don't know if that's linked but everything is fine now, history.sqlite-journal disappeared, some messages went nowhere, but now it's ok!!!

                      Maybe the history.sqlite-journal was a "work in progress" by the phone to restore this quite big database files (186Mio total, 1700 files in attachment).

                      2015-Now : Meizu MX4 (Stable) for daily use
                      Spare : Nexus 5 (Stable)

                      1 Reply Last reply Reply Quote 1
                      • First post
                        Last post