reading whatsapp messages

天大地大妈咪最大 提交于 2019-12-03 06:06:59

问题


I want to create an android app which reads inbox as well as whatsapp messages. I want to make a backup kind of thing. Though there is option for doing so in whatsapp. But I want to read the messages and then back them up from my app. I got to know that whatsapp stores messages in encrypted format in the file system. So can anyone please tell me how to read that encrypted file.


回答1:


WhatsApp makes a chat backup everyday at 4 AM on your SD Card. This is a single database encrypted with an AES key. Since it is on the external storage, your app can read it if you have access to the external storage.

You can easily decrypt this database (there is a paper available on this online).

However, this will only give you updated chats once every 24 hours.

If you want more realtime updates, your device has to be rooted, and you will need a completely new parser, as on the internal storage the chats are stored in more than one database.




回答2:


  1. check out what is the decryption key of whatsapp ( you have to decompile it)
  2. read that file content
  3. decrypt the content with decryption key

Remark, with rooted phone you can have everywhere access, others maybe need JNI to do some tricks

upvote, if helps ! :)




回答3:


use Whatsapp Xtract 2.0 tool to decrypt the whatsapp databases and convert it to HTML.

Link for download & discussion on xda forum



来源:https://stackoverflow.com/questions/15494757/reading-whatsapp-messages

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!