Skip to content
pubscout

flutter_tamper_detector

0.6.0, released 5 months ago by deebx.tech

Detect rooting, hooking tools, emulators, debug mode and store installation on Android/iOS.

$ flutter pub add flutter_tamper_detector
Source repository

What it does

Provides methods to check if the device is rooted, running on an emulator, using hooking frameworks like Frida or Xposed, or if the app is in debug mode. It can also enforce security actions such as exiting the process or uninstalling the app.

AI-written summary of version 0.6.0, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need to protect a Flutter app from tampering or running on compromised devices
  • You want to enforce security policies like terminating the app on rooted or emulated environments

Skip it when

  • You only need basic device info without security checks
  • You target platforms other than Android/iOS

Strengths

  • Simple API with async boolean checks
  • Built‑in options to exit or uninstall the app automatically
  • Supports screenshot prevention and recent‑apps hiding

Weaknesses

  • Limited to Android and iOS only
  • Security checks can be bypassed by advanced attackers
  • No code‑generation or declarative integration

Setup

Kind
Plugin (native code)
Effort
Low
Code generation
No
Direct dependencies
1

Add the package to pubspec, run flutter pub get, and for Android add ProGuard/R8 keep rules as documented; iOS requires no extra steps.

import 'package:flutter_tamper_detector/flutter_tamper_detector.dart';

Future<void> checkSecurity() async {
  if (await FlutterTamperDetector.isRooted(exitProcessIfTrue: true)) {
    // app will exit automatically
  }
}

Alternatives

Packages that do the same job and could replace flutter_tamper_detector.

Works with

Packages commonly used together with flutter_tamper_detector: ones it builds on, ones built on it, and its own family.