yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] TheLastJ:
I am a noob and I don't understand what went wrong. So I copied and posted the messag

The problem is that I have lost my older phone no. and I can't get that no. But I have backup of that whatsapp account( which I don't have access but I have backup as it was installed on the same phone) stored on my phone . I want the crypt key in order to encrypt it with the help of whatcrypt. I ran it on powershell and this is the message which I got, I can't understand where I went wrong or what I have to do next. Any help would be greatly appreciated. Pardon me for the english.

Please connect your Android device with USB Debugging enabled:

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

* daemon started successfully *

WhatsApp 2.16.133 installed

Found legacy WhatsApp 2.11.431 in local folder

Backing up WhatsApp 2.16.133

2912 KB/s (25001462 bytes in 8.383s)

Backup complete

Removing WhatsApp 2.16.133 skipping data

Success

Removal complete

Installing legacy WhatsApp 2.11.431

1182 KB/s (37859 bytes in 0.031s)

pkg: /data/local/tmp/LegacyWhatsApp.apk

Failure [INSTALL_FAILED_INVALID_APK]

Install complete

Now unlock your device and confirm the backup operation.

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

Strong AES encryption not allowed

Magic: ANDROID BACKUP

Version: 3

Compressed: 1

Algorithm: none

1024 bytes written to tmp\whatsapp.tar.

D:\WhatsApp-Key-DB-Extractor-master\bin\tar.exe: Record size = 2 blocks

D:\WhatsApp-Key-DB-Extractor-master\bin\tar.exe: apps/com.whatsapp/f/key: Not found in archive

D:\WhatsApp-Key-DB-Extractor-master\bin\tar.exe: Error exit delayed from previous errors

D:\WhatsApp-Key-DB-Extractor-master\bin\tar.exe: Record size = 2 blocks

D:\WhatsApp-Key-DB-Extractor-master\bin\tar.exe: apps/com.whatsapp/db/msgstore.db: Not found in archive

D:\WhatsApp-Key-DB-Extractor-master\bin\tar.exe: Error exit delayed from previous errors

D:\WhatsApp-Key-DB-Extractor-master\bin\tar.exe: Record size = 2 blocks

D:\WhatsApp-Key-DB-Extractor-master\bin\tar.exe: apps/com.whatsapp/db/wa.db: Not found in archive

D:\WhatsApp-Key-DB-Extractor-master\bin\tar.exe: Error exit delayed from previous errors

D:\WhatsApp-Key-DB-Extractor-master\bin\tar.exe: Record size = 2 blocks

D:\WhatsApp-Key-DB-Extractor-master\bin\tar.exe: apps/com.whatsapp/db/axolotl.db: Not found in archive

D:\WhatsApp-Key-DB-Extractor-master\bin\tar.exe: Error exit delayed from previous errors

D:\WhatsApp-Key-DB-Extractor-master\bin\tar.exe: Record size = 2 blocks

D:\WhatsApp-Key-DB-Extractor-master\bin\tar.exe: apps/com.whatsapp/db/chatsettings.db: Not found in archive

D:\WhatsApp-Key-DB-Extractor-master\bin\tar.exe: Error exit delayed from previous errors

Cleaning up temporary files ...

Done

Restoring WhatsApp 2.16.133

2850 KB/s (25001462 bytes in 8.564s)

pkg: /data/local/tmp/base.apk

Success

Restore complete

Removing WhatsApp 2.16.133 temporary apk

Operation complete

Press any key to continue .
[Android Apps and Games] Jonadrcr:
[MENTION=7672124]TheLastJ[/MENTION] It happened the same to me, Samsung Galaxy Note 4 Android 6.0.1. Dear [MENTION=5771215]TripCode[/MENTION] any advice. Thanks.
[Android Apps and Games] alexman505:
anyone can help me?

Inviato dal mio VIE-L09 utilizzando Tapatalk
[Android Apps and Games] braby:
I am getting this problem (I assume the tool needs to be updated):

"Strong AES encryption not allowed

Magic: ANDROID BACKUP

Version: 3

Compressed: 1

Algorithm: AES-256

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.security.InvalidKeyException: Illegal key size

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

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

... 5 more

Caused by: java.security.InvalidKeyException: Illegal key size

at javax.crypto.Cipher.checkCryptoPerm(Cipher.java:1039)

at javax.crypto.Cipher.implInit(Cipher.java:805)

at javax.crypto.Cipher.chooseProvider(Cipher.java:864)

at javax.crypto.Cipher.init(Cipher.java:1396)

at javax.crypto.Cipher.init(Cipher.java:1327)

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

... 6 more

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 ...

Deleted file - H:\Documents\Nick-Files\Desktop\WhatsApp-Key-DB-Extractor-master\tmp\whatsapp.ab

Deleted file - H:\Documents\Nick-Files\Desktop\WhatsApp-Key-DB-Extractor-master\tmp\waplen.txt

Deleted file - H:\Documents\Nick-Files\Desktop\WhatsApp-Key-DB-Extractor-master\tmp\sdpath.txt

Deleted file - H:\Documents\Nick-Files\Desktop\WhatsApp-Key-DB-Extractor-master\tmp\wapath.txt

Deleted file - H:\Documents\Nick-Files\Desktop\WhatsApp-Key-DB-Extractor-master\tmp\wapver.txt

Deleted file - H:\Documents\Nick-Files\Desktop\WhatsApp-Key-DB-Extractor-master\tmp\sdkver.txt

Done"
[Android Apps and Games] ProITM:
Also failing, on Moto G3 with 6.01

The backup file is empty
[Android Apps and Games] oile:
same java errors for me. Doesn't work anymore :(
[Android Apps and Games] tux_topo:
Hi! I have a problem. I need to read the db backup from a windows phone 8.1 cellphone. Whats the method for it? Thanks!
[Android Apps and Games] 1118niranjan:
After this its going nothing happened :(:(
[Android Apps and Games] wave68runner:
Hello,

I'm trying to follow the instructions but when i connect my huawei P8 lite the windows (whatsapp db extractor) automatically disappear.

What can be the problem?

java & adb drivers are installed

Thanks

jerome
[Android Apps and Games] zenfon:
error

Hi, I find the error:

*deamon not running. starting it now on port 5037*

*deamon started successfully*

= non atteso

, you have solutions?

I successfully installed both ADB that the latest version of java, tried both of Win8 that win10.

It recognizes the device and immediately closes.

Your phone and a asus zenfone 2 (Z00AD) with Android 6.0.1

Thank you
[Android Apps and Games] amkamarul:
Hi

used the WhatsAppKeyExtractNoJavaCheck.. it does show backup and etc...after finished backup, could not spot the files in 'extracted' folder
[Android Apps and Games] luison:
Decrypt with manual download?

Not working for me either on a Moto G. Not certain if phone should be en fastboot / TWRP mode or on normal operation. I am stuch also like http://xdaforums.com/showpost.php?p=68674121&postcount=347.

Java path is correct. ADB seems to work ok.

In any case I have root access and my whatsapp key file. Is it any way to start de decrypt process copying manually the corresponding files to tmp/. What to copy the whole app? Under what root? Will the script recognize that.

Any other nononline tool for that?

Thanks.
[Android Apps and Games] jostar:
Same behavior:

Fairphone2 with Android-Version 5.1 connected (visible in FileExplorer) an USB-Debugging on.

Nothing happens... :(
[Android Apps and Games] zenfon:
I settled with the WhatsAppKeyExtract.ps1 file by opening it with power shell.

Question: deleted messages retrieves them? to me it seems not
[Android Apps and Games] killercal:
Key not working

Hey guys,

So I've got the encrypted db files and have extracted the key. When I go to whatcrypt.com and upload the key, it does it successfully. I then upload the encrypted DB file and I get an error message "Crypt Key Required We have scanned the file header of your encrypted database and have determined that we do not have a matching crypt key. You MUST upload your crypt key BEFORE we can perform any database decryptions"

Now I uninstalled whatsapp and then reinstalled it to get the key, would that replace the key file with a different one?
[Android Apps and Games] thehaguerepresent:
Hello, is it possible to read my old crypt7 database without the key...? Would be very helpful
[Android Apps and Games] Harry_993:
Is there anything important I need to consider backing up com.whatsapp?

Because "tar xvf" is not able to extract anything out of the whatsapp.tar. CMD told me that 2 blocks were written without any failures but the destination folder stays empty. (hypothetical because of an empty Backup/ tar-file)
[Android Apps and Games] leekaoshing:
When I run this tool, I get "msgstore.db" and "whatsapp.cryptkey" files in the extracted folder. Is this correct? I don't get a contacts file. When running the tool, I see the following in the command prompt:

EDIT: Ok the image doesn't seem to be working, but what I get is:
[Android Apps and Games] shandrio:
Specify an empty (blanc) password. That should prevent this error.

Try running "WhatsAppKeyDBExtract.ps1" with Windows Power Shell.
[Android Apps and Games] praveenkulkarni:
Dear,

I was lost my phone and found backup on my google drive, I don't have any key for that and I have db and crypt files may be 8. I tried these solution but it gives error. Please provide me the solution. How can i extract the db or crypt file. I want it to open on my computer or any another proper solutions for this.
[Android Apps and Games] CoLdIcE42:
Hi I cant get the script to work

I get the following message:

unable to locate bin directory did you extract all the files from the archive (maintaining structure) and are you running from that directory?

I already tried a different computer but I still get this errormessage

Thanks in advance

got it to work with a little powershell tweaking but the normal .batch fill still doesnt work
[Android Apps and Games] alexman505:
Hi!

Anyone have same my problem?

Pushing cipher key to: /sdcard /WhatsApp/Databases/.nomedia

failed to copy 'tmp\apps\com.whatsapp\f\key' to '/sdcard': Is a directory

There's a solution?
[Android Apps and Games] TripCode:
Updated Version 4.6: Updated primary mirror for legacy apk (again).
[Android Apps and Games] TripCode:
Manually copy whatsapp.cryptkey from the extracted folder to /WhatsApp/Databases/.nomedia on the devices sdcard. If your not using third-party apps like omni-crypt then you can ignore this procedure entirely (including warnings). Apps like omni-crypt look for /WhatsApp/Databases/.nomedia on non-rooted devices.
[Android Apps and Games] TripCode:
Updated Version 4.7: Added new sanity checks and support for Android API 24 (7.0 Nougat).
[Android Apps and Games] hcsong83@gmail.com:
bugs

Android 6.0:

adb uninstall -k would uninstall the updated copy of WhatsApp and clear all the data if WhatsApp is pre-installed.

Android 7.0 - non-debuggable platform builds (not emulator or user-debug version) :

adb install -d only work for the predecessor packages which marked as debuggable.

<a href="https://android.googlesource.com/platform/frameworks/base/+/android-7.0.0_r6/services/core/java/com/android/server/pm/PackageManagerService.java" target="_blank">refer to: row 12786
[Android Apps and Games] TripCode:
Incorrect! The -k flag informs package manager to keep the cache / data directories. If this was not the case then I'm pretty sure this thread would be full of users complaining about losing their WhatsApp data. Marshmallow has been supported for several months now. The -k flag is required and is what protects their data!

The -d flag is generally ignored in 95% of cases. It's not for Android 7.0 or even Android 4.2-6.0.1 for that matter. It's a quick and dirty fix for a number of troublesome stock roms and this flag is absolutely required by them (it's merely a passthru).
[Android Apps and Games] hcsong83@gmail.com:
:), According to the Android Source code ( android.googlesource.com/platform/frameworks/base/+/android-7.0.0_r13/services/core/java/com/android/server/pm/PackageManagerService.java ),

row 15839 - 15979 in PackageManagerService.java : you can find some codes:

if (disabledPs.versionCode < deletedPs.versionCode) {

// Delete data for downgrades

flags &= ~PackageManager.DELETE_KEEP_DATA;

} else {

// Preserve data by setting flag

flags |= PackageManager.DELETE_KEEP_DATA;

}

so if Whatsapp is a system package(includ in the rom, such as Sumsung S7 Android6.0.1), "adb uninstall[ -k]" would delete data for downgrades.

row 12768 in PackageManagerService.java: you can find some comments

// If installed, the package will get access to data left on the device by its

// predecessor. As a security measure, this is permited only if this is not a

// version downgrade or if the predecessor package is marked as debuggable and

// a downgrade is explicitly requested.

//

// On debuggable platform builds, downgrades are permitted even for

// non-debuggable packages to make testing easier. Debuggable platform builds do

// not offer security guarantees and thus it's OK to disable some security

// mechanisms to make debugging/testing easier on those builds. However, even on

// debuggable builds downgrades of packages are permitted only if requested via

// installFlags. This is because we aim to keep the behavior of debuggable

// platform builds as close as possible to the behavior of non-debuggable

// platform builds.

Nexus 5X Android 7.0 would throw INSTALL_FAILED_VERSION_DOWNGRADE error.
[Android Apps and Games] hcsong83@gmail.com:
on Emulator android 7.0:

"adb shell getprop ro.debuggable" => return 1, everything is OK.

on Nexus 5X android 7.0:

"adb shell getprop ro.debuggable" => return 0.

"adb uninstall -k com.whatsapp" => uninstall WhatsApp and keep data, OK.

"adb install -r LegacyWhatsApp.apk" or "adb install -r -d LegacyWhatsApp.apk " => return INSTALL_FAILED_VERSION_DOWNGRADE
[Android Apps and Games] TripCode:
[MENTION=467870]hcs[/MENTION]ong83

Strange because in a real-world test on a Nexus 5X with Android 7.0 I did not experience any issues. Neither did I encounter any problems on another two physical devices. However, none of the roms contained WhatsApp as a system package and I don't think it's likely that many stock roms will include WhatsApp (especially as it literally rolls out nightly builds). Custom roms that include it will not need this tool as they're most likely rooted anyway. If there are issues in the future I will do my best to come up with workarounds (if possible). If not, then people will need to extract their keys with root. Thanks for the info though. Much appreciated! :)
[Android Apps and Games] WASP-106 b:
I get the error:

'cp: cannot stat 'apps/com.whatsapp/f/key': No such file or directory'

This is with Android 6.0.1 (nexus 5X)

Downloading to Ubuntu
[Android Apps and Games] TripCode:
Are there any errors before this?
[Android Apps and Games] WASP-106 b:
Oh, there's also this:

Failure [INSTALL_FAILED_PERMISSION_MODEL_DOWNGRADE]​

---------- Post added at 10:23 PM ---------- Previous post was at 10:07 PM ----------

I worked out what the problem was. I was using the version

github -> AbinashBishoyi/WhatsApp-Key-DB-Extractor-UnOfficial​

when I should have been using whatcrypt dot com.

Hats off to the developers.
[Android Apps and Games] TripCode:
That would explain it. Abinash has not updated his fork for a while. I'm glad you got it working. :)

It would appear that ADB does not have execution/deletion rights. This maybe because your data partition is full. Try running: adb shell rm /data/local/tmp/\*
[Android Apps and Games] Walligt18730:
i tryed the following:

C:\Users\Walli>adb shell rm /data/local/tmp/\*

rm failed for /data/local/tmp/*, No such file or directory

The data partition ist 1,4 GB free from 4,45 GB

What do you suggest to do?? :confused:
[Android Apps and Games] TripCode:
Do you have "Install from unknown sources" checked in Settings -> Application settings? Not having it checked may cause this issue.

If this does not fix it then I would copy the legacy apk file to the sdcard.

adb push tmp/LegacyWhatsApp.apk /sdcard/

Then modify the script and change:

adb install -r tmp/LegacyWhatsApp.apk

to:

adb shell pm install -r /sdcard/LegacyWhatsApp.apk
[Android Apps and Games] Pbottcher:
I also have the problem... In an earlier version of the Tool I didn't have this problem.

- I have the newest Java installed

- USB debugging enabled

- ADB Drivers installed (Those are the files in the 'bin' directory right?)

What could fix this?
[Android Apps and Games] FLTron2:
Not working Nexus 6P Nougat

Hey guys,

I've been all day trying to get the script work on my Nexus 6P with Android 7.0....

It removes the Whatsapp app but not replaces with LegacyWhatsapp (installation failed) so what I get is no version of WA installed on my phone after running the script and no key.....

Someone with this trouble also?

I will try later, thx!!!
[Android Apps and Games] baka36:
Hello I've gotten the "The syntax of the command is incorrect" error for my Samsung S7 but not for S4 do you know why?
[Android Apps and Games] maurit43:
excuse me , but what can we do with it ? i dont understand , thanks you !
[Android Apps and Games] nikko12:
The same error here, all needed files installed, developermode on s6 edge (andtoid 6.01) enabled, install from unknown sources enabled, following messages:

Please connect your Android device with USB Debugging enabled:

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

* daemon started successfully *

WhatsApp 2.16.310 2.11.1 installed

Found legacy WhatsApp 2.11.431 in local folder

Backing up WhatsApp 2.16.310 2.11.1

4721 KB/s (27790098 bytes in 5.748s)

Backup complete

Removing WhatsApp 2.16.310 2.11.1 skipping data

Success

Removal complete

Installing legacy WhatsApp 2.11.431

3849 KB/s (18329558 bytes in 4.650s)

pkg: /data/local/tmp/LegacyWhatsApp.apk

Success

Install complete

Now unlock your device and confirm the backup operation.

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

D:\myfolder\WhatsApp-Key-DB-Extractor-master\bin\tar.exe: Record size = 7 blocks

D:\myfolder\WhatsApp-Key-DB-Extractor-master\bin\tar.exe: apps/com.whatsapp/f/key: Not found in archive

D:\myfolder\WhatsApp-Key-DB-Extractor-master\bin\tar.exe: Error exit delayed from previous errors

D:\myfolder\WhatsApp-Key-DB-Extractor-master\bin\tar.exe: Record size = 7 blocks

D:\myfolder\WhatsApp-Key-DB-Extractor-master\bin\tar.exe: apps/com.whatsapp/db/msgstore.db: Not found in archive

D:\myfolder\WhatsApp-Key-DB-Extractor-master\bin\tar.exe: Error exit delayed from previous errors

D:\myfolder\WhatsApp-Key-DB-Extractor-master\bin\tar.exe: Record size = 7 blocks

D:\myfolder\WhatsApp-Key-DB-Extractor-master\bin\tar.exe: apps/com.whatsapp/db/wa.db: Not found in archive

D:\myfolder\WhatsApp-Key-DB-Extractor-master\bin\tar.exe: Error exit delayed from previous errors

D:\myfolder\WhatsApp-Key-DB-Extractor-master\bin\tar.exe: Record size = 7 blocks

D:\myfolder\WhatsApp-Key-DB-Extractor-master\bin\tar.exe: apps/com.whatsapp/db/axolotl.db: Not found in archive

D:\myfolder\WhatsApp-Key-DB-Extractor-master\bin\tar.exe: Error exit delayed from previous errors

D:\myfolder\WhatsApp-Key-DB-Extractor-master\bin\tar.exe: Record size = 7 blocks

D:\myfolder\WhatsApp-Key-DB-Extractor-master\bin\tar.exe: apps/com.whatsapp/db/chatsettings.db: Not found in archive

D:\myfolder\WhatsApp-Key-DB-Extractor-master\bin\tar.exe: Error exit delayed from previous errors

Cleaning up temporary files ...

Done

Restoring WhatsApp 2.16.310 2.11.1

4833 KB/s (27790098 bytes in 5.614s)

pkg: /data/local/tmp/base.apk

Success

Restore complete

Removing WhatsApp 2.16.310 2.11.1 temporary apk

Operation complete
[Android Apps and Games] ChiefRA:
I receive the same error on a Galaxy S7 edge unrooted: http://screencast.com/t/vo8c6ES84

What's wrong?

Thanks.
[Android Apps and Games] Voffchik:
C:\WhatsApp-Key-DB-Extractor-master\bin\tar.exe: Cannot open tmp\whatsapp.tar: No such file or directory

C:\WhatsApp-Key-DB-Extractor-master\bin\tar.exe: Error is not recoverable: exiting now

C:\WhatsApp-Key-DB-Extractor-master\bin\tar.exe: Cannot open tmp\whatsapp.tar: No such file or directory

C:\WhatsApp-Key-DB-Extractor-master\bin\tar.exe: Error is not recoverable: exiting now

C:\WhatsApp-Key-DB-Extractor-master\bin\tar.exe: Cannot open tmp\whatsapp.tar: No such file or directory

C:\WhatsApp-Key-DB-Extractor-master\bin\tar.exe: Error is not recoverable: exiting now

C:\WhatsApp-Key-DB-Extractor-master\bin\tar.exe: Cannot open tmp\whatsapp.tar: No such file or directory

C:\WhatsApp-Key-DB-Extractor-master\bin\tar.exe: Error is not recoverable: exiting now

C:\WhatsApp-Key-DB-Extractor-master\bin\tar.exe: Cannot open tmp\whatsapp.tar: No such file or directory

C:\WhatsApp-Key-DB-Extractor-master\bin\tar.exe: Error is not recoverable: exiting now

Any news regarding this error?
[Android Apps and Games] BSmart:
First i got "The syntax of the command is incorrect" when using the .bat file.

When I just the Powershell file i get the "no such file or directory' message.

I digged a little into it, it does create a whatsapp.ab in mijn tmp folder. But when I extract this, the files that are supposed to be there are not, looks empty?

Could it be the legacy version is not correct installed? I can't check as after the scripted finished the original version is restored.

Any suggestions?

I'm using my Galaxy S6 and WIndows 10.
[Android Apps and Games] BSmart:
Error extracting

I copied a backup of whatsapp to another phone which runs android 4.4.4, installed Whatsapp, activated USB Debugging and ran the WhatsAppKeyDBExtract.bat and all worked nicely. Got the key and I can read the WhatsApp database using WhatsApp.Viewer.
[Android Apps and Games] alexman505:
Hi everyone!

Can I modify DB/history message with this script?

I need insert some old message into whatsapp... I think it's possible with something who edit the db file... true?