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
447 stars 57 forks source link

Legacy WA install fails #19

Closed HueHueJanG closed 3 years ago

HueHueJanG commented 3 years ago

trying to run this but it fails, Whatsapp gets uninstalled and reinstalled though

To Reproduce Steps to reproduce the behavior:

  1. clone repo
  2. connect device, enable debugging
  3. run 'python3 wa_kdbe.py --allow-reboot --alternate-adb'

Expected behavior Exports of the chats?

Terminal output

[16:52:36.057809] Please read above instructions carefully ↑ . Continue? (default y) : [16:52:37.703709] Connected to GS370_Plus [16:52:38.765449] WhatsApp V2.21.1.16 installed on device [16:52:38.765697] Found legacy WhatsApp V2.11.431 apk in helpers folder [16:52:38.852346] Backing up WhatsApp 2.21.1.16 apk, the one installed on device to tmp/WhatsAppbackup.apk /data/app/com.whatsapp-bALR5z1yeLi-ctVet7AnLA==/base.apk: 1 file pulled, 0 skipped. 29.6 MB/s (31604309 bytes in 1.017s) [16:52:39.881465] Apk backup complete. [16:52:39.881553] Uninstalling WhatsApp, skipping data. Success [16:52:41.213063] Uninstalled. [16:52:41.213189] Installing legacy WhatsApp V2.11.431, hold tight now. Performing Streamed Install adb: failed to install helpers/LegacyWhatsApp.apk: Failure [INSTALL_FAILED_VERSION_DOWNGRADE] [16:52:43.661842] Installation Complete. [16:52:43.661929] Backing up WhatsApp data as tmp/whatsapp.ab. May take time, don't panic. WARNING: adb backup is deprecated and may be removed in a future release Now unlock your device and confirm the backup operation... [16:52:55.312241] Done backing up data. [16:52:55.312333] Reinstallting original WhatsApp. Performing Streamed Install Success

[16:53:04.048321] Our work with device has finished, it is safe to remove it now.

[16:53:04.048582] Found whatsapp.ab in tmp folder. Continuing [16:53:04.048617] Enter a reference name for this user. : hmn [16:55:50.767511] Enter same password which you entered on device when prompted earlier. : WARNING: An illegal reflective access operation has occurred WARNING: Illegal reflective access by org.bouncycastle.jcajce.provider.drbg.DRBG (rsrc:./) to constructor sun.security.provider.Sun() WARNING: Please consider reporting this to the maintainers of org.bouncycastle.jcajce.provider.drbg.DRBG WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations WARNING: All illegal access operations will be denied in a future release [16:55:52.356961] Successfully 'fluffed' tmp/whatsapp.ab tmp/whatsapp.tar [16:55:52.357068] Folder extracted/ already exists. [16:55:52.357119] Taking out main files in tmp/ folder temporaily. tar: apps/com.whatsapp/f/key: Nicht im Archiv gefunden. tar: Beende mit Fehlerstatus aufgrund vorheriger Fehler [16:55:52.362157] [Errno 2] No such file or directory: 'tmp/apps/com.whatsapp/f/key' -> 'extracted/hmn/key' [16:55:52.362245] Cleaning up tmp folder...

Desktop (please complete the following information):

Smartphone (please complete the following information):

YuvrajRaghuvanshiS commented 3 years ago

git checkout issues/16 python wa_kdbe.py --allow-reboot

HueHueJanG commented 3 years ago

Install seems to work now, however the backup now has the 47 byte thingy should I close this issue and open a new one for that error?

Terminal:

[17:08:25.429091] Please read above instructions carefully ↑ . Continue? (default y) : y [17:08:28.182096] Connected to GS370_Plus [17:08:29.389077] WhatsApp V2.21.1.16 installed on device [17:08:29.389316] Found legacy WhatsApp V2.11.431 apk in helpers folder [17:08:29.470280] Backing up WhatsApp 2.21.1.16 apk, the one installed on device to tmp/WhatsAppbackup.apk /data/app/com.whatsapp-rv69_YjvqixMvkMJTjHCVA==/base.apk: 1 file pulled, 0 skipped. 25.8 MB/s (31604309 bytes in 1.168s) [17:08:30.650008] Apk backup complete. [17:08:30.650092] Uninstalling WhatsApp, skipping data. Success [17:08:32.102557] Uninstalled.

[17:08:32.102712] Rebooting device, please wait. [17:08:35.935908] Waiting for device... [17:08:40.947702] Waiting for device... [17:08:45.960756] Waiting for device... [17:08:50.974543] Waiting for device... [17:08:55.989571] Waiting for device... [17:09:01.003184] Waiting for device... [17:09:06.015595] Waiting for device... [17:09:11.028378] Waiting for device... [17:09:16.041601] Press any key after unlocking device. [17:09:27.613640] Installing legacy WhatsApp V2.11.431, hold tight now. Performing Streamed Install Success [17:09:33.916644] Installation Complete. [17:09:33.916741] Backing up WhatsApp data as tmp/whatsapp.ab. May take time, don't panic. WARNING: adb backup is deprecated and may be removed in a future release Now unlock your device and confirm the backup operation... [17:09:38.629140] Done backing up data. Size : 47 bytes. [17:09:38.629219] Reinstallting original WhatsApp. Performing Streamed Install Success

[17:09:55.808564] Our work with device has finished, it is safe to remove it now.

[17:09:55.808687] Found whatsapp.ab in tmp folder. Continuing... Size : 47 bytes. [17:09:55.808716] Enter a reference name for this user. : hmn [17:10:02.039376] Enter same password which you entered on device when prompted earlier. : WARNING: An illegal reflective access operation has occurred WARNING: Illegal reflective access by org.bouncycastle.jcajce.provider.drbg.DRBG (rsrc:./) to constructor sun.security.provider.Sun() WARNING: Please consider reporting this to the maintainers of org.bouncycastle.jcajce.provider.drbg.DRBG WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations WARNING: All illegal access operations will be denied in a future release [17:10:03.937843] Successfully 'fluffed' tmp/whatsapp.ab tmp/whatsapp.tar. Size : 47 bytes. [17:10:03.937936] Folder extracted/ already exists. [17:10:03.937961] Folder extracted/hmn already exists. [17:10:03.937977] Taking out main files in tmp/ folder temporaily. tar: apps/com.whatsapp/f/key: Nicht im Archiv gefunden. tar: Beende mit Fehlerstatus aufgrund vorheriger Fehler [17:10:03.944642] [Errno 2] No such file or directory: 'tmp/apps/com.whatsapp/f/key' -> 'extracted/hmn/key' [17:10:03.944732] Cleaning up tmp folder...

YuvrajRaghuvanshiS commented 3 years ago

Install seems to work now, however the backup now has the 47 byte thingy should I close this issue and open a new one for that error?

I am figuring this out in #16. We can continue it there.

YuvrajRaghuvanshiS commented 3 years ago

@HueHueJanG I made some changes try with

git pull origin
git checkout issues/16
python wa_kdbe.py --allow-reboot