How yuvrajraghuvanshis/whatsapp-key-database-extractor works
This is a Python utility for extracting WhatsApp’s key and message database from an Android device without root. The main workflow connects over USB or ADB-over-TCP, temporarily uses a legacy WhatsApp version to create an Android backup, unpacks that backup, and saves selected files for the user. Separate utilities can restore the original app or password-protect extracted files. The README documents the overall process; some orchestration calls and extraction details are omitted from the sampled excerpts, so those links are marked unverified or omitted.
Main entry points: wa_kdbe.py Extractor CLI · view_extract.py Backup unpacking · restore_whatsapp.py App restore utility · protect.py Archive protection
Components 17
Device workflow
- Extractor CLI
wa_kdbe.py - Device discovery
helpers/device_serial_id.py - Device validation
helpers/handler.py - Legacy app handling
wa_kdbe.py
Backup extraction
- Backup unpacking
view_extract.py - Android backup
extracted - Extracted files
extracted
Standalone utilities
- App restore utility
restore_whatsapp.py - Archive protection
protect.py
Shared support
- Console and logging
helpers/custom_ci.py
Other components
- User
- Android device
- ADB tools
- Legacy app sources
- Java ABE
- 7-Zip tool
- Screen control
Connections 25
- User → Extractor CLI: starts workflow
README.md - Extractor CLI → Device discovery: selects device
wa_kdbe.py - Device discovery → ADB tools: runs commands
helpers/device_serial_id.py - ADB tools → Android device: connects to
- Extractor CLI → Device validation: checks device
wa_kdbe.py - Device validation → Legacy app sources: downloads app
helpers/handler.py - Device validation → ADB tools: queries device
helpers/handler.py - Extractor CLI → Legacy app handling: runs backup flow
wa_kdbe.py - Legacy app handling → Android device: backs up app data
README.md - Legacy app handling → Android backup: creates backup
README.md - Extractor CLI → Backup unpacking: offers extraction
README.md - Backup unpacking → Android backup: reads backup
view_extract.py - Backup unpacking → Java ABE: unpacks archive
view_extract.py - Backup unpacking → Extracted files: writes selected files
view_extract.py - User → App restore utility: runs standalone
README.md - App restore utility → Device discovery: selects device
restore_whatsapp.py - App restore utility → Android device: reinstalls original app
restore_whatsapp.py - User → Archive protection: runs standalone
README.md - Archive protection → Extracted files: archives extracted data
protect.py - Archive protection → 7-Zip tool: compresses or extracts
protect.py - Extractor CLI → Screen control: optionally launches
- Extractor CLI → Console and logging: reports progress
wa_kdbe.py - Backup unpacking → Console and logging: reports progress
view_extract.py - Archive protection → Console and logging: reports progress
protect.py - App restore utility → Console and logging: reports progress
restore_whatsapp.py