Skip to content
pubscout

device_trust

3.1.0, released 3 months ago by mikoloyapps.com

Heuristic device integrity signals for root, jailbreak, emulator, Frida, and debugger detection.

WASM-ready
$ flutter pub add device_trust
Source repository

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.

Works with

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