Skip to content
pubscout

flutter_security_checker

3.2.1, released 2 years ago by pravera.me

Checks rooting, jailbreaking, physical device status and correct app installation on Android and iOS.

WASM-ready
$ flutter pub add flutter_security_checker
Source repository

What it does

Provides static getters to determine if the device is rooted or jailbroken, if it is a real device, and if the app was installed from a legitimate store. The checks run natively on each platform.

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

Use it when

  • You need to enforce security policies before allowing sensitive operations
  • You want to detect emulators or debug builds during runtime

Skip it when

  • You need advanced threat detection beyond rooting/jailbreaking
  • You require continuous monitoring or background services beyond simple checks

Strengths

  • Simple API, no code generation, works on both Android and iOS
  • Supports background execution and recent Android SDKs
  • No external dependencies

Weaknesses

  • May return false positives in development environments
  • Limited to rooting/jailbreaking detection, not full security analysis

Setup

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

Add dependency in pubspec and import package; no special permissions required.

import 'package:flutter_security_checker/flutter_security_checker.dart';

Future<void> checkSecurity() async {
  final bool isRooted = await FlutterSecurityChecker.isRooted;
  final bool isRealDevice = await FlutterSecurityChecker.isRealDevice;
  final bool hasCorrectlyInstalled = await FlutterSecurityChecker.hasCorrectlyInstalled;
}

Alternatives

Packages that do the same job and could replace flutter_security_checker.