yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] lalilu1985:
I am facing a problem !! Unfortunately I still have a backup from last week, now I have a number and would like to go to my old chats. I can't find a key where is my problem here? I did everything according to the instructions

##### WhatsApp installation and version checks #####

WhatsApp 2.11.431 installed

Legacy WhatsApp correctly downgraded

No downgrade required

Please start/launch downgraded WhatsApp application

It seems to help avoiding empty or incomplete backup via "adb backup" command

Press any key once started

Drücken Sie eine beliebige Taste . . .

##### Backup Creation #####

You can backup using "adb backup" command (option A)

or you can use "bu" command and then "adb pull" (option B) (need enough storage on sdcard)

A or B ? a

Now unlock your device and confirm the backup operation...

Size of tmp\whatsapp.ab is 7463653 bytes

##### Backup extraction #####

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

Der Befehl "java" ist entweder falsch geschrieben oder

konnte nicht gefunden werden.

bin\tar.exe: Cannot open tmp\whatsapp.tar: No such file or directory

bin\tar.exe: Error is not recoverable: exiting now

bin\tar.exe: Cannot open tmp\whatsapp.tar: No such file or directory

bin\tar.exe: Error is not recoverable: exiting now

bin\tar.exe: Cannot open tmp\whatsapp.tar: No such file or directory

bin\tar.exe: Error is not recoverable: exiting now

bin\tar.exe: Cannot open tmp\whatsapp.tar: No such file or directory

bin\tar.exe: Error is not recoverable: exiting now

bin\tar.exe: Cannot open tmp\whatsapp.tar: No such file or directory

bin\tar.exe: Error is not recoverable: exiting now

Cleaning up temporary files ...

Datei wurde gelöscht - C:\Users\Rene\Downloads\WhatsApp-Key-DB-Extractor-4.7-E1.0\WhatsApp-Key-DB-Extractor-4.7-E1.0\tmp\whatsapp.ab

Datei wurde gelöscht - C:\Users\Rene\Downloads\WhatsApp-Key-DB-Extractor-4.7-E1.0\WhatsApp-Key-DB-Extractor-4.7-E1.0\tmp\waplen.txt

Datei wurde gelöscht - C:\Users\Rene\Downloads\WhatsApp-Key-DB-Extractor-4.7-E1.0\WhatsApp-Key-DB-Extractor-4.7-E1.0\tmp\sdpath.txt

Datei wurde gelöscht - C:\Users\Rene\Downloads\WhatsApp-Key-DB-Extractor-4.7-E1.0\WhatsApp-Key-DB-Extractor-4.7-E1.0\tmp\wapath.txt

Datei wurde gelöscht - C:\Users\Rene\Downloads\WhatsApp-Key-DB-Extractor-4.7-E1.0\WhatsApp-Key-DB-Extractor-4.7-E1.0\tmp\wapver.txt

Datei wurde gelöscht - C:\Users\Rene\Downloads\WhatsApp-Key-DB-Extractor-4.7-E1.0\WhatsApp-Key-DB-Extractor-4.7-E1.0\tmp\newwapver.txt

Datei wurde gelöscht - C:\Users\Rene\Downloads\WhatsApp-Key-DB-Extractor-4.7-E1.0\WhatsApp-Key-DB-Extractor-4.7-E1.0\tmp\sdkver.txt

Done

##### Restore previous WhatsApp version #####

When debugging or on error, you might save time by not restoring the updated version.

Do you want to restore previous WhatsApp version (Y/N)?
[Android Apps and Games] alecxs:
did you read last post above? type 'java.exe' in cmd and see what happens
[Android Apps and Games] yuvrajraghuvanshi:
I don't understand German but looks like JAVA is not installed on your system or if it is installed then is not added to PATH

1. Download and install JAVA

2. Add JAVA to PATH environment variable
[Android Apps and Games] adflyer:
If you're trying to decode .crypt14 backup files that have recently appeared - see my post over at Decrypting WhatsApp crypt12 files thread ;)
[Android Apps and Games] zedom:
The key extractor works well if you put 2 "pause" commands into "WhatsAppKeyDBExtract.bat":

1) After "Removal complete". At this pause you need to reboot your smartphone to avoid Android error about downgrade during an old WhatsApp version installation.

2) After "Install complete". At this pause you need to run WhatsApp on your smartphone. The run will fail but this makes possible WhatsApp backup creation on further steps of "WhatsAppKeyDBExtract.bat".
[Android Apps and Games] sharaban:
Hi guys,

I have this on cmd screen. Any advice?

Android 9 on Ulefone 3W.

Installing legacy WhatsApp 2.11.431

61 KB/s (251 bytes in 0.003s)

Error: Failed to parse APK file: /data/local/tmp/LegacyWhatsApp.apk

Exception occurred while executing:

java.lang.IllegalArgumentException: Error: Failed to parse APK file: /data/local/tmp/LegacyWhatsApp.apk

at com.android.server.pm.PackageManagerShellCommand.setParamsSize(PackageManagerShellCommand.java:338)

at com.android.server.pm.PackageManagerShellCommand.runInstall(PackageManagerShellCommand.java:906)

at com.android.server.pm.PackageManagerShellCommand.onCommand(PackageManagerShellCommand.java:158)

at android.os.ShellCommand.exec(ShellCommand.java:103)

at com.android.server.pm.PackageManagerService.onShellCommand(PackageManagerService.java:21826)

at android.os.Binder.shellCommand(Binder.java:634)

at android.os.Binder.onTransact(Binder.java:532)

at android.content.pm.IPackageManager$Stub.onTransact(IPackageManager.java:2796)

at com.android.server.pm.PackageManagerService.onTransact(PackageManagerService.java:3985)

at android.os.Binder.execTransact(Binder.java:731)

Caused by: android.content.pm.PackageParser$PackageParserException: Failed to parse /data/local/tmp/LegacyWhatsApp.apk

at android.content.pm.PackageParser.parseApkLiteInner(PackageParser.java:1584)

at android.content.pm.PackageParser.parseApkLite(PackageParser.java:1569)

at com.android.server.pm.PackageManagerShellCommand.setParamsSize(PackageManagerShellCommand.java:331)

... 9 more

Install complete

Press any key to continue . . .

Also tried on Galaxy Note 4 with Android 6.

Script crashes on the following line:

for /F "tokens=1" %%k in ("%version%") do (

Not sure why (not good in scripting at all :( )

Appreciate any help.

Thank you!
[Android Apps and Games] itspecialist:
Exception in thread "main" java.lang.reflect.InvocationTargetException

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

at java.lang.reflect.Method.invoke(Unknown Source)

at org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoader.main(JarRsrcLoader.java:58)

Caused by: java.lang.RuntimeException: java.lang.IllegalArgumentException: Don't know how to process version 5

at org.nick.abe.AndroidBackup.extractAsTar(AndroidBackup.java:420)

at org.nick.abe.Main.main(Main.java:128)

... 5 more

Caused by: java.lang.IllegalArgumentException: Don't know how to process version 5

at org.nick.abe.AndroidBackup.extractAsTar(AndroidBackup.java:282)

... 6 more
[Android Apps and Games] shoff:
This happens because of a broken url, from which the script is trying to download that legacy WhatsApp version. That tmp/LegacyWhatsApp.apk it's trying to install is actually not an apk (you can see, it's only 251 bytes long), it's a text file (html) saying that apk has been moved to a new location (hence it could not be downloaded properly). The new location is also specified in that html, so you can download it manually (either from that location or from anywhere you can find it), name your apk 'LegacyWhatsApp.apk' and put it into 'tmp' folder next to 'WhatsAppKeyDBExtract.bat' that you are running.

The script would then use your apk and move on.
[Android Apps and Games] avio777:
WhatsApp flagged my friend Number. he was using that number from almost 10 year. He is use Android 10 with latest Whatsapp version(Sep 1, 2021). So his number was banned by WhatsApp also he didn't have any backup on drive, his whole 1Gb msgstore((Crypt14) file was in Phonestorage>Whatsapp>databases [note: the whatsapp database file were not in android>data>com.whatsapp] even in version 10. so he don't have any choice to register his same number for getting the key or his important chats. so his basic aim was to get whole chats.

finally i got his chats back in the from of msgstore.db but unable to get key. after the we use Whatsapp Viewer and able to see his all chats + contact numbers.

so how i got this?

I just simply follow the same instructions step by step that mention above by PIRATA!

Thank You Everyone
[Android Apps and Games] Wildebeesto:
I have tried this today and it worked seamlessly. I have OnePlus Nord (phone) and I had the latest version of WhatsApp. Thank you all who worked on this to make it possible!

A few months ago I deleted WhatsApp from my phone after moving all my conversations and groups to Signal (not historic messages though). However, I never got to completely close my account, because I wasn't able to export my data, media and messages in a format independent of WhatsApp. Some of those messages and media have precious moments and memories for me.

Today finally I emancipated myself from Facebook! This has been a task on my backlog for a while, finally got to finish it and put my WhatsApp account to rest once and for all, thanks God
[Android Apps and Games] PIRATA!:
Hello there, and thank you for appreciating my post

I have a question for you: were you able to restore in Signal your WhatsApp conversations and groups?

If so, do you have a guide for me to follow? I'm interested in evaluating such thing.

I would like to do so especially if it would be possible to restore in Signal all of them with all its contents that I have in WhatsApp, like the media attached to each conversation.

Can you help me?

Thank you very much in advance.
[Android Apps and Games] yuvrajraghuvanshi:
There was a solution but it is no longer working unless someone fetch origin and rebuilds it. Signal does not allow backups of latest versions into old versions. However if you are starting fresh with Signal then I think this will be helpful. Cheers

Signal fork with WhatsApp migration

Hi. I have created a fork of the Android Signal app over the weekend, that allows the basic import of Whatsapp threads into Signal. It can be found here: https://github.com/jukefoxer/Signal-Android/tree/feature/wa-db-import (I’m currently working on the branch feature/wa-db-import) The basic...

community.signalusers.org
[Android Apps and Games] VD171:
Now, I can decrypt perfectly crypt14 files using the soon released WHATSAPP VIEWER v1.15 by Andreas Mausch ♥️

How to do:

"WhatsApp Viewer.exe" -decrypt14 msgstore-2016-10-22.1.db.crypt14 whatsapp.cryptkey14 decrypted.db

Download:

https://github.com/andreas-mausch/whatsapp-viewer/releases/download/v1.15/WhatsApp.Viewer.zip

Official website:

WhatsApp Viewer

andreas-mausch.de
[Android Apps and Games] PIRATA!:
Hi there!

From what I have understood, with that fork it is not possible to merge a Signal backup with a WhatsApp backup if the Signal backup is newer than the fork version, but indeed should work if I don't have any Signal backup and just need to create a compatible backup for Signal coming from my WhatsApp backup, just as you said.

I'll take it a look.

Thanks so much. 😉
[Android Apps and Games] Armi55:
So is there any working guide for OSX? Nothing seems to work rn.
[Android Apps and Games] vakanal:
It failed on the second part step 3, now i dont have the wa installed and the Extractor says so, so it closes and im afraid to do anything further.

Im desperate, I need to recover the chats from that days. :_(
[Android Apps and Games] PIRATA!:
From far as I know, part 3 MUST be STRICKTLY followed.

I my self was unable to succede, so I went back again restoring my previous WhatsApp and syncing with Google Drive, and then did all over again but following it to the letter!!!

It is the only way it would work for sure.

Try looking at what you do and follow it even if some points look strange..

Good luck!
[Android Apps and Games] vakanal:
It gave me an error and it didnt restore the previous wa. Now the program says there is no wa installed.

How do I restore the wa installation? The databases are still in the phone but dont know if the key is.
[Android Apps and Games] PIRATA!:
If you have a Whatsapp forlder located exactly where it was originally, installing Whatsapp from PlayStore will ask you if you want to restore previous backup that it recognized present into the device.

If you have not deleted any file from that folder, you should have everything there.

It is a good idea to backup on your computer the full Whatsapp folder before making any of these things, so always have a full copy of that folder, even more than one on different supports (hard-disk, pen drive, other computer..)

I had 3 backups of that folder kept a part before even trying doing this.
[Android Apps and Games] civiclowprofile2:
also after this process, the whatsapp app would crash & cannot open.

Have to uninstall & remove all data, restore back from cloud for hours. Not sure why it refuse to take local backup copy...
[Android Apps and Games] Diamond3z:
Many thanks guys and everybody who has worked on this!

Any quick tip on how to merge two databases and import the resulting file back into WhatsApp?
[Android Apps and Games] PIRATA!:
Thank you!

Well, what you ask it's a bit tricky..

Don't know about merging databases, but the importing works anytime, just need a good working database.
[Android Apps and Games] drasterlx:
Hello

I installed whatsapp 2.11.431 in phone with android 8.1(lg g4) made a backup with helium and adb ... after that reinstalled latest version.. everything ok... continue working as usual.

To clone whatsapp without verification... moved the backup to a phone with android 4.0.4... installed whatsapp 2.11.431 with helium restore the backup... reinstaled latest whatsapp and works really good... both phone with same whatsapp..

Yesterday made same steps in a phone with android 10(samsung a6)... but then of install latest whatsapp .. it requested phone verification.... but the other 2 phones continue working ok..

Made similar test with other whatsapp number in same android 10... backup ... restore in android 4.0.4 and work well...

Any one made similar test? why a backup from android 8.1 dont work in android 10 but yes in 4.0.4...

I am really lost... i want to move my whastapp to the android 10 phone.. i cant do the verification because i am out of my country and the line dont have signal :S

Android 8.1 rooted

Android 10 no rooted

Android 4.0.4 no rooted

Any help?

Thanks
[Android Apps and Games] Maarten85:
Hi

Could this be done without USB (e.g., network connection, BT, ...)? My smartphone doesn't connect to USB anymore (bad contact, I've been using a wireless charger since).

Thanks
[Android Apps and Games] yuvrajraghuvanshi:
Yes, use TCP mode. https://github.com/yuvrajraghuvanshis/WhatsApp-Key-Database-Extractor
[Android Apps and Games] simonjanr:
Hello everyone,

I'm new here on the forum. I followed the instructions as per here: https://xdaforums.com/t/tool-whatsa...ot-updated-october-2016.2770982/post-86047015

NEW EDIT: Huray! It seemed to work without verifying my mobile number on installing legacy Whatsapp so I gof the messages decripted.

Can I just disable and force stop the legacy whatsap momentarily while I substitute its database with an older db version in its db folder in order to decrypt that and merge it with the tools mentioned in the link below? Or is the process more complicated?

(https://xdaforums.com/t/guide-merge-multiple-whatsapp-backup-file-into-one-no-root-required.3142974/
[Android Apps and Games] Gykonik:
I made a backup using the tutorial and everything worked, however the restoring of the original Whatsapp didn't work (and the tmp file is empty). So I now have the decrypted files (like msgstore.db), but not msgstore.db.crypt12 and thus whatsapp can't find / restore the database. Is there any way of "converting back" the msgstore.db into a crypt12 file? I don't want to lose the chats of the past 7 years :( Please help me!
[Android Apps and Games] yuvrajraghuvanshi:
Those files should be in your sdcard (internal directory) as is. If your version of whatsapp used the path "/sdcard/WhatsApp/Databases" that crypt12 must be there however if that used the path "/sdcard/Android/media/com.whatsapp/WhatsApp/Databases" then those crypt12 might very well be deleted I'm afraid.

I could not find any tool that encrypts back the database however many are there which decrypts. If you can reverse engineer those tools then you can encrypt that back. Here are some:

GitHub - EliteAndroidApps/WhatsApp-Crypt12-Decrypter: Decrypts WhatsApp msgstore.db.crypt12 files.

Decrypts WhatsApp msgstore.db.crypt12 files. Contribute to EliteAndroidApps/WhatsApp-Crypt12-Decrypter development by creating an account on GitHub.

github.com

GitHub - lucasvc/whatsapp-migrator: WhatsApp crypt12 decryption and encryption tool

WhatsApp crypt12 decryption and encryption tool. Contribute to lucasvc/whatsapp-migrator development by creating an account on GitHub.

github.com

GitHub - daniel-gallo/wadb-decrypter: Extract and decrypt WhatsApp databases

Extract and decrypt WhatsApp databases. Contribute to daniel-gallo/wadb-decrypter development by creating an account on GitHub.

github.com
[Android Apps and Games] Drago3110:
Worked for me. I have Android 11. I got my key file and wa.db :)
[Android Apps and Games] TonyVov:
Does this process still work???

I have tried following all the instructions.

The extractor sees the USB Connected POCO F3 Phone in debog mode. Latest Java is installed.

The extraction fails eith a lot of java errors reported.

The Whatsapp appplication disappears from the smartphone and needs to be reinstalled.

I tried with and without encryption password.

As this is old content I am afraid it may no longer be valid.
[Android Apps and Games] TonyVov:
I am having this same error...... any suggestion to a solution
[Android Apps and Games] Rovyo:
Hello guys.

i need your help to decrypt a . crypt14 file

the situation is i have the key and i have multiple .crypt14 file from different date.

i want to decrypt one from the 8th may.

When im using the key for that file it gives me an error. but when i try to decrypt other file from same WhatsApp and same phone dated on the 10th, 12th, 14th and so is working like a charm with that key.

i need a deleted conversation from the 8th that i want get back and don't know why is refusing to decrypt that file specifically.

can someone help me please ?
[Android Apps and Games] EnriqueGo94:
ESTE METODO YA NO FUNCIONA​

La app de Watsapp 2.11.431 muestra el error de fecha incorrecta y por ello no se genera la Key. A esta app ya le han cortado por completo la conexión, ya no puede comprobar la fecha y la hora, por lo que ya no hay manera de usarla. Este script queda inservible.​
[Android Apps and Games] omartelinho:
Hi all,

I am receiving errors after backing up.

[Saturday 16/07/2022, 17:55:39] Apk backup is completed.

[Saturday 16/07/2022, 17:55:39] Uninstalling WhatsApp, skipping data.

[Saturday 16/07/2022, 17:55:39] Uninstalled.

[Saturday 16/07/2022, 17:55:39] Installing legacy WhatsApp V2.11.431, hold tight now.

[Saturday 16/07/2022, 17:55:39] Installation Complete.

[Saturday 16/07/2022, 17:55:39] Starting: Intent { cmp=com.whatsapp/.Main }

[Saturday 16/07/2022, 17:55:39] Running legacy WhatsApp, it may crash, do not check for updates if it prompts.

[Saturday 16/07/2022, 17:55:39] Folder tmp/ already exists.

[Saturday 16/07/2022, 17:55:39] Backing up WhatsApp data as "tmp/whatsapp.ab". May take time, don't panic.

WARNING: adb backup is deprecated and may be removed in a future release

Now unlock your device and confirm the backup operation...

[Saturday 16/07/2022, 17:55:39] Done backing up data. Size: 584803342 bytes.

[Saturday 16/07/2022, 17:55:39] Reinstalling original WhatsApp.

[Saturday 16/07/2022, 17:55:39] Reinstallation complete.

[Saturday 16/07/2022, 17:55:39] Our work with device has finished, it is safe to remove it now.

[Saturday 16/07/2022, 17:55:39] Found "whatsapp.ab" in "tmp" folder. Continuing... Size: 584803342 bytes.

[Saturday 16/07/2022, 17:55:39] Enter a name for this user (default "user").: teste

[Saturday 16/07/2022, 17:55:39] Enter same password which you entered on device when prompted earlier.:

[Saturday 16/07/2022, 17:55:39] Successfully unpacked "tmp/whatsapp.ab" to "tmp/whatsapp.tar". Size: 1536945152 bytes.

[Saturday 16/07/2022, 17:55:39] Taking out main files in "tmp/" folder temporarily.

[Saturday 16/07/2022, 17:55:39] unexpected end of data

[Saturday 16/07/2022, 17:55:39] Cleaning up "tmp/" folder...

[Saturday 16/07/2022, 17:55:39] [WinError 32] O arquivo já está sendo usado por outro processo: 'tmp/whatsapp.tar'

[Saturday 16/07/2022, 17:55:39] Exiting...

[Saturday 16/07/2022, 17:55:39] Turn off USB debugging [and USB debugging (Security Settings)] if you're done.

[Saturday 16/07/2022, 17:55:39] Hit "Enter" key to continue....

Any idea?

I do see the whatsapp.tar file in the tmp folder, but unable to extract the "key" file. "Archive is corrupt"
[Android Apps and Games] literal.bent:
Here is the most recent working link to that crucial file, the WhatsApp version 2.11.431 apk

https://androidapksfree.com/whatsap...ld/whatsapp-messenger-apk-v2-11-431-download/

As previously stated, you'll need to rename this to LegacyWhatsApp.apk and put it in the tmp folder.
[Android Apps and Games] Albert83BCN:
Not true / no es cierto.

This method STILL WORKS for extracting both the encypted database and the key, tested as of ... yesterday :)

The thing is that the WA error displaying the date on the phone / not being functional does not matter when it comes to the goal of the script which is to fetch the data to the PC. The script works ok in that regard, if at some point it seems like it has been stuck, to me it helped to just press enter.

Now a different topic but... after:

Reviewing the encyrpted database in Whatasapp viewer with the key > OK, all messages displayed.

Exporting to an unencrypted database > OK

Checking with sqlite3 for integrity >turned out it has issues.

Exporting to a .SQL file (1GB size) > OK

Reimporting into a new db > passes sqlite3 integrity check as OK and also has same 700.000+ messages in WhatsappViewer as the original one.

Reencrypt back with whapa crypt14 encryption tool > looks fine, new 273MB file vs 300+ original one.

... I just cannot get the Whatasapp client to import the new file again.

I tried both putting the new generated msgstore.db.crypt14 into the \Android\media\com.whatsapp\Whatsapp\Databases folder and also the unencrypted msgtore.db, but none work. In the first case the backup is detected by WA on new install right after phone validation, but restores quickly to 100% and tells it cannot be restored, and on the second case the unencrypted backup is just not detected, which is expected I guess but someone stated that it might be detected.

I don't know if something has changed in WA these days but a week ago I did not have many issues restoring a previous whatsapp when the current corrupted, just force close and restore from the local backup, but since several days ago it seems the process has changed, it will only restore from fresh install and will corrupt again almost immediately.... I tried a few slighly older WA versions than the latest available to see if something changed in the client but it still behaves the same.

If someone has some insight in what I might be missing in this last step of restoring the repaired sqlite3 database back into Whatsapp, please help.