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.
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.
- app_device_integrity
Generates device attestation tokens via Apple App Attest and Google Play Integrity.
53Compare - app_integrity_checker
Flutter plugin to verify the integrity of the app and detect tampering at run time.
41Compare