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

[Android 14] INSTALL_FAILED_DEPRECATED_SDK_VERSION Error (Alternate Solution Available) #9

Closed
markusltnr opened this issue Apr 17, 2024 · 6 comments

Comments

@markusltnr
Copy link

Installing the legacy WhatsApp Version failed in my case. I got the following Error:

Installing legacy WhatsApp 2.11.431
Performing Streamed Install
adb: failed to install tmp/LegacyWhatsApp.apk: Failure [INSTALL_FAILED_DEPRECATED_SDK_VERSION: App package must target at least SDK version 23, but found 19]
Install complete! Open Whatsapp, allow the permissions request, if any. Then, press Enter to continue.

Is there any solution for that?

@KnugiHK
Copy link
Owner

KnugiHK commented Apr 18, 2024

@mr-brune
Copy link

it doesn't work im on android 14

@Skyaigrette
Copy link

Skyaigrette commented Aug 6, 2024

I believe it's the same error: #6
This error occurred to me, and then I wanted to install the APK directly from my phone. After that, I got error #6 The version is not compatible with your Android version, which is why you have this error.

@KnugiHK
Copy link
Owner

KnugiHK commented Sep 11, 2024

it doesn't work im on android 14

The INSTALL_FAILED_DEPRECATED_SDK_VERSION error is a known issue with Android 14, which blocks any app with a targetSdkVersion lower than 23 from being installed. You can read more about this behavior change here: https://developer.android.com/about/versions/14/behavior-changes-all#minimum-target-api-level.

Sadly, this means the extractor no longer works on Android 14.

For those using Android 14, your best option without rooting is to back up your chats with end-to-end encryption (crypt15) and decrypt the backup file using the generated encryption key.

Alternatively, if your phone isn't up-to-date and remains vulnerable, you could try this solution: #1 (comment), although I am not sure if it will work properly in an old Android 14.

I believe it's the same error: #6
This error occurred to me, and then I wanted to install the APK directly from my phone. After that, I got error #6 The version is not compatible with your Android version, which is why you have this error.

@Skyaigrette Are you using Android 14?

@Skyaigrette
Copy link

Skyaigrette commented Sep 11, 2024

@KnugiHK Yes, I am using Android 14, but I managed to solve the issue with a different method to extract the files. I recommend doing this late at night so that you’re won't get any messages.

First, I backed up my WhatsApp data from my phone. Then, I logged into my WhatsApp account on the MeMu Emulator. After restoring my messages, I navigated to "/data/data/com.whatsapp/files/" through the "Storage" section. In that folder, you'll find several files to copy. I only copied the "key" and "wa.db" files since I already had the "msgstore.db.crypt14" file from my phone, which doesn't require root access to retrieve.

Finally, I decrypted "msgstore.db.crypt14" using wtsexporter.

Important note: To access the "data/data..." directory, you need to enable root in the MeMu Emulator settings. It's straightforward—just press a button.
If your phone is already rooted, you don't need to use the MeMu Emulator. I later discovered that you can access that folder by connecting your phone to your laptop, though I'm not entirely sure how to do it.

@KnugiHK
Copy link
Owner

KnugiHK commented Sep 12, 2024

@KnugiHK Yes, I am using Android 14, but I managed to solve the issue with a different method to extract the files. I recommend doing this late at night so that you’re won't get any messages.

First, I backed up my WhatsApp data from my phone. Then, I logged into my WhatsApp account on the MeMu Emulator. After restoring my messages, I navigated to "/data/data/com.whatsapp/files/" through the "Storage" section. In that folder, you'll find several files to copy. I only copied the "key" and "wa.db" files since I already had the "msgstore.db.crypt14" file from my phone, which doesn't require root access to retrieve.

Finally, I decrypted "msgstore.db.crypt14" using wtsexporter.

Important note: To access the "data/data..." directory, you need to enable root in the MeMu Emulator settings. It's straightforward—just press a button. If your phone is already rooted, you don't need to use the MeMu Emulator. I later discovered that you can access that folder by connecting your phone to your laptop, though I'm not entirely sure how to do it.

Yup. This is also another way to do so.

Since there is nothing we can do to fix the issue, I am closing this issue for now.

@KnugiHK KnugiHK closed this as not planned Won't fix, can't repro, duplicate, stale Sep 12, 2024
@KnugiHK KnugiHK changed the title INSTALL_FAILED_DEPRECATED_SDK_VERSION: App package must target at least SDK version 23, but found 19 [Android 14] INSTALL_FAILED_DEPRECATED_SDK_VERSION Error Sep 12, 2024
@KnugiHK KnugiHK pinned this issue Sep 12, 2024
@KnugiHK KnugiHK changed the title [Android 14] INSTALL_FAILED_DEPRECATED_SDK_VERSION Error [Android 14] INSTALL_FAILED_DEPRECATED_SDK_VERSION Error (Alternate Solution Available) Sep 12, 2024
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

4 participants