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;