security_device 1.2.0 copy "security_device: ^1.2.0" to clipboard
security_device: ^1.2.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.2.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
pub points
50%
popularity

Publisher

verified publisherstevenhsiao.dev

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

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on security_device