yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] shinye:
Hi, I have the following problem. Anyone can help?

=========================================================================

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

= Script by: TripCode (Greetings to all at XDA Developers Forums) =

= Thanks to: dragomerlin for Android Backup Extractor =

= Version: v1.0 (03/06/2014) =

=========================================================================

Please connect your Android device with USB Debugging enabled:

Now unlock your device and confirm the backup operation.

Exception in thread "main" java.lang.UnsupportedClassVersionError: org/nick/abe/

Main : Unsupported major.minor version 51.0

at java.lang.ClassLoader.defineClass1(Native Method)

at java.lang.ClassLoader.defineClassCond(Unknown Source)

at java.lang.ClassLoader.defineClass(Unknown Source)

at java.security.SecureClassLoader.defineClass(Unknown Source)

at java.net.URLClassLoader.defineClass(Unknown Source)

at java.net.URLClassLoader.access$000(Unknown Source)

at java.net.URLClassLoader$1.run(Unknown Source)

at java.security.AccessController.doPrivileged(Native Method)

at java.net.URLClassLoader.findClass(Unknown Source)

at java.lang.ClassLoader.loadClass(Unknown Source)

at java.lang.ClassLoader.loadClass(Unknown Source)

at java.lang.Class.forName0(Native Method)

at java.lang.Class.forName(Unknown Source)

at org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoader.main(JarRsrcLoa

der.java:56)

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

bin\tar: Error is not recoverable: exiting now

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

bin\tar: Error is not recoverable: exiting now

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

bin\tar: Error is not recoverable: exiting now

Extracting whatsapp.key ...

系統找不到指定的路徑。

Extracting msgstore.db ...

系統找不到指定的路徑。

Extracting wa.db ...

系統找不到指定的路徑。

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

cannot stat 'tmp\apps\com.whatsapp\f\key': No such file or directory

Cleaning up temporary files ...

刪除的檔案 - C:\Users\Demo\Downloads\WhatsAppKeyExtract\tmp\whatsapp.ab

找不到 C:\Users\Demo\Downloads\WhatsAppKeyExtract\tmp\whatsapp.tar

系統找不到指定的檔案。

Done!

等候 10 秒後，請按任何一個鍵繼續 ...

C:\Users\Demo\Downloads\WhatsAppKeyExtract>
[Android Apps and Games] rikey10:
probleeme

i have probleme when i run the file

the system cannot find the path specifie.
[Android Apps and Games] twente18:
Anyone knows why i'm getting this message? thnx for all help :)
[Android Apps and Games] mario3017:
I have been at this the entire day

I have made sure Java was been installed correctly and working

But no matter what i do when i open the whatsapp crypt key extractor it does absolutely nothing

I have the usb plugged into my phone

i have the usb debugging on

but still nothing it just gives me the message "please connect your android device with debbuging enabled"

although my phone is already connected am i missing something ... please help
[Android Apps and Games] Androidre:
WiFi rather usb/cable?

Hello to all, can be connected the smartphone to pc and make backups of key whatsapp, using a wifi connection in common, rather than using the usb cable?

Regards...
[Android Apps and Games] Mayn:
Same here. The first time I run the bat file I get a "daemon not running. starting on port 5037" message But then nothing happens. The second time, like mario3017, only the message "connect usb device ..." and then also nothing.
[Android Apps and Games] mario3017:
Completely forget that part ..same thing happened to me at the beginning to
[Android Apps and Games] Mayn:
Update: when I tried to connect with Wifi ADB ( https://play.google.com/store/apps/details?id=com.ttxapps.wifiadb&hl=nl_NL) through Total Commander, suddenly I I got the messages/screens like it should be, so I could tap "make backup" and the two DB and Key file were saved.
[Android Apps and Games] mario3017:
I think the ADB i what im missing i just downloaded the total commander ... but is there any ADB apps that doesnt require root ? or can i send someone the whatsapp database files then they just send me back after doing whatever .... or that wouldnt work ?
[Android Apps and Games] Mayn:
A quick look in play store gave me these two apps:

https://play.google.com/store/apps/details?id=com.sherdle.adbwireless&hl=nl and

https://play.google.com/store/apps/details?id=za.co.henry.hsu.adbwirelessbyhenry

but since my Samsung S3 has root Í haven't installed these apps, so I don't know if this will work.

I found this site, maybe it can work for you:

http://stackoverflow.com/questions/2078710/android-adb-access-to-application-databases-without-root
[Android Apps and Games] mario3017:
]Can someone just do it for me .... or that cant be done ? please
[Android Apps and Games] Abinash Bishoyi:
Now suport Android L too... try out and let me know for any trouble...
[Android Apps and Games] TripCode:
Thanks Abinash - good work! :good:

Abinash GitHub is here: https://github.com/AbinashBishoyi/WhatsApp-Key-DB-Extractor
[Android Apps and Games] mario3017:
Still the same problem :/
[Android Apps and Games] willapp:
For anyone else having a similar Java error, I fixed this by firstly getting the very latest Java runtime (7u65) but mostly I think downloading the very latest version of the extractor tool from the GitHub repository github.com/AbinashBishoyi/WhatsApp-Key-DB-Extractor (click download zip on the right) was the thing that made it work. (Sorry I can't post the full link, I have a new account and it won't let me).

Once I had extracted the latest version, I ran the batch file, plugged in my Nexus 5 (with USB debugging enabled) and it correctly started the backup and extracted the keys and other files successfully.
[Android Apps and Games] flory123:
Hi.. first of all i'd like to say well done to the person who created this wonderful app!! it worked perfectly on my pc but the only problem is that when i try to extract key key from my other phone, it keeps on extracting the wrong key( the one from the 1st fone). please, how do i fix it???:(:good:
[Android Apps and Games] ext1508:
Backup doesnt show !!!!

Hello,

Thank you very much for this great app guys. It seems that i cannot get it to work .

The problem is that when i connect my phone with debugging mode active ( even ADB drivers are all installed and also java latest version )

nothing will happen , this is driving me crazy. Help and suggestions would be appreciated.

Please its very important.

Thank you.

Update :

I think i found the reason , all the guys that had the same problem with me you might want to follow up this simple procedure to enable MTP on your device :

1. Connect your phone to a computer

2. Reboot your phone while connected to the computer

3. Wait until you see the USB icon on your Notification Bar

4. You will now have an option to select Mass Storage henceforth than you can choose MTP mode. ;)
[Android Apps and Games] adhamkm:
i need help

i've tried so many way but still there is error

who can please help me

i will send the db file to him and he will send it back after convert it

thanks in advance
[Android Apps and Games] DinahF:
It doesn't work for me either. (I attached the screenshot)

Thanks in advance :)
[Android Apps and Games] Voffchik:
Hi guys

Really need your help, very urgent.

Can't get the thing to work. What am i doing wrong??

Using Samsung Galaxy S7 Edge (unrooted)

Android version 6.0.1

Thanks
[Android Apps and Games] BSmart:
I had same issue with my S6. I think the issue here is that WhatsApp comes preinstalled on these phones, there for the downgrade needed to extract the key / database is not working.

I restored my whatsapp backup to another phone and it worked without any issues.
[Android Apps and Games] Voffchik:
Unfortunately this is not an option for me.

And i'm pretty sure whatsapp was not pre-installed on the device.

So its something else.
[Android Apps and Games] BSmart:
It's an easy test:

Go to playstore, find whatsapp and click uninstall. On my S6 I get a messages like 'You want to remove all update for this systemapp".. so I deinstall it will revert back to the intial version which was installed on the S6.

If it was not preinstalled you will not have the 'remove' all updates" in the message.

You can also try to install the base version yourself, if that works you know for sure you have the right version for retreiving the key & db :) the apk download link you can retrieve from the .bat, ps1 or .sh file.

Good luck.
[Android Apps and Games] Voffchik:
Damm...

Looks like you where right. The base version came with the device.

Any thoughts on how can i retrieve the the key without using other device? How can you even back up the program without root (using titanium backup for example)
[Android Apps and Games] BSmart:
I don't think so, either get your device rooted or use another phone. The other phone can also be used for generating the key file, you don't need to restore all messages to that phone. Just insert the sim card used with whatsapp, activate it and retrieve the key using the extractor. The database it self you can retrieve from your S7, create a backup and copy this to your computer and use whatsapp viewer to decript the database using the key.
[Android Apps and Games] RocketPlus:
when I run the script manually and noticed that my backup copy only has files below without /key, msgstore.db, wa.db.... that's the reason why always show me " Not found in archive". I managed to backup the whatsapp.ab but only 4KB.

Anyone can advise ? I'm using whatsapp version 2.16.352.

C:\WhatsApp-Key-DB-Extractor-master\WhatsApp-Key-DB-Extractor-master>bin\tar.exe xvf tmp\whatsapp.tar

apps/com.whatsapp/_manifest

apps/com.whatsapp/f/wastats.dims

apps/com.whatsapp/f/wastats.log

apps/com.whatsapp/f/Logs

apps/com.whatsapp/f/Logs/whatsapp.log

apps/com.whatsapp/sp/_has_set_default_values.xml

apps/com.whatsapp/sp/com.whatsapp_preferences.xml
[Android Apps and Games] wichsenstar13:
Thank you so much for this!

I had some problems with this at first, it kept closing on me, so I opened it from command line and saw it said something about another "emulator". The culprit was Bluestacks, it was running in the system tray even when I wasn't using it. Making sure that wasn't running allowed me to proceed.
[Android Apps and Games] aryanparker:
Error

Hi.. When I run the above tool I get the following error message. How to resolve this .Thanks .

I'm running android 4.2.2

[IMG="error"]https://i.imgsafe.org/93754a4808.png[/IMG]
[Android Apps and Games] aryanparker:
NO crypt file

Hi.. I have a latest version of whatsapp installed. I'm using Jellybean for some testing work. In the /data/data/com.whatsapp/database folder, I'm unable to find any .crypt whatsapp database file. It has a msgstore.db file which I suppose is unencrypted. How to get the encrypted files ? My phone is already rooted. Any suggestion would be helpful. Thanks
[Android Apps and Games] Lilly2:
I am not getting back up my data incmy mobile..... This .bat window shows deamon running..... Nothing happens after dat. Pls help.
[Android Apps and Games] 1118niranjan:
thanks for working hard but i got everything work and operation complete but when i see the extracted folder there is nothing is there :confused::confused::confused: no key no backup msges

---------- Post added at 11:18 PM ---------- Previous post was at 10:51 PM ----------

thanks for working hard but i got everything work and operation complete but when i see the extracted folder there is nothing is there no key no backup msges
[Android Apps and Games] kezern:
After using this tool I had a problem whith whatsapp and I had to reinstall it again. It showed a message of wrong date time.

Is it possible to dump all the phone to an android emulator and use this tool with the emulator?

Best regards.
[Android Apps and Games] OFCMDS:
whatsapp key extractor with parallel space

i have samsumg duos and using two whatsapp acount via parallel space. i have been extracted cipher key successfully. but this key not work on database inside parallel space whatsapp. pls tell me how to extract cipher key of whatsapp running inside parallel space.
[Android Apps and Games] Terraalpha:
Hi all

For me the same mistake.

Error message "different key file for this database".

Android 6.0.1

Htc 10

What's wrong?
[Android Apps and Games] paumlhp:
Same here with Nexus 6P. Anyone?
[Android Apps and Games] rayman3:
Are you sure using the latest version of this tool? Think you are using an older one/a wrong one.

Try to download the version 4.7 of this tool on the first page here.

The message "could not resolve host: www.whatsapp.com" means, your script try to connect www.whatsapp.com.

But in the latest tool, there is no command, to connect to www.whatsapp.com (in any case i can´t find it).

And the command to recompiling the apk seems, you are using the WRONG tool (there was another tool on XDA, who try to recompile the apk, but this tool is obsolete).

---------- Post added at 07:43 PM ---------- Previous post was at 07:33 PM ----------

Seems to be a prob with your java-version. Uninstall / reinstall it - may use another pc.

---------- Post added at 08:25 PM ---------- Previous post was at 07:43 PM ----------

Is it possible, that WA is preinstalled on your phones?
[Android Apps and Games] KrestD:
How can I find out it?
[Android Apps and Games] Baconator724:
You had it installed on your phone when you bought it. and websites like tweakers.net probably also state it as special information about the phone. However I think this is really unlikely.

Failure [INSTALL_FAILED_VERSION_DOWNGRADE]

This is odd. Try to re-download the files and use a different USB cable and port, as I think the files might have corrupted.

Also, are you rooted or do you use a custom ROM?
[Android Apps and Games] Raptor.X:
Hi guys,

Here's what's happening for me:

I am rooted and everything is installed correctly on my PC. Using Galaxy S7 with Superman ROM.

The "Extracted" folder is still empty except ".placeholder" file.

Thanks.
[Android Apps and Games] akotowski:
Hey,

i got the same Error as mentioned before. I am using a Pixel with WhatApp Version 2.16.396.

The Script removes the current Version of Whatapp and isn't able to install the older Version.

Here is the Complete Scriptoutput:
[Android Apps and Games] rahulmishra1111111:
i will pay 1USD

if someone help me in extracting whatsapp key from my non rooted phone

please call me if u r interested and u have full knowledge about it

i only have 12 hours not more than that

this is my no. +919807787704
[Android Apps and Games] boydy1985:
once the files are decryted how are they opened
[Android Apps and Games] akotowski:
search for WhatsApp.Viewer on Google and try out the Software. I am new at this Forum and can't posts links to the Webside.
[Android Apps and Games] goister:
Same problem, same phone, except latest WhatsApp 2.17.17.
[Android Apps and Games] ferraro.dav:
Tar error fix

I noticed that I'm not the only one who's having the tar errors "tar: apps/com.whatsapp/f/key: Not found in archive", the problem is with the backup file given by adb that is empty. I found on stackexchange (android.stackexchange .com /a/143481/207500) that it has to do with a backup command bug and a simple solution. You just need to use the phone shell instead of letting abd take care of it.

On unix open the ssh file and change this:

if [ $sdkver -ge 23 ]; then
adb backup -f tmp/whatsapp.ab com.whatsapp
else
adb backup -f tmp/whatsapp.ab -noapk com.whatsapp
fi

to this:

if [ $sdkver -ge 23 ]; then
adb shell "bu 1 backup com.whatsapp" > tmp/whatsapp.ab
else
adb shell "bu 1 backup -noapk com.whatsapp" > tmp/whatsapp.ab
fi

Also, it kept giving me empy backup files until I didn't put a "desktop backup password" and wrote it in BOTH the boxes (even if it says that leaving the second blank will make it use the default password).

Hope this helps and that the developers put this change in the script so that no one else has this problem.
[Android Apps and Games] Trans-amers:
Wo if im using pc, what shd I change to prevent this error?
[Android Apps and Games] rayman3:
Thanks for that, i will try it, if the error occurs.

For all other users here:

- If WA is preinstalled on the phone, it´s possible that the script do not work (syntax error or similar)!

- If you´ve set a password in the backup-options of your android-phone, the script do not work -> maybe work, if you remove the option of seting a password in the options of your phone & try again.

- If you want to edit the script like "ferraro.dav" here, use an editor like notepad++, open the ".bat", ".sh" or ".ps1" file and edit them.

N´till yet, i have used this tool with several phones (about 60) and it works within 90%. But i can increasingly find that there are problems with newer models.
[Android Apps and Games] umairnajib:
I am able to complete all processes but there is nothing in the Extract folder..can some one help me??
[Android Apps and Games] rayman3:
---------- Post added at 08:06 PM ---------- Previous post was at 08:01 PM ----------

[/COLOR]

Phone-model? Android-Version? WhatsApp preinstalled?:confused:

---------- Post added at 08:16 PM ---------- Previous post was at 08:06 PM ----------

Can you post the log?
[Android Apps and Games] umairnajib:
now it just closes //i mean the debug window .. :(
[Android Apps and Games] Rockermen:
Android 4.4.4, Huawei Ascend G620S, and whatsapp is not preinstalled
[Android Apps and Games] sercankd:
can i use crypt12 key to open crypt8 dbs? if not how do i get crypt8 key?
[Android Apps and Games] Rockermen:
I guess it should work, try and post results
[Android Apps and Games] Harsh213:
Unexpected error !

Hi, First of all, Thanks for the brilliant work. Much Appreciated.

I am stuck up with this:

bin\tar.exe: apps/com.whatsapp/f/key: Not found in archive

bin\tar.exe: Error exit delayed from previous errors

bin\tar.exe: apps/com.whatsapp/db/msgstore.db: Not found in archive

bin\tar.exe: Error exit delayed from previous errors

bin\tar.exe: apps/com.whatsapp/db/wa.db: Not found in archive

bin\tar.exe: Error exit delayed from previous errors

apps/com.whatsapp/db/axolotl.db

bin\tar.exe: apps/com.whatsapp/db/chatsettings.db: Not found in archive

bin\tar.exe: Error exit delayed from previous errors

Extracting axolotl.db ...

1 file(s) copied.

Could you help me find a solution? How can i fix and get the whatsapp key generated. I am following the Directory Structue. Java is up to date.
[Android Apps and Games] Rockermen:
In the page 42 you can read about how to fix it
[Android Apps and Games] xdaforo:
hey mate, this is cool if it works

but could you say how to edit the bat script for windows? ;D
[Android Apps and Games] Ruud1982:
Galaxy S3 Android 4.1.2 keeps giving invalid apk on installing legacy whatsapp. Does anybody know a solution? It is on the SD card and I have activated other sources. I have tried several versions i could find on internet but no succes so far. Thank you.

=========================================================================

= 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.17.24 installed

Found legacy WhatsApp 2.11.431 in local folder

Backing up WhatsApp 2.17.24

3558 KB/s (27902483 bytes in 7.657s)

Backup complete

Installing legacy WhatsApp 2.11.431

Invalid APK file: /sdcard/LegacyWhatsApp.apk

Install complete
[Android Apps and Games] Rockermen:
Download and install Notepad++, then you should be able to edit the .bat file (just right click on the .bat file and click on edit with notepad++)

Post results
[Android Apps and Games] Mr.Indigo:
Not working at all. Says that downgrade is not allowed and I almost lost the app. What to do in this case?
[Android Apps and Games] Zoojoom:
Please help in below request
[Android Apps and Games] Zoojoom:
I am trying to extract the whatsapp key from REDMI NOTE 4G nodel No : HM NOTE 1LTE

however it gives Permission denied error

This is urgent. please help .

Edit : Am unable to upload image so am putting dropbox link in the message. please help .

https://www.dropbox.com/s/ef1mugg9jobmkov/Permission denied.JPG?dl=0

https://www.dropbox.com/s/ef1mugg9jobmkov/Permission denied.JPG?dl=1
[Android Apps and Games] Zoojoom:
part of code throwing error

this the part of the code that throws error.

if not exist tmp\LegacyWhatsApp.apk (

echo Downloading legacy WhatsApp 2.11.431 to local folder

bin\curl.exe -o tmp\LegacyWhatsApp.apk %apkfurl%

) else (

echo Found legacy WhatsApp 2.11.431 in local folder

)

echo.

if %sdkver% geq 11 (

bin\adb.exe shell am force-stop com.whatsapp

) else (

bin\adb.exe shell am kill com.whatsapp

)

echo Backing up WhatsApp %versionName%

bin\adb.exe pull %apkpath% tmp

echo Backup complete

echo.

if %sdkver% geq 23 (

echo Removing WhatsApp %versionName% skipping data

bin\adb.exe shell pm uninstall -k com.whatsapp

echo Removal complete

echo.

)

echo Installing legacy WhatsApp 2.11.431

if %sdkver% geq 17 (

bin\adb.exe install -r -d tmp\LegacyWhatsApp.apk

) else (

bin\adb.exe install -r tmp\LegacyWhatsApp.apk

)

echo Install complete
[Android Apps and Games] prateetsingh:
Not working on Le 2 ... Android 6.0 ... Whole whatsapp data is deleted​ when this script unistalls the current version so no key is found in the backup ... Pls help

But working on Lenovo A536.... kitkat
[Android Apps and Games] Valonqar:
i was on linux and i had the same problem that I have now on windows. Always the same exception, even using only the abe.jar

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.NumberFormatException: For input string: ""
at org.nick.abe.AndroidBackup.extractAsTar(AndroidBackup.java:420)
at org.nick.abe.Main.main(Main.java:128)
... 5 more
Caused by: java.lang.NumberFormatException: For input string: ""
at java.lang.NumberFormatException.forInputString(Unknown Source)
at java.lang.Integer.parseInt(Unknown Source)
at java.lang.Integer.parseInt(Unknown Source)
at org.nick.abe.AndroidBackup.extractAsTar(AndroidBackup.java:280)
... 6 more
[Android Apps and Games] xdaforo:
I'm afraid I meant not the program to use -notepad in Windows is enough- but the code lines themselves, since batch language is not the same than the one he used to write that piece of code...