FLUTTER ECOSYSTEM

safe_device

This package helps to detect iOS Simulator, Android Emulator and Debug Mode. This package also detects MockLocation/Fake GPS location on Android Device. Also check device is real or not.

safe_device cover
Latest version
1.4.1
30-day downloads
149K
Likes
384
Pub points
140

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

Overview

The safe_device package helps developers detect whether an app is running on a simulated environment such as the iOS Simulator, Android Emulator, or in debug mode. It also identifies fake GPS locations on Android devices and determines if the device is genuine. This enhances security by preventing unauthorized access from emulated or spoofed environments. The package is useful for applications requiring strong device integrity checks, especially in financial or sensitive data contexts.

Use cases
  • Securing apps against emulator usage
  • Detecting fake GPS locations
  • Preventing debug mode exploitation
  • Validating real device presence
  • Enhancing fraud detection
  • Protecting sensitive data access
Key features
  • Detects iOS Simulator
  • Identifies Android Emulator
  • Checks for Debug Mode
  • Detects MockLocation/Fake GPS
  • Verifies device authenticity
  • Lightweight and platform-agnostic
Suitable for
  • Security-focused applications
  • Financial or banking apps
  • Fraud prevention systems
  • Apps requiring device integrity
  • Developers prioritizing runtime safety
  • Mobile apps with high-security requirements
Considerations
  • Limited to Android and iOS platforms
  • Does not prevent all forms of spoofing
  • Relies on device-specific indicators
  • May trigger false positives on rooted devices
  • Requires proper permission handling on Android
Supported platformsAndroidiOS

Install package

flutter pub add safe_device

Categories

Source repository

Related projects