Flutter Android app that helps prevent overusing mobile data by monitoring connectivity and enforcing WiFi-only behavior when data usage crosses a threshold in a rolling 3-minute window.
- Detects active connection type (WiFi vs mobile data)
- Tracks data usage events in a rolling 3-minute window
- Activates WiFi-only mode when usage exceeds a configurable threshold
- Persists threshold and recent usage history locally
- Includes custom launcher icon and release-ready Android build setup
- Flutter / Dart
connectivity_plusfor network state monitoringshared_preferencesfor local persistenceproviderfor state management
lib/main.dart: main UI and status dashboardlib/services/data_monitor_service.dart: connectivity and data limit logicandroid/app/src/main/AndroidManifest.xml: Android permissions and app label
flutter pub get
flutter analyze
flutter runflutter build apk --releaseOutput APK:
build/app/outputs/flutter-apk/app-release.apk
Inside the app:
- Open the
Settingssection - Enter threshold in MB
- Tap
Update Threshold
This app can manage connectivity behavior and data usage rules within app logic, but Flutter alone cannot globally block all phone-wide mobile data for other apps at OS level.
- GitHub:
https://github.com/studio1303/mobile-data-protector - Release:
https://github.com/studio1303/mobile-data-protector/releases/tag/v1.0.0