Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support new version of WhatsApp Android database (no "raw_string_jid" column in "chart_view" view) #2326

Closed
lfcnassif opened this issue Oct 1, 2024 · 3 comments · Fixed by #2327
Assignees

Comments

@lfcnassif
Copy link
Member

lfcnassif commented Oct 1, 2024

Today a police from MG state reported a WhatsApp parsing error caused by the absence of raw_string_jid column. He updated the application on the device to the latest version before extracting the database. Another more technical user from SP police reported the database schema changed. Seems we need to support a new database schema...

@wladimirleite
Copy link
Member

This is somewhat critical. I can take a look ok this, unless someone is already investigating, at least to check if the changes were minor or it is a completely new schema.

@lfcnassif
Copy link
Member Author

Thank you @wladimirleite! I just got 1 sample from the user, I still didn't take a look, I can share it with you tomorrow.

@lfcnassif lfcnassif changed the title Support new version of WhatsApp Support possible new version of WhatsApp database Oct 1, 2024
@wladimirleite wladimirleite changed the title Support possible new version of WhatsApp database Support possible new version of WhatsApp Android database Oct 1, 2024
@wladimirleite wladimirleite self-assigned this Oct 1, 2024
@wladimirleite wladimirleite changed the title Support possible new version of WhatsApp Android database Support new version of WhatsApp Android database (no "raw_string_jid" column in "chart_view" view) Oct 1, 2024
@wladimirleite
Copy link
Member

It turned out to be something simple.
We were using a view ("chat_view") instead of reading "chat" and "jid" tables directly.
The view was changed (there is no "raw_string_jid" column now), but not the tables themselves.
In general, I think it is better to avoid using views when possible.
I am testing with more samples, but the fix is very simple, it should work fine both with old and new databases.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants