whatsapp-viewer icon indicating copy to clipboard operation
whatsapp-viewer copied to clipboard

Decrypting file without rooted device but I have the files on my computer

Open Pankeki03 opened this issue 2 years ago • 4 comments

Hello, I wanted to ask, if it was possible using the program with encrypted files on my PC. The main problem is that the device is not rooted and at the moment, the device is broken too, but I do have the files on my pc. Is there a way I can use it? Or I have to give up?

Pankeki03 avatar Sep 27 '22 15:09 Pankeki03

You need the decryption key, which you can only get with root rights otherwise the program can't decrypt your chats, so badly no. But if you have a backup on Drive and a Pc this schould gonna Work. Your get the Databases even decrypted.

https://github.com/andreas-mausch/whatsapp-viewer/issues/160#issuecomment-1272603148

ttonin33 avatar Oct 07 '22 08:10 ttonin33

However, it is possible to start an emulator with Android Studio to open the files. For this you need a Emulator with Google API (no Produktion build) and with adb install Whatsapp.apk you install Whatsapp. After that you get with adb root the root rights to read the directory of Whatsapp.

https://developer.android.com/studio/debug/device-file-explorer

Screenshot 2022-10-09 204031

Screenshot 2022-10-09 203410

ttonin33 avatar Oct 09 '22 18:10 ttonin33

is that this key only needed when chat is end to end encrpted? do encryption off need this key?

irvine48 avatar Nov 18 '22 14:11 irvine48

The key file is needed to decrypt the accessible database file (msgstore.db.crypt14). All chats are stored in this file. It is not needed if you take the msgstore.db file directly, but this is only possible with root rights. The end to end encryption only applies to the transport to the recipient but not to the storage on the own cell phone.

is that this key only needed when chat is end to end encrpted?

No

do encryption off need this key?

Yes

ttonin33 avatar Nov 19 '22 18:11 ttonin33