-
Notifications
You must be signed in to change notification settings - Fork 60
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
Error : whatsapp.ab size 549 bytes/ could not extract whatsapp.tar #16
Comments
What WhatsApp version do you use? |
It happens sometimes when adb can't create whatsapp.ab file properly. The process of creating backup, you must have noticed that the process completed quickly. Try re running the script. |
Send complete output not just error. |
I already tried... twice |
Failure [INSTALL_FAILED_USER_RESTRICTED: Install canceled by user]
|
I believe you are using MIUI. MIUI restricts apk installation via adb. You have to allow that.
You might need to add MI account to your device for that |
Failure [INSTALL_FAILED_VERSION_DOWNGRADE]
|
Try this and send output. In same terminal copy paste following commands.
|
What do you mean by the same terminal? |
Yes |
If you don't have git installed on system you can do this. Go to : https://github.com/YuvrajRaghuvanshiS/WhatsApp-Key-Database-Extractor/tree/issues/16 |
TypeError: can only concatenate str (not "int") to str
|
I think since the legacy whatsapp version is older than the original whatsapp version installed in my device the code is not working. |
Yes you are thinking right. I'm sorry for this error above it was bad code on my side and not related to your issue. Or re-download zip from GitHub whichever way you're doing this. |
- SDK Version is : 27 - 4452 KB/s (18329558 bytes in 4.020s) - Failure [INSTALL_FAILED_VERSION_DOWNGRADE]
|
Yeah i got it! |
It is saying 'success' when uninstalling whatsapp so downgrading error is not because of apk but because of data (which is not deleted while uninstalling original whatsapp). And I believe that is doing something in not installing legacy apk. I need some time to research into this. I have used '-d' flag while installing apk |
Okay... sure take your time. I will check back later! |
In the meantime you can try this however I'm no longer maintaining this fork : https://github.com/YuvrajRaghuvanshiS/WhatsDump |
I have tried the same and there is syntax error in the code. Refer below: |
WhatsDump only runs with python 2.7 |
Thank you @rschuppan for pointing that out. Sorry I missed that. |
Then I better wait for you to update this file itself. I have no rush to extract the key. Anyways thanks! @YuvrajRaghuvanshiS @rschuppan |
No prob, spent like half a day figuring that out when I tried WhatsDump the first time. Also, I think I remember that the java references are broken... |
This is not as easy as changing few lines in code. |
Yeah... Okay. No problem! |
This method does not work work on every device. Recently a friend on mine faced issues on his Samsung device. That's why I'm thinking of re-working that fork of WhatsDump again, https://github.com/YuvrajRaghuvanshiS/WhatsDump/tree/python3Implementation |
Problem with that is, the core concept of WhatsDump is faulty. |
Well we don't need key remember? Just msgstore.db is enough for us. |
It worked! Thank you :D |
You have NO idea how eager I was to hear that. Once @Benji005 also confirms and I'll close this. |
So is this solved then? |
I do hope so. |
I have successfully exported my database and imported all messages to Signal. So in my case this issue is resolved. Thanks again, Yuvray! |
@thbiela Can you check one more thing for me since I can not reproduce this issue on my end. During the trial and error period of this issue I came across a post claiming adb v1.0.31 fixes this issue so I changed my binaries accordingly but since this is solved (and I believe is independent of adb version) I have made a branch to check if adb v1.0.41 works as intended. You need to do the following to check
|
And if I run the latest master the code stops with this: [11:46:25.008696] Found Java installed on system. [11:46:25.008696] Please read above instructions carefully ↑ . Continue? (default y) : y |
Get old adb from here and copy |
https://www.whatsapp.com/android/2.11.431/WhatsApp.apk the link is down |
Second one must be active |
It uses curl to check for content length (if file exists on url) and if does then uses wget to download. |
Extracted the file thank you so much for your efforts! |
Lol what solved it? |
yeah @Benji005 what solved that for you? That'd be helpful for us to maintain. |
I was using usb tethering for internet connection in my pc. |
Who'd have thought LoL. |
@YuvrajRaghuvanshiS Unfortunately, I already have deleted my WhatsApp account after dumping my db. Maybe it could be some android permission related issue? Using your issues/16 branch the temporary installed WA version started and I had to confirm the permissions of the app. After confirmation the dump worked. |
@thbiela maybe not permission related issue but legacy needed to be in running state for it to work and since it is also solved for Benji I believe adb version had nothing to do with it. |
In order to make it work in MIUI 12.03 and newer, you need to disable the MIUI Optimizations to prevent the confirmation popup from cancelling the process. In MIUI 13.x, if the install confirmation popup shows up, it breaks the script, it does not allow you to manually accept the installation of an APK via USB, even if the USB Install option is enabled in the Developer Options. The following guide to disable MIUI Optimizations works: https://www.gizmochina.com/guides/how-to-disable-miui-optimization/ |
Describe the bug
No extracted file
To Reproduce
Steps to reproduce the behavior:
bin\tar.exe: apps/com.whatsapp/f/key: Not found in archive
bin\tar.exe: Error exit delayed from previous errors
[WinError 3] The system cannot find the path specified: 'tmp/apps/com.whatsapp/f/key' -> 'extracted/mine/key'
Cleaning up tmp folder...
Expected behavior
File in extracted folder
Screenshots
If applicable, add screenshots to help explain your problem.
Terminal output
bin\tar.exe: Record size = 2 blocks
bin\tar.exe: apps/com.whatsapp/f/key: Not found in archive
bin\tar.exe: Error exit delayed from previous errors
[WinError 3] The system cannot find the path specified: 'tmp/apps/com.whatsapp/f/key' -> 'extracted/mine/key'
Cleaning up tmp folder...
Desktop (please complete the following information):
Smartphone (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: