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
463 stars 59 forks source link

com.whatsapp does not exist | macOS #39

Closed shloak17107 closed 3 years ago

shloak17107 commented 3 years ago

Describe the bug Upon running python3 wa_kdbe.py, adb does not find /data/app/com.whatsapp-1/base.apk.

To Reproduce Steps to reproduce the behavior:

  1. Device connected via cable and USB debugging enabled
  2. Python requirements installed and dependencies installed
  3. Run python3 wa_kdbe.py
  4. See error

Screenshots

Screen Shot 2021-02-23 at 19 47 03

Desktop:

Smartphone:

YuvrajRaghuvanshiS commented 3 years ago

If terminal is outputting /data/app/com.whatsapp-1/base.apk it this meaning it sure exists, now why isn't this pulling it to laptop is concering. Run this :

adb shell pm path com.whatsapp
adb pull <path> ./test.apk

where < path > is the output of first command. Like /data/app/com.whatsapp-1/base.apk in your case.

shloak17107 commented 3 years ago
➜  WhatsApp-Key-Database-Extractor git:(master) ✗ adb shell pm path com.whatsapp
package:/data/app/com.whatsapp-1/base.apk
➜  WhatsApp-Key-Database-Extractor git:(master) ✗ adb pull /data/app/com.whatsapp-1/base.apk ./test.apk
adb: error: remote object '/data/app/com.whatsapp-1/base.apk' does not exist
YuvrajRaghuvanshiS commented 3 years ago

That is definitely a bug but not on my side. Try this.

adb shell pm path com.whatsapp
adb shell cp <path> /sdcard/temp.apk
adb pull /sdcard/temp.apk ./whatsapp.apk
shloak17107 commented 3 years ago

Successfully pulled

➜  WhatsApp-Key-Database-Extractor git:(master) ✗ adb shell pm path com.whatsapp
package:/data/app/com.whatsapp-1/base.apk
➜  WhatsApp-Key-Database-Extractor git:(master) ✗ adb shell cp /data/app/com.whatsapp-1/base.apk /sdcard/temp.apk
➜  WhatsApp-Key-Database-Extractor git:(master) ✗ adb pull /sdcard/temp.apk ./whatsapp.apk
/sdcard/temp.apk: 1 file pulled, 0 skipped. 12.9 MB/s (32340776 bytes in 2.385s)
YuvrajRaghuvanshiS commented 3 years ago

Find me that person who said do Computer Science LoL, committing this change.