Signal-Android icon indicating copy to clipboard operation
Signal-Android copied to clipboard

Importing WhatsApp messages fails

Open panomitrius opened this issue 3 years ago • 6 comments

I just downloaded the lastest version of your Signal fork (6.0.1.0-JW) here on github, and trying to import a decrypted msgstore.db according to this guide fails. The Signal app just instantly says "Import complete", but nothing happens. I've tried putting in root directory and in root directory on the sd-card, doesn't help.. I'm running LineageOS with MicroG 19.1 on a Samsung phone.

Any idea what the issue could be?

panomitrius avatar Oct 26 '22 20:10 panomitrius

Without a logfile, no idea. The WA database should be placed in the root of the "internal sd card", usually something like /storage/emulated/0 in absolute path. The documentation is somewhat unclear about this, I should improve that.

If you are a member of any groups in WA you shoudl create grouos in Signal with the same name before importing.

johanw666 avatar Oct 26 '22 20:10 johanw666

It is already placed in /storage/emulated/0 (I tried to remove it and then i get an error message, so I assume it's placed properly when I don't get the error message). I'm happy to share the logs, how do I access them?

panomitrius avatar Oct 26 '22 20:10 panomitrius

Found a way to access the logs. The error message seems to be:

[org.thoughtcrime.securesms/org.thoughtcrime.securesms.ImportExportActivity#1] Invalid device requested composition type change: CLIENT (1) --> CLIENT (1)

There are more logs though, but it's quite massive only during a couple seconds, so instead of pasting more I'm attaching them here .

panomitrius avatar Oct 27 '22 04:10 panomitrius

Any thoughts on this @johanw666..?

panomitrius avatar Nov 05 '22 10:11 panomitrius

Found the prefered way to create a log, here it is: https://debuglogs.org/android/6.3.2/d58417710e26c852ef543fd8a47d3c37f4cd230f60d0612b7b09fefc6d45bc6b

panomitrius avatar Nov 22 '22 17:11 panomitrius

I think the relevant info is:

[6.3.2.0-JW] [21457] 2022-11-22 18:51:48.827 GMT+01:00 W PlaintextBackupImporter: importWhatsapp(): importGroup: true, avoidDuplicates: false
[6.3.2.0-JW] [21457] 2022-11-22 18:51:48.897 GMT+01:00 W PlaintextBackupImporter: no such table: messages (code 1 SQLITE_ERROR): , while compiling: SELECT COUNT(*) FROM messages
[6.3.2.0-JW] [21457] 2022-11-22 18:51:48.899 GMT+01:00 W WhatsappBackup: no such table: messages (code 1 SQLITE_ERROR): , while compiling: SELECT * FROM messages LIMIT 0, 1
[6.3.2.0-JW] [21457] 2022-11-22 18:51:48.899 GMT+01:00 W PlaintextBackupImporter: Exited loop

I decrypted the msgstore.db.crypt15 file with ElDavoo/WhatsApp-Crypt14-Crypt15-Decrypter without any error messages.

panomitrius avatar Nov 22 '22 17:11 panomitrius