KnugiHK / WhatsApp-Key-DB-Extractor

Allows WhatsApp users to extract their cipher key and databases on non-rooted Android devices.
Other
122 stars 7 forks source link

app not installed as app isnt compatible with you phone #6

Open truecall367 opened 1 year ago

truecall367 commented 1 year ago

I got this error while executing I tried to manually install the legacy app on pixel but manually also got the error

app not installed as app isnt compatible with you phone

By any chance is there a more recent app that is still legacy but could work?

Installing legacy WhatsApp 2.11.431 2724 KB/s (18329558 bytes in 6.568s) Failure [INSTALL_FAILED_NO_MATCHING_ABIS: INSTALL_FAILED_NO_MATCHING_ABIS: Failed to extract native libraries, res=-113] Install complete! Open Whatsapp, allow the permissions request, if any. Then, press Enter to continue.

Ty

KnugiHK commented 1 year ago

Starting from version 2.11.448 (which should be the next version of 2.11.431), they added the flag that disallows users from doing ADB backup.

I have an idea for you but only a brief test was done.

  1. Do a WhatsApp backup and uninstall WhatsApp.
  2. Download the latest (or the oldest version that works on your device) WhatsApp APK file.
  3. Decompile and re-compile it with apktool, then sign the APK yourself.
  4. Install the re-compiled APK and restore the WhatsApp backup.
  5. Modify the AndroidManifest.xml to allow ADB backup. Something like:
    <application android:allowBackup="true" android:appComponentFactory="androidx.core.app.CoreComponentFactory"  android:extractNativeLibs="true" android:fullBackupContent="true" android:fullBackupOnly="false" android:hardwareAccelerated="@bool/APKTOOL_DUMMYVAL_0x7f050008" android:hasFragileUserData="false" android:icon="@mipmap/icon" android:label="@string/APKTOOL_DUMMYVAL_0x7f121ec3" android:name="com.whatsapp.AppShell" android:networkSecurityConfig="@xml/APKTOOL_DUMMYVAL_0x7f150006" android:preserveLegacyExternalStorage="true" android:requestLegacyExternalStorage="true" android:restoreAnyVersion="true" android:supportsRtl="true" android:theme="@style/APKTOOL_DUMMYVAL_0x7f130301" android:vmSafeMode="@bool/APKTOOL_DUMMYVAL_0x7f050003">
  6. Compile the modified APK and sign it with the same key you previously used.
  7. Install the modified APK:
    adb shell pm uninstall -k com.whatsapp
    adb install -r -d ModifiedWhatsApp.apk