root_jailbreak_guard 1.0.0 copy "root_jailbreak_guard: ^1.0.0" to clipboard
root_jailbreak_guard: ^1.0.0 copied to clipboard

Flutter jailbreak and root detection plugin with AGP 8 support, enhanced security checks, and active maintenance. Forked from flutter_jailbreak_detection.

root_jailbreak_guard #

Flutter plugin to detect jailbroken iOS devices and rooted Android devices.

This package is a maintained fork of flutter_jailbreak_detection, which has not received a pub.dev release since 2022 despite ongoing community fixes. The original project lives at jeroentrappers/flutter_jailbreak_detection.

Why this fork? #

Issue Original (flutter_jailbreak_detection) This package (root_jailbreak_guard)
pub.dev status Stuck at 1.10.0 (2022) Actively maintained
Android Gradle Plugin Breaks on AGP 8+ without manual patches (#72) AGP 8.2+ with explicit namespace
Android root check isRooted only isRooted + isRootedWithBusyBoxCheck
iOS jailbreak check amIJailbroken() only amIJailbroken() + debugger detection
iOS developer mode Simulator only Simulator + debugger attached
RootBeer dependency JitPack com.github.scottyab:rootbeer:0.1.0 Maven Central rootbeer-lib:0.1.2

Native libraries #

Installation #

dependencies:
  root_jailbreak_guard: ^1.0.0

Usage #

import 'package:root_jailbreak_guard/root_jailbreak_guard.dart';

final bool isCompromised = await RootJailbreakGuard.jailbroken;
final bool isDevMode = await RootJailbreakGuard.developerMode;

Both getters default to true when the native platform call fails (fail-secure).

iOS configuration #

Add URL schemes to your app's ios/Runner/Info.plist so IOSSecuritySuite can detect jailbreak-related apps:

<key>LSApplicationQueriesSchemes</key>
<array>
  <string>cydia</string>
</array>

Migration from flutter_jailbreak_detection #

// Before
import 'package:flutter_jailbreak_detection/flutter_jailbreak_detection.dart';
await FlutterJailbreakDetection.jailbroken;

// After
import 'package:root_jailbreak_guard/root_jailbreak_guard.dart';
await RootJailbreakGuard.jailbroken;

Use in DevGuard #

This plugin is intended as the device-integrity layer for the DevGuard Flutter plugin:

dependencies:
  root_jailbreak_guard: ^1.0.0

Attribution #

Derived from flutter_jailbreak_detection by Jeroen Trappers / Appmire, published under the BSD 3-Clause License.

License #

BSD 3-Clause License. See LICENSE.

0
likes
150
points
84
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Flutter jailbreak and root detection plugin with AGP 8 support, enhanced security checks, and active maintenance. Forked from flutter_jailbreak_detection.

Repository (GitHub)
View/report issues

License

BSD-3-Clause (license)

Dependencies

flutter

More

Packages that depend on root_jailbreak_guard

Packages that implement root_jailbreak_guard