flutter_jailbreak_guard 0.1.0 copy "flutter_jailbreak_guard: ^0.1.0" to clipboard
flutter_jailbreak_guard: ^0.1.0 copied to clipboard

Detects jailbroken iOS devices and rooted Android devices. Supports Swift Package Manager and CocoaPods.

flutter_jailbreak_guard #

Detects jailbroken iOS devices and rooted Android devices.

Platform Engine Package manager
iOS 13.0+ IOSSecuritySuite 2.2+ Swift Package Manager, CocoaPods
Android API 24+ RootBeer 0.1.2 Gradle

Usage #

import 'package:flutter/services.dart';
import 'package:flutter_jailbreak_guard/flutter_jailbreak_guard.dart';

Future<bool> isUnsafeDevice() async {
  try {
    return await FlutterJailbreakGuard.isJailbroken;
  } on PlatformException {
    return true;
  }
}

isJailbroken throws PlatformException when the native call fails. The plugin does not choose a fallback value. The app decides whether a failed check blocks the user.

Threading #

  • iOS runs the check on the main thread. IOSSecuritySuite.amIJailbroken() calls UIApplication.shared.canOpenURL.
  • Android runs the check on a background task queue. RootBeer.isRooted reads files and runs su.

iOS URL schemes #

IOSSecuritySuite checks jailbreak app URL schemes with canOpenURL. If the app does not list these schemes in LSApplicationQueriesSchemes, iOS returns false for them. The other checks still run.

0
likes
0
points
91
downloads

Publisher

verified publisherteddyyeung.is-a.dev

Weekly Downloads

Detects jailbroken iOS devices and rooted Android devices. Supports Swift Package Manager and CocoaPods.

Repository (GitHub)
View/report issues

Topics

#security #jailbreak #root-detection #swift-package-manager

License

unknown (license)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on flutter_jailbreak_guard

Packages that implement flutter_jailbreak_guard