Skip to content

studio1303/mobile-data-protector

Repository files navigation

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

About

The Mobile Data Protector app monitors mobile data usage and enforces WiFi-only mode when usage exceeds a threshold over a 3-minute window. This protects the exhausting of mobile data on limited plans.

Topics

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors