Security Device

Utility to check the Device is Security or not.

isSecurityDevice

Quickly confirm that the device is security, just use isSecurityDevice.

isJailbreakOrRoot

Android: check is rooted using RootBeer

iOS: check is jailbroken(JB) using IOSSecuritySuite

isDeveloperMode

Android: ADB over USB is enabled.

iOS: is Run In Emulator.

Getting Started

In the pubspec.yaml of your flutter project, add the following dependency:

dependencies:
  ...
  security_device: ^1.1.0

Import it:

import 'package:security_device/security_device.dart';

Using it

Future<void> getSecurityDeviceInfo() async {
  try {
    isSecurityDevice = await SecurityDevice.isSecurityDevice;
    isJailbreakOrRoot = await SecurityDevice.isJailbreakOrRoot;
    isDeveloperMode = await SecurityDevice.isDeveloperMode;
  } catch (error) {
    debugPrint('SecurityDevice catch error:${error.toString()}');
  }
}

Libraries

security_device