How 4nubhav/whatsdeleted works
Main Components
a. Core Application Components:
• MainActivity (Entry point)
• NotificationListener Service
• MediaObserverService
• MsgLogViewerActivity
• Storage Components (Internal & External)
b. External Integrations:
• WhatsApp Application
• Signal Private Messenger
• Android System Notifications
• Android File System
Component Relationships
┌─────────────────────────────────────────────────────────────┐
• User Interface Layer │
• ┌─────────────────┐ ┌────────────────────────┐ │
• MainActivity │──────────▶ │ MsgLogViewerActivity │ │
• ┘ └────────────────────────┘ │
• ┬─────────────────────────────┬──────────────┘
┌───────────────▼─────────────┐ ┌──────────▼──────────────┐
• NotificationListener │ │ MediaObserver │
• Service │ │ Service │
• ┬─────────────┘ └──────────┬──────────────┘
┌───────────────▼─────────────────────────────▼──────────────┐
• Storage Layer │
• ┌─────────────────┐ ┌────────────────────────┐ │
• Internal │ │ External │ │
• Storage │ │ Storage │ │
• (Message Logs) │ │ (Media Files) │ │
• ┘ └────────────────────────┘ │
• ┘
Important Elements to Highlight
a. Data Flow:
• How notifications flow from WhatsApp through the NotificationListener
• Media file monitoring path through MediaObserver
• Storage paths for both messages and media
b. Service Architecture:
• Background services running continuously
• Separation between UI and service layers
Technical Details
• Android-specific components (Services, Activities)
• File system interactions
• Notification listener implementation
• Storage access patterns
Implementation Notes
• Clear separation between notification handling and media observation
• Where user permissions are required
• Backup mechanism for both messages and media