trust_fall 1.0.4 copy "trust_fall: ^1.0.4" to clipboard
trust_fall: ^1.0.4 copied to clipboard

A Flutter plugin for detecting the trust fall of the device(Jailbroken, root, emulator and mock location detection).

trust_fall #

A Flutter plugin for detecting the trust fall of the device(Jailbroken, root, emulator and mock location detection).

Uses RootBeer for Android root detection and DTTJailbreakDetection for iOS jailbreak detection. Inspired by jail-monkey and this blog article

Getting Started #

In your flutter project add the dependency:

dependencies:
  ...
  trust_fall: ^1.0.4
copied to clipboard

Usage #

Importing package

import 'package:trust_fall/trust_fall.dart';
copied to clipboard

Using it

Checks whether device JailBroken on iOS/Android?

bool isJailBroken = await TrustFall.isJailBroken;
copied to clipboard

Checks whether device is real or emulator

bool isRealDevice = await TrustFall.isRealDevice;
copied to clipboard

Can this device mock location - no need to root!

bool canMockLocation = await TrustFall.canMockLocation;
copied to clipboard

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

bool isOnExternalStorage = await TrustFall.isOnExternalStorage;
copied to clipboard

Check if device violates any of the above

bool isTrustFall = await TrustFall.isTrustFall;
copied to clipboard

Note: #

Mock location detection

  • Android - Location permission needs to be granted in app in order to detect mock location properly
  • iOS - For now we are checking if device is Jail Broken or if it's not real device. There is no strong detection of mock location in iOS (Open the PR if you have better way for mock location detection in iOS)

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

88
likes
35
points
98
downloads

Publisher

unverified uploader

Weekly Downloads

2024.10.02 - 2025.04.16

A Flutter plugin for detecting the trust fall of the device(Jailbroken, root, emulator and mock location detection).

Repository (GitHub)

License

MIT (license)

Dependencies

flutter

More

Packages that depend on trust_fall