WhatsApp-Key-Database-Extractor: Error: Could not install legacy WhatsApp

Describe the bug

Script stops at the same place every time, even though legacy WhatsApp is installed. OS: Windows 10 Phone: Samsung S10e (SM-G970F) Android 11

To Reproduce

Steps to reproduce the behavior:

  1. run python wa_kdbe.py (python is mapped to Python 3)
  2. Hit Enter at first (read instructions) and 2nd (backup suggestion) invitations
  3. Phone reboots and see error

Expected behavior

Script should get to the end and produce unencrypted db in /extracted folder.

Screenshots

wa_kdbe

Terminal output or log file

wa_kdbe.log

Additional context

It looks like the script is failing because something causes the phone to reboot while the Installing legacy WhatsApp V2.11.431, hold tight now step is running. And the error messages come right when it reboots, because the communication with the device is lost I’m guessing.

The legacy WhatsApp was installed, after the first try of the script. At the beginning I could launch the legacy app but not dismiss the date/time screen (it would exit the app if I tried to go back). But then after a lot of tries, including with --allow-reboot flag (exact same result), the app kept crashing on startup. I updated it from the Google Play Store, same crash on startup (and additional warning from Android saying it was hogging the battery because of the crashes). I had to uninstall and reinstall (and thus wipe the com.whatsapp folders). Right now I can’t say if the app works or not because FB servers are down and the phone number verification is in an endless wait loop.

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 48 (20 by maintainers)

Most upvoted comments

I am sorry to hear it Signal wouldn’t be an option for you.

That is a nice pun with Signal you made lol.

I’ve succeed and I like to report it here as promised. As I have a modified version of Whatsapp this mod didn’t work for me, probably I had to uninstall it, install the original and recover the database, but since it was the first time I was afraid of that and I chosed the second solution, leave my phone as it is and use a second phone. In this way I’ve reised up a problem, because when I put the sim card on the second phone and autenticated my whatsapp account there I had to repeat the same thing when back on my phone, and that required anyway a reinstallation. So better don’t do it. Anyway the method of “restore just the old backup, save messages and reinstall again with the latest backup” worked

I came across the same issue on my Redmi 4 while extracting the msg store and key, using the -ar flag to allow restarting the device solved it for me.

Thank you for your work on this project!