Skip to content
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

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

Open
girishKM opened this issue Jan 25, 2024 · 5 comments
Open

Comments

@girishKM
Copy link

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
Copy link

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
Copy link

JorgeLCM commented Feb 6, 2024

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

@obeythelord
Copy link

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
Copy link

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
Copy link

Marvolo1590 commented Apr 28, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants