yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] dbgt:
Transfering chats to new phone and number, I screwed up

Things went like this :

1: I did a backup (local and gdrive) of my messages on old phone/number

2: Click the change number on old phone and did the process successfully

3: Transferred my backup to the internal storage of new phone

4: Downloaded whatsapp on new phone/number and verified the account

5: Whatsapp saw the backup and tried to restore it but failed

I realized I did the backup with the OLD number and I am trying to restore it on the NEW number.

I tried opening whatsapp on the old phone (to do a new backup now with new number) but it said my account was verified on another phone now.

I was about to verify again my account on my old phone when it suddenly DIED. (it was on its last legs, barely working, all screen cracked). Now my old phone does not power on.... I cannot do a new backup

IS there any way I can restore my messages on my new phone?? I had about 4000 unread messages!! My account transferred fine but I cannot restore my messages.

Backup was made with latest version of whatsapp, it is a crypt12 file and I have the key file from OLD phone.

(New phone is not rooted)

Thank you very much, I hope someone can help me figure this out
[Android Apps and Games] Manyt:
Problems with Coolpad

Hi, thanks for this thread, but I do not work with the Coolpad Torino S E561_EU, is it possible that some other program has come out, or do you know if there is anything else to get the whatsapp keys of the Coolpad Torino S E561_EU?

Data in txt temp files

Coolpad Torino S E561_EU

SDKVER = 22

SDPATH = /storage/emulated/legacy

WAPATH = package:/data/app/com.whatsapp-2/base.apk

WAPLEN = Content-Length: 18329558

WAPVER = versionName=2.17.79 versionName=2.16.13

Sorry for my English

Thanks in advance
[Android Apps and Games] justsomeonewalking:
Thank you very much, it worked (29/04/2017) on an Android 4.3! I used PowerShell, in case that you don't have permission to execute scripts open PowerShell in Administrator mode (right button -> start as administrator) and then write this: Set-ExecutionPolicy unrestricted
[Android Apps and Games] Kanitokun:
.placeholder

hi guys, i did all the stepd and everythings worked perfectly, except that in the "extracted" folder, i find only one file named .placeholder.

no key, no DB. ... just the .placeholder.

any thoughts?

thanks in advance.
[Android Apps and Games] jjbr2:
I'm having the same problem (INSTALL_FAILED_VERSION_DOWNGRADE) on a Pixel XL. Can anybody help?
[Android Apps and Games] ct8080:
I also am having the same problem (INSTALL_FAILED_VERSION_DOWNGRADE) on a Nexus 5X. I'm on Android 7.1.2. Is it no longer possible to install the legacy version of whatsapp on 7.1.1 or higher?

Would really appreciate a fix for this as soon as possible as I have to send my replacement phone to Google.

Can anybody help?
[Android Apps and Games] ct8080:
No one can help?
[Android Apps and Games] David_2016:
Will this work with encrypted devices that are rooted?
[Android Apps and Games] scofty:
Help please

Could you (or anyone) please tell me how did you tweak it exactly, since i have the same error and couldn't find an answer yet

thanks in advance
[Android Apps and Games] buondi:
I get "AES encryption not allowed" error message, so I downloaded Oracle Java Cryptography Extension (JCE) v8, but I don't know where to save them.

I tried to install them by double clicking on their exe, but they don't install automatically. How can I do?
[Android Apps and Games] vtins:
I got my key file .. but how can i encrypt whatsapp.cryptkey ?

i need my whatsapp password hash
[Android Apps and Games] nicshots:
Same problem here :(
[Android Apps and Games] ddvo:
Minor improvements

Cool stuff - thanks a lot!

Would be nice if the script was independent of the current directory.

Moreover, on my Mac the 'grep' command did not work with the '[0-9]*' pattern - I had to replace it by '[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]'.

Error handling is pretty weak. If things go wrong, this is not properly detected and success is wrongly claimed.
[Android Apps and Games] ecienfuegos:
The extracted folder is empty. Just the .placehoder file. Any idea?
[Android Apps and Games] isrendom:
What if device was disconected during whatsapp installation process?

Now it says

WhatsApp 2.11.431 installed

Operation failed

Operation complete

Press any key to continue .
[Android Apps and Games] gps3dx:
[MENTION=5771215]TripCode[/MENTION] - I found a way to bypass the "need" of a PC to get the WA key ( as long as you don't encrypt the backup ).

please see the following post I published.

you can make a shell script that even ppl without root can run, based on my finding, which can backup WA->gets the relevant compressed data (dd command ) -> adding zlib header -> deflates the zlib using gzip ( which is part of busybox ) -> then un-tar the zlib-deflated file.

then one can perform the rest of the script ( before & after what i've wrote above ).
[Android Apps and Games] stefanbk:
can i connect old backupfiles with this tool and restore them ?
[Android Apps and Games] R. Sanders:
Is a new key file generated, everytime you re-install whatsapp?

Can someone clarify this, please?

I had to re-install, and did'nt know about the key. So now i have the crypt12 backup file with all conversations but since the old phone number that was still linked to the whatsapp account is inactive, i can't verify. Apparently verifying with the NEW number leads to whatsapp denying restoring my backup.

I thought, since no changes were made to the system, maybe the old key file is somewhere to be found in the system

..?

But i guess uninstalling whatsapp has also deleted the key file and there is no way to see my messages ever again :( VERY FRUSTRATING
[Android Apps and Games] madmartygan123:
Hello,

I got this error: [INSTALL_FAILED_MEDIA_UNAVAILABLE]

Can someone help me?

Thanks!
[Android Apps and Games] tcpcd:
getting error "Failure [INSTALL_FAILED_VERSION_DOWNGRADE]"
[Android Apps and Games] cla1966:
thx - after using your tool my key is gone........ :eek: :mad:
[Android Apps and Games] Shobobo:
Version Downgrade message

Hi,

Like a couple of other users here, I'm also getting the Version_Downgrade error.

Just in case any of this information helps you:

- The phone is a Samsung Galaxy S8 - Unrooted.

- I'm trying to merge a newer iOS Whatsapp Database and an old Android Whatsapp database.

- I've extracted the iOS Database and converted it to an Android Database type - This is not encrypted.

- I have an old (2015) android Whatsapp Database I'd like to decrypt (Crypt8 file).

- I have the merging tool ready to use.

Any help would be greatly appreciated... Thanks! :)
[Android Apps and Games] nanomy8:
I download and extract my whatappdbextract. I run the bak file. Everything looks fine in all the process. The program at the end confirm the extraction of the database and the key file. When I go in the extracted folder I only find one file. The file name is placeorder . I cannot find any database and any key file. Can you help with this?

Thanks
[Android Apps and Games] meet2308:
i am complete all following step you said on video tutorial but still my mobile are not allowed me to ENABLE CRYPT 6-12 BACKUP. pleas give me Solution for this.
[Android Apps and Games] Zusan:
Post deleted
[Android Apps and Games] Growly:
What location is the key extracted to?

I just ran the software and it appeared to work perfectly, but like the user above, I cannot now find the extracted key. I just have that .placeholder file in the 'Extracted' folder. What is the filename of the key so that I may search for it and where has it likely been created? Please help, I need to run this urgently on 2 phones and merge the databases so I need these keys.

Thanks so much for your help!
[Android Apps and Games] pilotdad:
Hi. I'm not familiar with Unix or Powershell or adb commands. If the bat file is edited, what's the correct command for this:

adb shell "bu 1 backup com.whatsapp" > tmp/whatsapp.ab and adb shell "bu 1 backup -noapk com.whatsapp" > tmp/whatsapp.ab

Or in Powershell , what's the correct syntax?

If ($sdkver -ge 23)

{

Invoke-Expression "bin\adb.exe backup -f tmp\whatsapp.ab com.whatsapp"

} Else {

Invoke-Expression "bin\adb.exe backup -f tmp\whatsapp.ab -noapk com.whatsapp"

}

I'm using Win10, on HTC One M8 and HTC 10, and running this extractor v4.7

Pls help.
[Android Apps and Games] nippit:
[install_failed_version_downgrade]

Like many other users

I am getting the following error

Installing legacy WhatsApp 2.11.431

5202 KB/s (18329558 bytes in 3.440s)

Failure [INSTALL_FAILED_VERSION_DOWNGRADE]

Info:

Phone: Xperia XZ F8332

Android 7.1.1

Build number 41.2.A.7.35

any details, any recommendations?
[Android Apps and Games] Aetherling:
hello,

there is some way to do the extraction of the key and db without connection to the internet, I know the script downloads the WhatsApp.apk and WhatsApp-2.11.431.apk, but is there a way to do it locally?
[Android Apps and Games] succhiamelo:
i need add a copy of media folder and subfolder from whatsapp folder to the extract folder how is possible with auto overwrite?
[Android Apps and Games] cla1966:
samsung s6

wa ver can't remember

after running the tool not only the key is gone

(but i found something in the

sdcard/WhatsApp/com.whatsapp/folder/keystore.xml -->

<?xml version='1.0' encoding='utf-8' standalone='yes' ?>

<map>

<string name="server_static_public">2qWGl+8Lho+***********</string>

<string name="client_static_keypair">QJx0FczhS5Ex6jayAqFFjz2K3Ic3HP1ynyayhC2KBklDU03vQeJBjVbSguub9diGSHIUSihh/rk/ZX********</string>

</map>

--> can i work with this ???)

also 'WhatsApp' isn't installed anymore one device....

any solution ???

THX a lot in advance !
[Android Apps and Games] Tr4sHCr4fT:
does it still work?
[Android Apps and Games] dekao:
I guess the downgrade method does not work on the latest version of Whatsapp.
[Android Apps and Games] mehfil:
How did you resolved the issue?

Could you please help how to resolve the issue.
[Android Apps and Games] nastasyanka:
I downloaded the zip file and there is no such file as WhatsAppKeyDBExtract.bat inside
[Android Apps and Games] sunandoghosh:
exactly same error version downgrade ....any updates pls
[Android Apps and Games] chanduycm@gmail.com:
not able to extract key

i am trying to extract Whatsapp key to get decrypt Google drive backup db files but the above said error is coming.

my mobile model samsung galaxy A7, windows 7. installed latest java version. i dont have any backup in mobile device. please give me a solution

thanks in advance
[Android Apps and Games] ASKMAX:
Batch process is not working on Vivo 7 +

[IMG="Batch Screen"]C:\Users\AmitS\Downloads1/WhatsApp-Key-DB-Extractor-master.png[/IMG]

Batch stop after below statement

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

= 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 *
[Android Apps and Games] chanduycm@gmail.com:
[PHP]

[/PHP]

my problem was resolved by pasting a file adb_usb.ini in folder C:\Users\username\.android.

the contents of file would be

# ANDROID 3RD PARTY USB VENDOR ID LIST -- DO NOT EDIT.

# USE 'android update adb' TO GENERATE.

# 1 USB VENDOR ID PER LINE.

0x1949

0x18D1

0x0502

0x05C6

0x0BB4

0x0FCE

0x1004

0x19D2

0x22B8

and save file as adb_usb.ini.

after that there is no issue in extracting whatsapp key file.

this file is for vendor id list. search appropriate vendor ID in google add to file.

thanks & regards
[Android Apps and Games] Colosseo:
Not working

Hello, I'm getting these errors:

tar.exe: Record size = 2 blocks
tar.exe: apps/com.whatsapp/f/key: Not found in archive
tar.exe: Error exit delayed from previous errors
tar.exe: Record size = 2 blocks
tar.exe: apps/com.whatsapp/db/msgstore.db: Not found in ar
chive
tar.exe: Error exit delayed from previous errors
tar.exe: Record size = 2 blocks
tar.exe: apps/com.whatsapp/db/wa.db: Not found in archive
tar.exe: Error exit delayed from previous errors
tar.exe: Record size = 2 blocks
tar.exe: apps/com.whatsapp/db/axolotl.db: Not found in arc
hive
tar.exe: Error exit delayed from previous errors
tar.exe: Record size = 2 blocks
tar.exe: apps/com.whatsapp/db/chatsettings.db: Not found i
n archive
tar.exe: Error exit delayed from previous errors

Any suggestion?

Thanks!

Android 7

Whatsapp ver. 2.17.427
[Android Apps and Games] Er Josu:
Solution for Failure [INSTALL_FAILED_VERSION_DOWNGRADE]

I get the following error, using the tool: "Failure [INSTALL_FAILED_VERSION_DOWNGRADE]" How can I resolve this? From here, the tool can't xtract files.

Whatsapp Version: 2.17.427

Android Version on my mobile phone: 7.1.1 (It's a Samsung Galaxy J5)
[Android Apps and Games] nylred:
bin\tar.exe: apps/com.whatsapp/f/key: Not found in archive bin\tar.exe: Error exit de

Someone can help me???

I got this msg while I was trying to get the whatsapp key from my phone:

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

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

but I could get these:

apps/com.whatsapp/db/msgstore.db

apps/com.whatsapp/db/wa.db

apps/com.whatsapp/db/axolotl.db

apps/com.whatsapp/db/chatsettings.db

how can I get the key if I have this problem? :(
[Android Apps and Games] MaT1020:
Can anyone help me? I'm stuck in step 4.

After opening the bat file and connecting my device with an USB cable the full backup screen does not appear.

I'm assuming this is a problem with the phone, as I have all the necessary prerequisites.

I'm on a Xiaomi Redmi Note 4, Android 7.0.
[Android Apps and Games] Er Josu:
You need to wait while your screen's mobile phone is not turned off and, after a short operations (less of one minute, I'm sure), you'll see the notification in your mobile phone. You must have the screen turned on during the process. So configure your mobile phone to have it always turned on, or just touch it before everytime it turns off.
[Android Apps and Games] MaT1020:
Just tried again, screen on all the time but no full backup screen appears.

Also, I've noticed that the .bat file does not install the older WhatsApp version, just uninstalls the one I have and it gives me this error "Failure [INSTALL_FAILED_VERSION_DOWNGRADE]".

Using the .ps1 does not fix the problem.

Does anyone have any idea on how to fix this?
[Android Apps and Games] Er Josu:
That's the reason why I'm here too, as many people in the last year. But the tool's developer hasn't pronunced about this problem and his last update was in 2016's finals... We hope someone is making a solution but I don't really know.
[Android Apps and Games] staipa:
Error executing program

Hi, I receive this error, what can i do for solve?

Now unlock your device and confirm the backup operation.

Strong AES encryption not allowed

Magic:

Version:

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:351)

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

... 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:220)

... 6 more
[Android Apps and Games] skeccy:
Internet question

Hello, for extract whatsapp key, internet is required? can i use the same cellular connection of the target phone or an external connection is required?

Another question, where is located the key in Huawey p8 lite 2017? the path indicated in the .bat file is the same in all models? Thanks
[Android Apps and Games] Er Josu:
This part: "Failure [INSTALL_FAILED_VERSION_DOWNGRADE]" but no one knows what's the solution to this.
[Android Apps and Games] hfray123:
I keep getting this script error. Can you please 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. =

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

cannot connect to daemon at tcp:5037: Connection refused

* daemon not running; starting now at tcp:5037

* daemon started successfully

/Users/kshaq/Downloads/WhatsApp-Key-DB-Extractor-master 2/WhatsAppKeyDBExtract.sh: line 57: [: -eq: unary operator expected

Downloading legacy WhatsApp 2.11.431 to local folder

% Total % Received % Xferd Average Speed Time Time Time Current

Dload Upload Total Spent Left Speed

0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0Warning: Failed to create the file tmp/LegacyWhatsApp.apk: Not a directory

curl: (23) Failed writing body (0 != 1187)

WhatsApp 2.18.29 installed

Backing up WhatsApp 2.18.29

/data/app/com.whatsapp-1/base.apk: 1 f.... 17.0 MB/s (32617042 bytes in 1.831s)

Backup complete

Removing WhatsApp 2.18.29 skipping data

Success

Removal complete

Installing legacy WhatsApp 2.11.431

adb: failed to stat tmp/LegacyWhatsApp.apk: Not a directory

Install complete

adb: backup unable to create file 'tmp/whatsapp.ab': Not a directory

Operation failed

Downloading WhatsApp 2.18.29 to local folder

% Total % Received % Xferd Average Speed Time Time Time Current

Dload Upload Total Spent Left Speed

0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0Warning: Failed to create the file tmp/base.apk: Not a directory

curl: (23) Failed writing body (0 != 661)

Restoring WhatsApp 2.18.29

adb: failed to stat tmp/base.apk: Not a directory

Restore complete

Cleaning up temporary files ...

rm: tmp/whatsapp.ab: Not a directory

rm: tmp/whatsapp.tar: Not a directory

rm: tmp/apps: Not a directory

rm: tmp/base.apk: Not a directory

Done

Operation complete

Please press Enter to quit...
[Android Apps and Games] staipa:
I think that no one will responde...
[Android Apps and Games] succhiamelo:
i have the same problem to downgrade whatsapp on my phone j500fn with this custom rom "Failure [INSTALL_FAILED_VERSION_DOWNGRADE]"new for resolve this problem? or is posssible modify the script to use whit a memu emulator on pc?
[Android Apps and Games] Er Josu:
The tool's "bug" makes imposible downgrading the app despite version's whatsapp, I think...

So, despite the attention (or a resolution from a posible update of this tool's thread), I finished using a software called WhatsApp Message Extraction & Decryption by XLY Salvationdata Technology INC. It needs complete a form, some questions, and you can download for free the app. After I installed it, I executed the program from his original folder (because it doesn't launch automatically after install process) and follow the instructions. These were so easy and it took me 15 minutes of my time to get decrypted my database and got even the key.

I say goodbye to this thread through I registered in this forum a few months before because my petition but the tool of this thread was too useful to me in my last 2-3 years using whatsapp. So, thanks to TripCode for his time making his software and bringing the chance to users like me to save important files about Whatsapp. Thanks for your service!
[Android Apps and Games] staipa:
Thank you! Reuire root or not?
[Android Apps and Games] Er Josu:
No, root is not neccesary.
[Android Apps and Games] Duraley:
Doesn't work for Samsung S8 under Android 8.0. Any chance to fix?

WhatsApp 2.18.92 installed

Found legacy WhatsApp 2.11.431 in local folder

Backing up WhatsApp 2.18.92

2495 KB/s (32461441 bytes in 12.705s)

Backup complete

Removing WhatsApp 2.18.92 skipping data

Success

Removal complete

Installing legacy WhatsApp 2.11.431

2782 KB/s (18329558 bytes in 6.432s)

Failure [INSTALL_FAILED_VERSION_DOWNGRADE]

Install complete

Now unlock your device and confirm the backup operation.

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

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

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 - E:\Downloads\WhatsApp-Key-DB-Extractor-master\WhatsApp-Key-DB-Extractor-master\tmp\whatsapp.ab

Deleted file - E:\Downloads\WhatsApp-Key-DB-Extractor-master\WhatsApp-Key-DB-Extractor-master\tmp\waplen.txt

Deleted file - E:\Downloads\WhatsApp-Key-DB-Extractor-master\WhatsApp-Key-DB-Extractor-master\tmp\sdpath.txt

Deleted file - E:\Downloads\WhatsApp-Key-DB-Extractor-master\WhatsApp-Key-DB-Extractor-master\tmp\wapath.txt

Deleted file - E:\Downloads\WhatsApp-Key-DB-Extractor-master\WhatsApp-Key-DB-Extractor-master\tmp\wapver.txt

Deleted file - E:\Downloads\WhatsApp-Key-DB-Extractor-master\WhatsApp-Key-DB-Extractor-master\tmp\sdkver.txt

Done

Restoring WhatsApp 2.18.92

3360 KB/s (32461441 bytes in 9.432s)

Success

Restore complete

Removing WhatsApp 2.18.92 temporary apk

Deleted file - E:\Downloads\WhatsApp-Key-DB-Extractor-master\WhatsApp-Key-DB-Extractor-master\tmp\base.apk

Operation complete