Skip to main content

bm_root_jailbreak_sniffer 1.1.6 copy "bm_root_jailbreak_sniffer: ^1.1.6" to clipboard
bm_root_jailbreak_sniffer: ^1.1.6 copied to clipboard

Root detection (Magisk Hide aware) on Android and jailbreak detection on iOS. Fork of root_jailbreak_sniffer with Swift Package Manager support on iOS.

example/lib/main.dart

import 'package:bm_root_jailbreak_sniffer/rjsniffer.dart';
import 'package:flutter/material.dart';

void main() => runApp(const MyApp());

/// Example app showing the results of every check.
class MyApp extends StatefulWidget {
  /// Creates the example app.
  const MyApp({super.key});

  @override
  State<MyApp> createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  bool? _compromised;
  bool? _emulator;
  bool? _debugged;

  @override
  void initState() {
    super.initState();
    _check();
  }

  Future<void> _check() async {
    final compromised = await Rjsniffer.amICompromised();
    final emulator = await Rjsniffer.amIEmulator();
    final debugged = await Rjsniffer.amIDebugged();
    if (!mounted) return;
    setState(() {
      _compromised = compromised;
      _emulator = emulator;
      _debugged = debugged;
    });
  }

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(title: const Text('Root / Jailbreak Sniffer')),
        body: Center(
          child: Column(
            mainAxisSize: MainAxisSize.min,
            children: [
              Text('Compromised: $_compromised'),
              Text('Emulator: $_emulator'),
              Text('Debugged: $_debugged'),
            ],
          ),
        ),
      ),
    );
  }
}
0
likes
160
points
115
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Root detection (Magisk Hide aware) on Android and jailbreak detection on iOS. Fork of root_jailbreak_sniffer with Swift Package Manager support on iOS.

Repository (GitHub)
View/report issues

License

Apache-2.0 (license)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on bm_root_jailbreak_sniffer

Packages that implement bm_root_jailbreak_sniffer