v1.0.4
trust_fall
一個用於檢測設備信任狀態的 Flutter 插件(越獄、root、模擬器和偽造位置檢測)。
88喜歡 64近 30 天下載35Pub 分數
平台暫無資料
一個用於檢測設備信任狀態的 Flutter 插件(越獄、root、模擬器和偽造位置檢測)。
{"sdk":"flutter"}{"sdk":"flutter"}以下為英文專案原文快照,最新內容請造訪 GitHub。
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
In your flutter project add the dependency:
dependencies:
...
trust_fall: ^1.0.4
import 'package:trust_fall/trust_fall.dart';
Checks whether device JailBroken on iOS/Android?
bool isJailBroken = await TrustFall.isJailBroken;
Checks whether device is real or emulator
bool isRealDevice = await TrustFall.isRealDevice;
Can this device mock location - no need to root!
bool canMockLocation = await TrustFall.canMockLocation;
(ANDROID ONLY) Check if application is running on external storage
bool isOnExternalStorage = await TrustFall.isOnExternalStorage;
Check if device violates any of the above
bool isTrustFall = await TrustFall.isTrustFall;