[Android Apps and Games] Gatze99:
Update:

I managed to get it working by using the latest Java:

Home | Adoptium

Eclipse Adoptium provides prebuilt OpenJDK binaries ...

adoptium.net

The latest abe.jar en replace it in \bin directory:

Releases · nelenkov/android-backup-extractor

Android backup extractor. Contribute to nelenkov/android-backup-extractor development by creating an account on GitHub.

github.com

In the .bat (WhatsAppKeyDBExtract.bat) file I put a pause at line 112, so you have time to open the old version of whatsapp, see this post:

[Tool] WhatsApp Key/DB Extractor | CRYPT6-12 | NON-ROOT | UPDATED OCTOBER 2016

** Version 4.7 Updated October 2016 - Supports Android 4.0-7.0 ** SUMMARY: Allows WhatsApp users to extract their cipher key and databases on non-rooted Android devices. UPDATE: This tool was last updated on October 12th 2016. and confirmed...

xdaforums.com

In this way I did not get the java error message which has someting to do with wrong versions and stuff like that, my output is like this:

=========================================================================
= This script will extract the WhatsApp Key file and DB on Android 4.0+ =
= You DO NOT need root for this to work but you DO need Java installed. =
= If your WhatsApp version is greater than 2.11.431 (most likely), then =
= a legacy version will be installed temporarily in order to get backup =
= permissions. You will NOT lose ANY data and your current version will =
= be restored at the end of the extraction process so try not to panic. =
= Script by: TripCode (Greets to all who visit: XDA Developers Forums). =
= Thanks to: dragomerlin for ABE and to Abinash Bishoyi for being cool. =
= ### Version: v4.7 (12/10/2016) ### =
=========================================================================

Please connect your Android device with USB Debugging enabled:

* daemon not running. starting it now on port 5037 *
* daemon started successfully *

WhatsApp 2.23.25.83 installed

Found legacy WhatsApp 2.11.431 in local folder

Backing up WhatsApp 2.23.25.83
3427 KB/s (52976124 bytes in 15.094s)
Backup complete

Removing WhatsApp 2.23.25.83 skipping data
Success
Removal complete

Installing legacy WhatsApp 2.11.431
3393 KB/s (18329558 bytes in 5.275s)
Success
Install complete
Press any key to continue . . .

Now unlock your device and confirm the backup operation.

Please enter your backup password (leave blank for none) and press Enter: aa

0% 1% 2% 3% 4% 5% 6% 7% 8% 9% 10% 11% 12% 13% 14% 15% 16% 17% 18% 19% 20% 21% 22% 23% 24% 25% 26% 27% 28% 29% 30% 31% 32% 33% 34% 35% 36% 37% 38% 39% 40% 41% 42% 43% 44% 45% 46% 47% 48% 49% 50% 51% 52% 53% 54% 55% 56% 57% 58% 59% 60% 61% 62% 63% 64% 65% 66% 67% 68% 69% 70% 71% 72% 73% 74% 75% 76% 77% 78% 79% 80% 81% 82% 83% 84% 85% 86% 87% 88% 89% 90% 91% 92% 93% 94% 95% 96% 97% 98% 99% 100%
92108288 bytes written to tmp\whatsapp.tar.
apps/com.whatsapp/f/key
apps/com.whatsapp/db/msgstore.db
apps/com.whatsapp/db/wa.db
apps/com.whatsapp/db/axolotl.db
apps/com.whatsapp/db/chatsettings.db

Extracting whatsapp.cryptkey ...
1 file(s) copied.

Extracting msgstore.db ...
1 file(s) copied.

Extracting wa.db ...
1 file(s) copied.

Extracting axolotl.db ...
1 file(s) copied.

Extracting chatsettings.db ...
1 file(s) copied.

Pushing cipher key to: /sdcard/WhatsApp/Databases/.nomedia
1 KB/s (158 bytes in 0.117s)

Cleaning up temporary files ...

Deleted file - D:\Stack\Prive\Smartphone\Whatsapp\decryptWhatsapp\WhatsApp-Key-DB-Extractor-master\WhatsApp-Key-DB-Extractor-master\tmp\whatsapp.ab
Deleted file - D:\Stack\Prive\Smartphone\Whatsapp\decryptWhatsapp\WhatsApp-Key-DB-Extractor-master\WhatsApp-Key-DB-Extractor-master\tmp\whatsapp.tar
Deleted file - D:\Stack\Prive\Smartphone\Whatsapp\decryptWhatsapp\WhatsApp-Key-DB-Extractor-master\WhatsApp-Key-DB-Extractor-master\tmp\waplen.txt
Deleted file - D:\Stack\Prive\Smartphone\Whatsapp\decryptWhatsapp\WhatsApp-Key-DB-Extractor-master\WhatsApp-Key-DB-Extractor-master\tmp\sdpath.txt
Deleted file - D:\Stack\Prive\Smartphone\Whatsapp\decryptWhatsapp\WhatsApp-Key-DB-Extractor-master\WhatsApp-Key-DB-Extractor-master\tmp\wapath.txt
Deleted file - D:\Stack\Prive\Smartphone\Whatsapp\decryptWhatsapp\WhatsApp-Key-DB-Extractor-master\WhatsApp-Key-DB-Extractor-master\tmp\wapver.txt
Deleted file - D:\Stack\Prive\Smartphone\Whatsapp\decryptWhatsapp\WhatsApp-Key-DB-Extractor-master\WhatsApp-Key-DB-Extractor-master\tmp\sdkver.txt

Done

Restoring WhatsApp 2.23.25.83
3385 KB/s (52976124 bytes in 15.281s)
Success

Restore complete

Removing WhatsApp 2.23.25.83 temporary apk
Deleted file - D:\Stack\Prive\Smartphone\Whatsapp\decryptWhatsapp\WhatsApp-Key-DB-Extractor-master\WhatsApp-Key-DB-Extractor-master\tmp\base.apk

Operation complete

Press any key to continue . . .

You can find already the current DEcrypted msgstore.db at \extracted, I guess this is the .db file which Whatsapp is using at moment. I guess you can not see/reach this file on an unrooted phone. But I had some older encrypted backups that I wanted to decrypt.

After this I tried to use Whatsapp viewer (https://andreas-mausch.de/whatsapp-viewer/) but it did not work. I found a nice and simple python decrypt program:

GitHub - pharaoh1/WhatsApp-Crypt14-Decrypter: Decrypts WhatsApp msgstore.db.crypt14 files.

Decrypts WhatsApp msgstore.db.crypt14 files. Contribute to pharaoh1/WhatsApp-Crypt14-Decrypter development by creating an account on GitHub.

github.com

Which works, this one also works:

GitHub - ElDavoo/wa-crypt-tools: Manage WhatsApp .crypt12, .crypt14 and .crypt15 files.

Manage WhatsApp .crypt12, .crypt14 and .crypt15 files. - ElDavoo/wa-crypt-tools

github.com

After decrypting you can check your .db file with:

Downloads - DB Browser for SQLite

sqlitebrowser.org

Look at the table 'message' and collum 'text data' there you can find your messages, but it is ordered on time, not on receiptants.

You can also check if decryption is succeeded by opening it by a text editor and look if the file starts with 'SQLite format 3'

Finding software for viewing the message was a hard time, eventually I found this:

GitHub - abdeladim-s/whatsapp-msgstore-viewer: Free, open source and cross-platform app to decrypt, read and view the Whatsapp msgstore.db database

Free, open source and cross-platform app to decrypt, read and view the Whatsapp msgstore.db database - abdeladim-s/whatsapp-msgstore-viewer

github.com

If I have time I will try to make a completely step by step, but I hope you succeed like this.