Skip to content

Latest commit

 

History

History
59 lines (39 loc) · 1.58 KB

File metadata and controls

59 lines (39 loc) · 1.58 KB

Mobile Data Protector

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.

Features

  • 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

Tech Stack

  • Flutter / Dart
  • connectivity_plus for network state monitoring
  • shared_preferences for local persistence
  • provider for state management

Project Structure

  • lib/main.dart: main UI and status dashboard
  • lib/services/data_monitor_service.dart: connectivity and data limit logic
  • android/app/src/main/AndroidManifest.xml: Android permissions and app label

Run Locally

flutter pub get
flutter analyze
flutter run

Build Android APK

flutter build apk --release

Output APK:

  • build/app/outputs/flutter-apk/app-release.apk

Configure Threshold

Inside the app:

  1. Open the Settings section
  2. Enter threshold in MB
  3. Tap Update Threshold

Important Limitation

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.

Repository

  • GitHub: https://github.com/studio1303/mobile-data-protector
  • Release: https://github.com/studio1303/mobile-data-protector/releases/tag/v1.0.0