EliteAndroidApps / WhatsApp-Key-DB-Extractor

Allows WhatsApp users to extract their cipher key and databases on non-rooted Android devices.
GNU General Public License v3.0
363 stars 183 forks source link

error: more than one device and emulator #2

Open saudalotaibi opened 7 years ago

saudalotaibi commented 7 years ago

Hi Thank you so much for this script. When I try to extract the WhatsApp encryption key by running the .bat file, I got the following error message:

* daemon not running. starting it now on port 5037 *
* daemon started successfully *
error: protocol fault (status read)
error: protocol fault (status read)
error: more than one device and emulator

13 was unexpected at this time.

Here is list of the attached devices:

C:\adb devices -l
List of devices attached
emulator-5554          offline
dc954d2d               device product:jfltexx model:GT_I9505 device:jflte

It seems that I have to specify the device name within the bat file!

Any suggestion please?

EliteAndroidApps commented 7 years ago

The bat files are hard coded to work with only one device or emulator connected to adb. You will either have to remove the emulator (offline or not) or you will have to manually edit the calls to adb and provide the -d flag to manually pick the first physical device or the -e flag if you want the emulator. At some point I may add auto-detect although this may create more problems than it's worth, universally speaking.