YuvrajRaghuvanshiS / WhatsApp-Key-Database-Extractor

The most advanced and complete solution for extracting WhatsApp key/DB from package directory (/data/data/com.whatsapp) without root access.
MIT License
443 stars 57 forks source link

Issue with Samsung S24 Exynos variant. Could not install legacy WhatsApp #123

Open girishKM opened 5 months ago

girishKM commented 5 months ago

Describe the bug A clear and concise description of what the bug is.

Could not install legacy WhatsApp

To Reproduce Steps to reproduce the behavior:

  1. run 'python3 wa_kdbe.py -ar -s -to'
  2. Enter '..'
  3. See error adb: failed to install helpers/LegacyWhatsApp.apk: Failure [INSTALL_FAILED_NO_MATCHING_ABIS: INSTALL_FAILED_NO_MATCHING_ABIS: Failed to extract native libraries, res=-113] Performing Streamed Install

Expected behavior A clear and concise description of what you expected to happen.

alphakry commented 5 months ago

having similar issue on my Pixel 5. guessing latest version of WhatsApp is causing the issue?

[]Connected to Pixel 5 []WhatsApp v2.24.1.78 installed on device []Found legacy WhatsApp V2.11.431 apk in "helpers" folder []Backing up WhatsApp 2.24.1.78 apk, the one installed on device to "/data/local/tmp/WhatsAppbackup.apk" in your phone. []Apk backup is completed. []Uninstalling WhatsApp, skipping data. []Uninstalled.

[]Rebooting device, please wait. []Hit "Enter" key after unlocking device. | []Installing legacy WhatsApp V2.11.431, hold tight now. []Could not install legacy WhatsApp []adb: failed to install helpers/LegacyWhatsApp.apk: Failure [INSTALL_FAILED_DEPRECATED_SDK_VERSION: App package must target at least SDK version 23, but found 19] Performing Streamed Install []Trying to restore WhatsApp in 00:06.

JorgeLCM commented 4 months ago

Same issue failure [INSTALL_FAILED_DEPRECATED_SDK_VERSION: App package must target at least SDK version 23, but found 19]

obeythelord commented 4 months ago

I got this same error

Same issue failure [INSTALL_FAILED_DEPRECATED_SDK_VERSION: App package must target at least SDK version 23, but found 19]

kurisu-snek commented 4 months ago

I got the same error too. I'm on Xiaomi 13T

Same issue failure [INSTALL_FAILED_DEPRECATED_SDK_VERSION: App package must target at least SDK version 23, but found 19]

I managed to solve this by adding an additional command on the legacy whatsapp adb install function in the wa_kdbe.py.

Change this part in line 252

f"{adb} install -r -d -g {helpers}LegacyWhatsApp.apk"

and add --bypass-low-target-sdk-block in the adb install command

f"{adb} install --bypass-low-target-sdk-block -r -d -g {helpers}LegacyWhatsApp.apk"

same goes for line 265

f"{adb} install -r -g {helpers}LegacyWhatsApp.apk"

added the same command

f"{adb} install --bypass-low-target-sdk-block -r -g {helpers}LegacyWhatsApp.apk"

It should work on other phone models since it only bypass the target sdk check when installing from adb

Marvolo1590 commented 2 months ago

having similar issue on my Pixel 5. guessing latest version of WhatsApp is causing the issue?

It's not the fault of WhatsApp, it's the fault of the latest version of Android. I can't run this script on my S24 ultra, getting the same error message from above (No matching ABIS) when trying to run the legacy app.

Instead, I used an older Smartphone from 2017-2019 and everything works beautiful, even with the most recent version of WhatsApp.

So this problem is because something changed in the newer versions of Android and I'm still looking for a way to solve this, otherwise I have to install WhatsApp on an old device all the time whenever I want to extract the database / key. Which is annoying.

@YuvrajRaghuvanshiS are you planning to fix this issue to get this awesome script to work on the latest Android versions or have you given up on this project by now? Thanks a lot.