EliteAndroidApps / WhatsApp-Key-DB-Extractor

Allows WhatsApp users to extract their cipher key and databases on non-rooted Android devices.
GNU General Public License v3.0
363 stars 183 forks source link

get Failure [INSTALL_FAILED_INVALID_APK] #39

Open exx8 opened 3 years ago

exx8 commented 3 years ago

Whenever I tried to use the script I get: Failure [INSTALL_FAILED_INVALID_APK] Has anyone solved this issue before?

exx8 commented 3 years ago

solved by replacing the legacy apk, it seems that it can't download the right apk automatically. It's still a bug in the script, so I keep this issue open.

fleimgruber commented 3 years ago

@exx8 I am hitting the same issue. Could you please explain which file location you replaced with which file exactly? Thanks!

Brugix commented 3 years ago

@fleimgruber I solved this problem in this way: 1) Download "WhatsApp-2.11.431.apk" from https://whatcrypt.com/WhatsApp-2.11.431.apk. 2) Copy the file "WhatsApp-2.11.431.apk" inside the "tmp" folder. 3) In "WhatsAppKeyDBExtract.ps1", line 87, replace LegacyWhatsApp.apk with WhatsApp-2.11.431.apk. 4) Save and run it. 5) In "extracted" folder you should find the cryptkey and the other files.

@exx8 you did something like this?

fleimgruber commented 3 years ago

@Brugix thanks for the instructions. I managed to do what you described (but without changing the .ps1 script, just directly replacing the LecacyWhatsApp.apk) two days after I wrote my question and did not report back. Good to have the instructions explicitly in this issue though, thanks!

exx8 commented 3 years ago

@fleimgruber I solved this problem in this way:

  1. Download "WhatsApp-2.11.431.apk" from https://whatcrypt.com/WhatsApp-2.11.431.apk.
  2. Copy the file "WhatsApp-2.11.431.apk" inside the "tmp" folder.
  3. In "WhatsAppKeyDBExtract.ps1", line 87, replace LegacyWhatsApp.apk with WhatsApp-2.11.431.apk.
  4. Save and run it.
  5. In "extracted" folder you should find the cryptkey and the other files.

@exx8 you did something like this?

Actually I just got the apk and placed it in the right place. the script checks that if the apk already exists, and doesn't change it if it does. Maybe you should write PR?