security_device 1.1.0 copy "security_device: ^1.1.0" to clipboard
security_device: ^1.1.0 copied to clipboard

Utility to check the Device is Security or not, Jailbroken, DeveloperMode.

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()}');
  }
}
2
likes
150
points
43
downloads

Publisher

verified publisherstevenhsiao.dev

Weekly Downloads

Utility to check the Device is Security or not, Jailbroken, DeveloperMode.

Repository (GitHub)

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on security_device