ufukhawk / safe_device

MIT License
46 stars 50 forks source link

safe_device (Null-Safety)

Safe Device

Safe Device

Flutter (Null-Safety) Jailbroken, root, emulator and mock location detection.

Getting Started

In your flutter project add the dependency:

dependencies:
...
  safe_device: ^1.1.9

Usage

Importing package

import 'package:safe_device/safe_device.dart';

Using it

Checks whether device JailBroken on iOS/Android?

bool isJailBroken = await SafeDevice.isJailBroken;

Checks whether device is real or emulator

bool isRealDevice = await SafeDevice.isRealDevice;

Can this device mock location - no need to root!

bool isMockLocation = await SafeDevice.isMockLocation;

(ANDROID ONLY) Check if application is running on external storage

bool isOnExternalStorage = await SafeDevice.isOnExternalStorage;

Check if device violates any of the above

bool isSafeDevice = await SafeDevice.isSafeDevice;

(ANDROID ONLY) Check if development Options is enable on device

bool isDevelopmentModeEnable = await SafeDevice.isDevelopmentModeEnable;

Note:

Mock location detection

DevelopmentMode

❗Since emulators are usually rooted, you might want to bypass these checks during development. Unless you're keen on constant false alarms ⏰

Flutter Puff Image to PDF

Flutter Xam Shoe Pro eCommerce + Apple Watch

Flutter Xam Shoe Commerce App - Flutter

Flutter Login Ui Kit in Flutter 2.0 (Desktop,Web, iOS, Android)

Flutter Login Ui Kit in Flutter 2.0 (Desktop,Web, iOS, Android)

Govo Travel Application - Flutter (Android & iOS)

DellyShop eCommerce Application - Flutter (Android & iOS)

Xamarin XamUI Login Pages UI Kit 2 | Xamarin Forms

Xamarin XamUI Login Pages UI Kit 2 | Xamarin Forms