The WhatsApp lib
Yowsup is no longer updated. There is no WhatsApp library available, but many people need it. I will gradually open source the library I have used for a long time. This library is written in Java. Will include all features except registration. Because the registration part is not in the scope of this open source.
First of all, you need to have an account. This account can be exported from the mobile phone or simulator by using tools. What you export is a database file, which contains all the necessary information of the account. The phone and emulator must be root, otherwise they cannot be exported. The tools will be open source
-
Use the emulator or mobile phone to register a WhatsApp account. The emulator and mobile phone need to have root permission.
-
After successful registration, install the extraction tool (APK) to extract account information. The extraction tool is open source and can be modified by yourself.
-
Log in with the extracted account information.
- Waiting to submit login part of the source code. (done)
- Send text message ( ing..)
Tool
- Compiling APK with Android studio
- Install APK to your emulator or mobile phone (need root)
- Export database
- Copy the database to the out directory, and log in with Gorgeous.
Gorgeous
-
Open the Gorgeous project with IntelliJ idea and you can compile it directly.
-
Copy axolotl.db to the out directory.
-
click login button, then you can login with the default account, receive server response.
Tool 这是一个安卓工程,用来从手机或者模拟器导出 账号数据,导出的账号数据可以使用 Gorgeous 登录。
- 使用android studio 编译tool 工程
- 将编译出的 apk 安装到手机或者模拟器上(需要有root 权限)
- 打开apk, 直接点击导出就可以生成数据库文件。
Gorgeous
-
使用 IntelliJ idea 打开 Gorgeous 工程,可以直接启动编译
-
将测试数据库 axolotl.db 拷贝到out 目录下。或者也可以修改demo代码 加载指定位置的数据库。
-
可能需要修改测试代码,指定socket 连接的代理,否则某些地方会连接不上服务器, 编译成功之后点击 界面上的登录即可。
Gorgeous is licensed under the GPLv3+: http://www.gnu.org/licenses/gpl-3.0.html.