device_trust
3.1.0, released 3 months ago by mikoloyapps.com
Heuristic device integrity signals for root, jailbreak, emulator, Frida, and debugger detection.
What it does
Provides multi-signal device integrity reports for Android and iOS using native Kotlin/C++ and Swift/Objective-C++. Detects compromised states such as root, jailbreak, emulators, hooking frameworks like Frida, and attached debuggers without third-party SDKs.
AI-written summary of version 3.1.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to detect root or jailbreak status before allowing sensitive actions in your app.
- You want to identify emulators, debuggers, or hooking frameworks like Frida on Android and iOS.
- You want native device integrity checks without relying on heavy third-party SDKs.
Skip it when
- You require 100% foolproof tamper resistance, as heuristic checks can be bypassed by advanced cloaking tools.
- Your project targets operating systems other than Android and iOS.
Strengths
- Fast execution targeting 1 to 20 milliseconds total time.
- Pure platform code with no external third-party SDK dependencies.
- Supports both CocoaPods and Swift Package Manager on iOS.
Weaknesses
- Relies on heuristics which can be bypassed by advanced root-cloaking or stealth tools.
- Requires manual platform-specific configuration like application query schemes on iOS for full functionality.
Setup
- Kind
- Plugin (native code)
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 1
Add the dependency to pubspec.yaml. For iOS jailbreak path checks, add application query schemes (such as cydia and sileo) to Info.plist under LSApplicationQueriesSchemes.
import 'package:device_trust/device_trust.dart';
Future<void> checkDeviceTrust() async {
final report = await DeviceTrust.getReport();
if (report.rootedOrJailbroken || report.emulator) {
print('Device integrity compromised');
}
}Alternatives
Packages that do the same job and could replace device_trust.
- root_checker_plus
Flutter plugin for Android root detection and iOS jailbreak detection.
67Compare - device_safety_info
Provides root, jailbreak, debugger, screenshot, VPN and other security checks for Flutter apps.
82Compare - flutter_jailbreak_detection_plus
Detect if an Android device is rooted or an iOS device is jailbroken.
78Compare - flutter_root_jailbreak_checker
Detects root access on Android and jailbreak on iOS devices.
61Compare
Works with
Packages commonly used together with device_trust: ones it builds on, ones built on it, and its own family.