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

The process cannot access the file because it is being used by another process: 'tmp/whatsapp.tar' #96

Closed hamadaalfrzay closed 1 year ago

hamadaalfrzay commented 2 years ago

after getting everything done now I should export it but this what I've got

[Wednesday 11/05/2022, 16:37:58] Found "whatsapp.ab" in "tmp" folder. Continuing... Size: 408753285 bytes. [Wednesday 11/05/2022, 16:37:58] Enter a name for this user (default "user").: user [Wednesday 11/05/2022, 16:37:58] Enter same password which you entered on device when prompted earlier.: 12345 [Wednesday 11/05/2022, 16:37:58] Successfully unpacked "tmp/whatsapp.ab" to "tmp/whatsapp.tar". Size: 512558080 bytes. [Wednesday 11/05/2022, 16:37:58] Folder "extracted/" already exists. [Wednesday 11/05/2022, 16:37:58] Folder "extracted/user" already exists. [Wednesday 11/05/2022, 16:37:58] Taking out main files in "tmp/" folder temporarily. [Wednesday 11/05/2022, 16:37:58] unexpected end of data [Wednesday 11/05/2022, 16:37:58] Cleaning up "tmp/" folder... [Wednesday 11/05/2022, 16:37:58] [WinError 32] The process cannot access the file because it is being used by another process: 'tmp/whatsapp.tar'

YuvrajRaghuvanshiS commented 2 years ago

check if you have a wa_kdbe.log under logs folder, share it after confirming it doesn't have anything personal.

mannok commented 2 years ago

@YuvrajRaghuvanshiS I have the same problem too... In Windows 10.

[Wednesday 25/05/2022, 22:47:16] >>> I am in wa_kdbe.run_scrcpy(_is_scrcpy=False)
[Wednesday 25/05/2022, 22:47:16] Turned off wifi and mobile data...
[Wednesday 25/05/2022, 22:47:16] Please read above instructions carefully \u2191 . Continue? (default y): 

[Wednesday 25/05/2022, 22:47:16] If you haven't already, it is advised to take a WhatsApp chat backup by going to "WhatsApp settings \u2192 Chat Settings \u2192 Chat Backup". Hit "Enter" key to continue.
[Wednesday 25/05/2022, 22:47:16] >>> I am in wa_kdbe.usb_mode()
[Wednesday 25/05/2022, 22:47:16] >>> I am in handler.handler(adb=bin\adb.exe -s 7a291c8)
[Wednesday 25/05/2022, 22:47:16] Connected to ONEPLUS A6013
[Wednesday 25/05/2022, 22:47:16] >>> I am in handler.after_connect(adb=bin\adb.exe -s 7a291c8)
Starting new HTTPS connection (1): web.archive.org:443
[Wednesday 25/05/2022, 22:47:16] HTTPSConnectionPool(host='web.archive.org', port=443): Max retries exceeded with url: /web/20141111030303if_/http://www.whatsapp.com/android/current/WhatsApp.apk (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x0000020E8D530250>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed'))
[Wednesday 25/05/2022, 22:47:16] An exception has occured while checking for LegacyWhatsApp existence at web.archive.org, defaulting to alternate CDN server, check log for futher details.
[Wednesday 25/05/2022, 22:47:16] WhatsApp v2.22.10.73 installed on device
[Wednesday 25/05/2022, 22:47:16] Found legacy WhatsApp V2.11.431 apk in "helpers" folder
[Wednesday 25/05/2022, 22:47:16] >>> I am in wa_kdbe.real_deal(sdk_version=29, whatsapp_apk_path_in_device=/data/app/com.whatsapp-RLW9qF_23_FMj_lTfkaTLA==/base.apk, version_name=2.22.10.73)
[Wednesday 25/05/2022, 22:47:16] >>> I am in wa_kdbe.backup_whatsapp_apk(sdk_version=29, version_name=2.22.10.73, whatsapp_apk_path_in_device=/data/app/com.whatsapp-RLW9qF_23_FMj_lTfkaTLA==/base.apk)
[Wednesday 25/05/2022, 22:47:16] Backing up WhatsApp 2.22.10.73 apk, the one installed on device to "/data/local/tmp/WhatsAppbackup.apk" in your phone.
[Wednesday 25/05/2022, 22:47:16] Apk backup is completed.
[Wednesday 25/05/2022, 22:47:16] >>> I am in wa_kdbe.uninstall_whatsapp(sdk_version=29)
[Wednesday 25/05/2022, 22:47:16] Uninstalling WhatsApp, skipping data.
[Wednesday 25/05/2022, 22:47:16] Uninstalled.
[Wednesday 25/05/2022, 22:47:16] >>> I am in wa_kdbe.install_legacy(sdk_version=29)
[Wednesday 25/05/2022, 22:47:16] Installing legacy WhatsApp V2.11.431, hold tight now.
[Wednesday 25/05/2022, 22:47:16] Installation Complete.
[Wednesday 25/05/2022, 22:47:16] Starting: Intent { cmp=com.whatsapp/.Main }
[Wednesday 25/05/2022, 22:47:16] Running legacy WhatsApp, it may crash, do not check for updates if it prompts.
[Wednesday 25/05/2022, 22:47:16] >>> I am in wa_kdbe.backup_whatsapp_data_as_ab(sdk_version=29)
[Wednesday 25/05/2022, 22:47:16] Folder tmp/ already exists.
[Wednesday 25/05/2022, 22:47:16] Backing up WhatsApp data as "tmp/whatsapp.ab". May take time, don't panic.
[Wednesday 25/05/2022, 22:47:16] Done backing up data. Size: 116878770 bytes.
[Wednesday 25/05/2022, 22:47:16] >>> I am in wa_kdbe.reinstall_whatsapp()
[Wednesday 25/05/2022, 22:47:16] Reinstalling original WhatsApp.
[Wednesday 25/05/2022, 22:47:16] Reinstallation complete.

[Wednesday 25/05/2022, 22:47:16] Our work with device has finished, it is safe to remove it now.

[Wednesday 25/05/2022, 22:47:16] >>> I am in view_extract.extract_ab(is_java_installed=True, is_tar_only=False)
[Wednesday 25/05/2022, 22:47:16] Found "whatsapp.ab" in "tmp" folder. Continuing... Size: 116878770 bytes.
[Wednesday 25/05/2022, 22:47:16] Enter a name for this user (default "user").: mannok
[Wednesday 25/05/2022, 22:47:16] Enter same password which you entered on device when prompted earlier.: ********
[Wednesday 25/05/2022, 22:47:16] Successfully unpacked "tmp/whatsapp.ab" to "tmp/whatsapp.tar". Size: 264781312 bytes.
[Wednesday 25/05/2022, 22:47:16] >>> I am in view_extract.taking_out_main_files(username=mannok)
[Wednesday 25/05/2022, 22:47:16] Folder "extracted/" already exists.
[Wednesday 25/05/2022, 22:47:16] Taking out main files in "tmp/" folder temporarily.
[Wednesday 25/05/2022, 22:47:16] unexpected end of data
[Wednesday 25/05/2022, 22:47:16] >>> I am in view_extract.clean_tmp()
[Wednesday 25/05/2022, 22:47:16] Cleaning up "tmp/" folder...
[Wednesday 25/05/2022, 22:47:16] [WinError 32] The process cannot access the file because it is being used by another process: 'tmp/whatsapp.tar'
[Wednesday 25/05/2022, 22:47:16] >>> I am in view_extract.kill_me(reason=)

[Wednesday 25/05/2022, 22:47:16] Exiting...
[Wednesday 25/05/2022, 22:47:16] Turn off USB debugging [and USB debugging (Security Settings)] if you're done.
[Wednesday 25/05/2022, 22:47:16] Hit "Enter" key to continue....
Tatuck commented 1 year ago

Hello. I have this problem too. Any answer?

AndrewEmilio commented 1 year ago

Same problem. any solutions?

shplishka commented 1 year ago

Same problem. any solutions?

EA1FID commented 1 year ago

Same problem here :)

UsamaAshfaq commented 1 year ago

Same Problem with me :(