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

Receiving Error Installing legacy WhatsApp 2.11.431 #34

Open
dheepak opened this issue Dec 19, 2020 · 7 comments
Open

Receiving Error Installing legacy WhatsApp 2.11.431 #34

dheepak opened this issue Dec 19, 2020 · 7 comments

Comments

@dheepak
Copy link

dheepak commented Dec 19, 2020

Please connect your Android device with USB Debugging enabled:

  • daemon not running; starting now at tcp:5037
  • daemon started successfully
    ./WhatsAppKeyDBExtract.sh: line 57: [: -eq: unary operator expected

Found legacy WhatsApp 2.11.431 in local folder

WhatsApp 2.20.206.24 installed

Backing up WhatsApp 2.20.206.24
/data/app/com.whatsapp-owUBh4PC-r9QoLSs48u47Q==/base.apk: 1 file pulled, 0 skipped. 10.4 MB/s (31188619 bytes in 2.849s)
Backup complete

Removing WhatsApp 2.20.206.24 skipping data
Success
Removal complete

Installing legacy WhatsApp 2.11.431
Performing Streamed Install
adb: failed to install tmp/LegacyWhatsApp.apk: Failure [INSTALL_PARSE_FAILED_UNEXPECTED_EXCEPTION: Failed to parse /data/app/vmdl209896515.tmp/base.apk: AndroidManifest.xml]
Install complete

WARNING: adb backup is deprecated and may be removed in a future release
Now unlock your device and confirm the backup operation...

@phwi
Copy link

phwi commented Jan 10, 2021

Did you find any solution or does anyone know a solution? I have the exact same problem... and I already tried dozens of ADB versions (not helping).

Installing legacy WhatsApp 2.11.431 Performing Streamed Install adb: failed to install tmp/LegacyWhatsApp.apk: Failure [INSTALL_PARSE_FAILED_UNEXPECTED_EXCEPTION: Failed to parse /data/app/vmdl209896515.tmp/base.apk: AndroidManifest.xml] Install complete

@ShadyMedic
Copy link

I have a similar problem. But a slightly different error occurs on the same place.

Installing legacy WhatsApp 2.11.431
1 KB/s (251 bytes in 0.133s)
Error: Failed to parse APK file: /data/local/tmp/LegacyWhatsApp.apk

Exception occurred while executing:
java.lang.IllegalArgumentException: Error: Failed to parse APK file: /data/local/tmp/LegacyWhatsApp.apk
        at com.android.server.pm.PackageManagerShellCommand.setParamsSize(PackageManagerShellCommand.java:471)
        at com.android.server.pm.PackageManagerShellCommand.runInstall(PackageManagerShellCommand.java:1060)
        at com.android.server.pm.PackageManagerShellCommand.onCommand(PackageManagerShellCommand.java:169)
        at android.os.ShellCommand.exec(ShellCommand.java:104)
        at com.android.server.pm.PackageManagerService.onShellCommand(PackageManagerService.java:26887)
        at android.os.Binder.shellCommand(Binder.java:916)
        at android.os.Binder.onTransact(Binder.java:790)
        at android.content.pm.IPackageManager$Stub.onTransact(IPackageManager.java:5452)
        at com.android.server.pm.PackageManagerService.onTransact(PackageManagerService.java:5044)
        at android.os.Binder.execTransactInternal(Binder.java:1056)
        at android.os.Binder.execTransact(Binder.java:1029)
Caused by: android.content.pm.PackageParser$PackageParserException: Failed to parse /data/local/tmp/LegacyWhatsApp.apk
        at android.content.pm.PackageParser.parseApkLiteInner(PackageParser.java:1680)
        at android.content.pm.PackageParser.parseApkLite(PackageParser.java:1665)
        at com.android.server.pm.PackageManagerShellCommand.setParamsSize(PackageManagerShellCommand.java:464)
        ... 10 more
Install complete

@bogdank0
Copy link

bogdank0 commented Dec 2, 2022

[Friday 02/12/2022, 01:32:13] Reinstalling original WhatsApp.
[Friday 02/12/2022, 01:32:13] Could not install WhatsApp, install by running "restore_whatsapp.py" or manually installing from Play Store.
However if it crashes then you have to clear storage/clear data from "Settings → App Settings → WhatsApp".
[Friday 02/12/2022, 01:32:13] pkg: /data/local/tmp/WhatsAppbackup.apk

Failure [INSTALL_FAILED_INVALID_URI]

[Friday 02/12/2022, 01:32:13] Our work with device has finished, it is safe to remove it now.

[Friday 02/12/2022, 01:32:13] Found "whatsapp.ab" in "tmp" folder. Continuing... Size: 77126789 bytes.
[Friday 02/12/2022, 01:32:13] Enter a name for this user (default "user").: user
[Friday 02/12/2022, 01:32:13] Enter same password which you entered on device when prompted earlier.: 123456
[Friday 02/12/2022, 01:32:13] Successfully unpacked "tmp/whatsapp.ab" to "tmp/whatsapp.tar". Size: 155164672 bytes.
[Friday 02/12/2022, 01:32:13] Folder "extracted/" already exists.
[Friday 02/12/2022, 01:32:13] Taking out main files in "tmp/" folder temporarily.
[Friday 02/12/2022, 01:32:13] Copied to "extracted/user": axolotl.db
[Friday 02/12/2022, 01:32:13] "encrypted_backup.key" is not present in tarfile, if you have crypt15 backups then visit "YuvrajRaghuvanshiS/WhatsApp-Key-Database-Extractor#94" for more details.
[Friday 02/12/2022, 01:32:13] "password_data.key" is not present in tarfile, if you have crypt15 backups then visit "YuvrajRaghuvanshiS/WhatsApp-Key-Database-Extractor#94" for more details.
[Friday 02/12/2022, 01:32:13] Copied to "extracted/user": chatsettings.db

same problem (((((((

@SamuelSwartzberg
Copy link

SamuelSwartzberg commented Dec 11, 2022

There's a more up-to-date fork here: https://github.com/KnugiHK/WhatsApp-Key-DB-Extractor. It still doesn't work, I'm working on a solution on a personal fork and will submit a PR over there once it's done (if everything works out).
Edit: actually, I got it into a working state, but the db is in such an old format that is near-useless, and in the process of trial-and-error development of this, I wiped my whatsapp data twice. Since I can't guarantee that my edits are actually safe and the script is not particularly functional, I don't think I'll be pursuing this solution any furthor. If someone wants to deal with further development, I'll leave my fork up at https://github.com/SamuelSwartzberg/WhatsApp-Key-DB-Extractor.

@samezrp
Copy link

samezrp commented Jan 26, 2023

Hi,
I have still the same issue with your fork:
image

with original one:
image

@SamuelSwartzberg
Copy link

I'm sorry to say that I don't really have the energy to maintain or bugfix my fork. I'm only leaving it up so that others can build off of it or use some of the diffs to the original fork as inspirations for possible bugfixes or improvements. If you're not confident in writing shell scripts and fixing the relevant issues yourself, please don't use my fork.

@samezrp
Copy link

samezrp commented Jan 26, 2023

It is not connected to your work, it looks like there is no way to install old version of WhatsApp on the phone where 2.23.1.76 was installed. Manual install of 2.11.431 also does not work.
My email was not complain, rather information. BR

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