-
Notifications
You must be signed in to change notification settings - Fork 87
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
Android 12: Export: wa.db - Contacts are not exported. #63
Comments
Hi. Would you be able to find where the contact names came from? |
This is normal.
I can reproduce the problem. But further investigations are needed. |
The The contacts app on my Android, synced with Gmail contacts, contains all contacts used in the WhatsApp conversations. |
I've tried several ways of trying to force whatsapp to refresh the contact list. But none of those options caused the contacts table to get populated. So i took another approach. I downloaded all contacts from Gmail in After that I wrote a Powershell script to sanitize the phonenumbers and replace all occurences with the actual contactname in the generated |
No sure if WhatsApp changed the database structure again. Any more people encounter this issue? |
In the meantime I have a script (Github gist) to fix the problem using exported Gmail .vcf contacts to replace contactnames after running the Whatsapp Chat Exporter. |
Weird. I just did a new export from WhatsApp 2.23.25.3. The |
I can confirm same behavior reported by the op happens here with a decrypted wa.db.crypt15 : only populated tables seems to be wa_trusted_contacts and wa_trusted_contacts_send. |
The issue also happens here with an export from version |
Hi, I also see the issue on WhatsApp 2.24.8.85 on Android: the |
Using a WhatsApp database I exported a few years ago (mid 2021), I am experiencing the same issue. Looking at the |
Hi there, I think I have figured out what is going on. I tested this on a number of WhatsApp versions dating from 2022 to the latest version of 2024 (v2.22.xx, 2.23.xx, 2.24.xx). The issue is that WhatsApp itself does not fully backup wa.db. That is, the "original" unencrypted wa.db found in the WhatsApp data folder (/data/data/com.whatsapp/databases/ if one has root access) is not the file that gets encrypted to /sdcard/Android/media/com.whatsapp/WhatsApp/Backup/wa.db.crypt15 (or wa.db.crypt14). Whereas the original unencrypted wa.db file will have the wa_contacts table populated, the backup wa.db.crypt15 will not. The same goes for several other tables too, e.g. wa_address_book, wa_vnames, wa_group_admin_settings, etc. -- they are all populated in /data/data/com.whatsapp/databases/wa.db, but upon backup they are all blank within wa.db.crypt15. Perhaps WhatsApp doesn't backup the contact address book so that a new installation of WhatsApp will sync with the new phone's address book rather than potentially create conflicts. In any case, the end result is that there is sadly nothing that @KnugiHK can do about this issue, as the underlying information is not backed up by WhatsApp itself, so the information is inherently missing in the wa.db.crypt15 file. A workaround to this would be to export your contact details to a CSV file from your own contacts program (e.g. Outlook). Then with the decrypted wa.db.crypt15 backup file, you can import that data into the wa_contacts table using a program like DB Browser for SQLite). The issue is that you'll need to convert your contact data into the format that the wa_contacts table would expect (e.g. the phone number (555) 555-6666 would be transformed to |
Hey! Thanks for your research! Another option could be importing contacts from Google Contacts, which was implemented in #106 and will be available in the next release. Unfortunately, I don't have access to a rooted Android phone at the moment, so I can't investigate the issue further. However, based on your research, it seems that if the database is extracted directly with root permissions, this issue doesn't occur. |
I have a OnePlus Android 12 Phone.
Using
WhatsApp-Key-DB-Extractor
I can successfully extract the whatsapp databases. My whatsapp backups are not password protected.However, after explorer the
wa.db
with DB Browser for SqlLite i see that thewa_contacts
table remains empty.Other tables like
wa_vnames
,wa_contact_storage_usage
,wa_biz_profiles
in this sqlite are populatedAlso in Whatsapp on the device all contacts in the Whatsapp conversation have their correct names.
FWIW:
When i have to confirm the permission for the backup and press Enter afterwards, i can give the permissions, but i can't open the app because of the
Your phone data is inaccurate. Adjust your clock and try again
error, - even though the system time is correct - that is caused by the older version of WhatsApp.Whatsapp Chat Exporter:
Extracted files:
WhatsAppKeyDBExtract output:
The text was updated successfully, but these errors were encountered: