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

Runtime device-security checks for Flutter apps: root, jailbreak, emulator, debugger and mock-location detection, plus screen capture protection.

Changelog #

All notable changes to this package are documented here. The format follows Keep a Changelog, and the package follows Semantic Versioning. Until 1.0.0, minor versions may contain breaking changes.

0.1.0 #

First release.

Detection #

  • Root (Android), jailbreak (iOS), emulator / simulator, debugger and mock location checks, through DeviceShield.check() or one method per check.
  • Every result lists the signals that fired, each with a strength. A check is detected with at least one strong signal or two medium ones. Weak signals (common on custom ROMs, emulators and debug builds) never decide the result on their own.
  • A check that can't run returns CheckStatus.failed; nothing throws. A check that doesn't exist on the platform returns CheckStatus.notApplicable, including jailbreak detection on the iOS Simulator.

Screen #

  • DeviceShield.screenshots (Android 14+ and iOS) and DeviceShield.screenRecordingChanges / isScreenRecorded() (iOS).
  • setScreenshotProtection and setAppSwitcherProtection. On Android both use FLAG_SECURE, tracked separately and re-applied after configuration changes. iOS screenshot protection is experimental until verified on a device.

Platform #

  • Android checks run on a background thread.
  • Android 14+: declares DETECT_SCREEN_CAPTURE, required for screenshot detection.
  • Minimum Android API 21, iOS 15.0.
0
likes
160
points
48
downloads
screenshot

Documentation

Documentation
API reference

Publisher

verified publishergeekyants.com

Weekly Downloads

Runtime device-security checks for Flutter apps: root, jailbreak, emulator, debugger and mock-location detection, plus screen capture protection.

Homepage
Repository (GitHub)
View/report issues

Topics

#security #root-detection #jailbreak-detection #emulator-detection #screenshot

License

BSD-3-Clause (license)

Dependencies

flutter

More

Packages that depend on device_shield

Packages that implement device_shield