How harshpoonia001/brainpal works
BrainPal appears to be an Android digital-wellbeing app centered on tracking reel use and presenting wellbeing statistics. The likely user-to-result path is accessibility-based activity tracking, persisted statistics, then a dashboard; a floating overlay is another apparent user-facing feature. The source excerpts contain no application code and there is no README, so these connections are shown as dashed, unverified relationships. Component roles are inferred from the file tree; exact runtime behavior and wiring could not be confirmed.
Main entry points: BrainPalDatabase.kt App database · ReelRepository.kt Reel repository · ReelTrackerAccessibilityService.kt Accessibility tracker · FloatingOverlayService.kt Overlay service
Components 16
Android app
- Main activity
app/src/main/java/com/example/MainActivity.kt - Application setup
app/src/main/java/com/example/BrainPalApplication.kt
Usage tracking
- Accessibility tracker
app/src/main/java/com/example/service/ReelTrackerAccessibilityService.kt - Overlay service
app/src/main/java/com/example/service/FloatingOverlayService.kt
Statistics storage
- Reel repository
app/src/main/java/com/example/data/ReelRepository.kt - Statistics DAO
app/src/main/java/com/example/data/ReelStatsDao.kt - App database
app/src/main/java/com/example/data/BrainPalDatabase.kt - Brain state
app/src/main/java/com/example/data/BrainState.kt - Daily reel stats
app/src/main/java/com/example/data/DailyReelStatsEntity.kt - Weekly report
app/src/main/java/com/example/data/WeeklyReportEntity.kt
User experience
- Overlay view
app/src/main/java/com/example/ui/overlay/DynamicIslandOverlayView.kt - Wellbeing view model
app/src/main/java/com/example/ui/dashboard/WellbeingViewModel.kt - Wellbeing dashboard
app/src/main/java/com/example/ui/dashboard/WellbeingDashboardScreen.kt
Data maintenance
- Database pruning worker
app/src/main/java/com/example/worker/PruneDatabaseWorker.kt
Other components
- User
- Android system
Connections 14
- User → Main activity: opens
- Android system → Accessibility tracker: dispatches events
- Accessibility tracker → Reel repository: records usage
- Reel repository → Statistics DAO: uses
- Statistics DAO → App database: accesses
- App database → Daily reel stats: stores
- App database → Weekly report: stores
- App database → Brain state: stores
- Wellbeing view model → Reel repository: loads statistics
- Wellbeing dashboard → Wellbeing view model: presents data
- User → Wellbeing dashboard: views
- Overlay service → Overlay view: shows
- Android system → Overlay service: hosts
- Android system → Database pruning worker: schedules