New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failure [INSTALL_FAILED_VERSION_DOWNGRADE] #10

Open
peyobr opened this Issue Sep 19, 2017 · 13 comments

Comments

Projects
None yet
8 participants
@peyobr

peyobr commented Sep 19, 2017

Hi,

any chance this wonderful utility will work on Huawey P9 plus ?

Please help me! Thank you 1k

Pietro


Please connect your Android device with USB Debugging enabled:

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

Downloading legacy WhatsApp 2.11.431 to local folder

% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 17.4M 100 17.4M 0 0 5264k 0 0:00:03 0:00:03 --:--:-- 5264k

WhatsApp 2.17.323 installed

Backing up WhatsApp 2.17.323
remote object '/data/app/com.whatsapp-2/base.apk' does not exist
Backup complete

Removing WhatsApp 2.17.323 skipping data
Success
Removal complete

Installing legacy WhatsApp 2.11.431
7958 KB/s (18329558 bytes in 2.249s)
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:

Password is set but strong AES encryption is not allowed
Please install Java Cryptography Extension (JCE) Unlimited Strength Jurisdiction Policy Files 7 or 8
http://www.oracle.com/technetwork/java/javase/downloads/jce-7-download-432124.html
http://www.oracle.com/technetwork/java/javase/downloads/jce8-download-2133166.html
Exiting.
tar: tmp/whatsapp.tar: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now
tar: tmp/whatsapp.tar: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now
tar: tmp/whatsapp.tar: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now
tar: tmp/whatsapp.tar: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now
tar: tmp/whatsapp.tar: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now

Saving whatsapp.cryptkey ...
cp: cannot stat 'tmp/apps/com.whatsapp/f/key': No such file or directory
Saving msgstore.db ...
cp: cannot stat 'tmp/apps/com.whatsapp/db/msgstore.db': No such file or directory
Saving wa.db ...
cp: cannot stat 'tmp/apps/com.whatsapp/db/wa.db': No such file or directory
Saving axolotl.db ...
cp: cannot stat 'tmp/apps/com.whatsapp/db/axolotl.db': No such file or directory
Saving chatsettings.db ...
cp: cannot stat 'tmp/apps/com.whatsapp/db/chatsettings.db': No such file or directory

Pushing cipher key to: /sdcard/WhatsApp/Databases/.nomedia
cannot stat 'tmp/apps/com.whatsapp/f/key': No such file or directory

Downloading WhatsApp 2.17.323 to local folder

% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 33428 0 33428 0 0 98360 0 --:--:-- --:--:-- --:--:-- 98317

Restoring WhatsApp 2.17.323
742 KB/s (33428 bytes in 0.043s)
Failure [INSTALL_PARSE_FAILED_UNEXPECTED_EXCEPTION: Failed to parse /data/app/vmdl843851857.tmp/base.apk: AndroidManifest.xml]
Restore complete

Cleaning up temporary files ...
rm: cannot remove 'tmp/whatsapp.tar': No such file or directory
Done

Operation complete

Please press Enter to quit...

@hknnisar

This comment has been minimized.

hknnisar commented Oct 9, 2017

Same issue:
Failure [INSTALL_FAILED_VERSION_DOWNGRADE]
on Android 7.1.2
Is this an OS specific bug?

@VidhiBhansali

This comment has been minimized.

VidhiBhansali commented Nov 27, 2017

Hi,

I am facing a similar error when I execute WhatsAppKeyDBExtract.bat file

Error: Failure [INSTALL_FAILED_VERSION_DOWNGRADE]

**Deleted file - C:\Users....\WhatsApp-Key-DB-Extractor-master\tm\wapver.txt
Deleted file - C:\Users....\WhatsApp-Key-DB-Extractor-master\tm\sdkver.txt

Done

Downloading WhatsApp 2.17.395 to local folder
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 33428 0 33428 0 0 110k 0 --:--:-- --:--:-- --:--:-- 110k
Restoring WhatsApp 2.17.395
1920 KB/s (33428 bytes in 0.017s)
Failure [INSTALL_PARSE_FAILED_UNEXPECTED_EXCEPTION: Failed to parse /data/app/v
dl429337027.tmp/base.apk: AndroidManifest.xml]

Restore complete

Removing WhatsApp 2.17.395 temporary apk
Deleted file - C:\Users....\WhatsApp-Key-DB-Extractor-master\tm
\base.apk

Operation complete

Press any key to continue . . .**

I am currently using Android 7.0 and WhatsApp v2.17.395.

Thanks in advance :)

@Nick2324

This comment has been minimized.

Nick2324 commented Dec 23, 2017

Hi!

Regarding the issues with java, you just need to install the software that it says from the links.

Password is set but strong AES encryption is not allowed
Please install Java Cryptography Extension (JCE) Unlimited Strength Jurisdiction Policy Files 7 or 8
http://www.oracle.com/technetwork/java/javase/downloads/jce-7-download-432124.html
http://www.oracle.com/technetwork/java/javase/downloads/jce8-download-2133166.html

If you don't do so, it's impossible for the extractor to access to the backup of your phone.

Hope it helps.

@bjohas

This comment has been minimized.

bjohas commented Feb 28, 2018

"[INSTALL_FAILED_VERSION_DOWNGRADE]". I think this looks like a feature of Android 7.0, see documentation for ADB. Apps can only be downgraded if the app permits it. A work-around might be to move your whatsapp temporarily to a device that has Android < 7.0, and extract the key there. You can then also back up any data you want to back up.

Also, the key may or may not work when you go back to your Android >= 7.0 device. However,
it if does, then you can continue backing up.

NOTE: Haven't tested this yet, but if one of you does try it, feedback would be appreciated.

@reedy

This comment has been minimized.

reedy commented Mar 12, 2018

Annoyingly, just installing the old whatsapp version manually gives a complaint that "Your phone date is inaccurate!"

@nicolabeghin

This comment has been minimized.

nicolabeghin commented Apr 15, 2018

Any news on this? So from Android 7 it's not possible to use it anymore?

@bjohas

This comment has been minimized.

bjohas commented May 4, 2018

This article (https://android.stackexchange.com/questions/150071/how-to-manually-transfer-entire-whatsapp-installation-to-another-device-the-har) suggests that the adb backup functionality is also disabled (in addition to the ability to downgrade, see above).

Edit - there is another way - see my post below. You don't need the following.

Just using the device, the only possibility seems to get the key under Android 6, and then to work on a rooted device, where you can access /data/data/com.whatsapp/databases (or likely that has the key anyway, so rooting would work).
Otherwise, the only possibility I can see is with Google Drive - assuming you are using this on Android for WhatsApp backups. You can download the archive (I guess) using WhatsApp-GD-Extractor, and then (I guess) use WhatsApp-Crypt12-Decrypter to decrypt the message store. This assumes that the key (extracted under Android 6) stays the same, so that you can use it with the backup downloaded from Google Drive.
Has anybody tried this? Any thoughts?

@reedy

This comment has been minimized.

reedy commented May 5, 2018

It'd be a lot easier if the WhatsApp (well, Facebook) just put a proper export feature in

@bjohas

This comment has been minimized.

bjohas commented May 5, 2018

@reedy Of course, I agree. I'm also using Telegram and Signal. Unfortunately they aren't all that great in terms of data export either, but at least being open source, it looks like it may happen sooner than WhatsApp.

@reedy

This comment has been minimized.

reedy commented May 5, 2018

Yeah, it's hard enough getting some people onto WhatsApp (which is at least fairly well used). Trying to get people to install "yet another app" can be painful.

I did email and ask...

Unfortunately, at this time it's not possible to transfer your history across platforms. We are always working to improve our app and will take your suggestion into consideration.

@bjohas

This comment has been minimized.

bjohas commented May 5, 2018

If you're on Android, here's some good news, following on from my above post: The whatsapp message store (msgstore.db.crypt12) is kept in internal SD memory (if you back up to Google Drive). Once you have the key, you can then decrypt that file using 'WhatsApp-Crypt12-Decrypter'.

In summary, the following recipe worked for me:

  • The 'WhatsApp-Key-DB-Extractor' script won't work (and probably never will) under Android 7+.
  • If you have an Android 6 device, the script will work.
  • If you have an Android 7+ device (with WhatsApp) and an Android 6 device, sync your WhatsApp to Google Drive, and then transfer to the Android 6 device.
  • Now use the script to extract the key (and backup up your messages of course).
  • Then your WhatsApp back to the Android 7 device.
  • Whenever you want to do further backups (on your Android 7 device), get the msgstore.db.crypt12 from internal storage (e.g. using a file explorer, or adb, etc). Decrypt the file with the key obtained earlier.

The only caveat to this is that I don't know whether the WhatsApp key might change as you upgrade, or change devices in the future. Also, I guess WhatsApp may eventually become unavailable for Android 6, blocking this recipe altogether.

@sparshgupta1

This comment has been minimized.

sparshgupta1 commented Sep 9, 2018

@bjohas
From your last comment, the script will only work if Android 6. This may come as super lame, but would be possible to emulate a phone with android 6 on PC. Install WhatsApp on the emulator. And then get the data?

@sparshgupta1

This comment has been minimized.

sparshgupta1 commented Oct 23, 2018

So I recently migrated to iPhone, I ended up using the software called Backuptrans. Now no I mean I am suggesting to do piracy. But you can follow these steps, which I got from this youtube video[https://www.youtube.com/watch?v=rbf2TN2wjpA]:

  1. Get a VM or physical machine, Win7SP1 32bit
  2. Download this directory[https://drive.google.com/file/d/17HQWEkGGiES7cqXg7n1Z2tQo-4kxcxCY/view]
  3. Install iTunes
  4. Install ADB drivers for your phone.
  5. Disconnect the internet on VM.
  6. Disconnect Gdrive from WhatsApp, and create a local backup of chats on phone.
  7. Transfer the chats to the VM using the software, and then to your iPhone after creating the chat.sqlite.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment