搜索插件、代码仓与 APP 分类

插件详情v1.0.4

trust_fall

一个用于检测设备信任状态的 Flutter 插件(越狱、root、模拟器和伪造位置检测)。

近 30 天下载
57
喜欢数
88
Pub 分数
35

安装插件

flutter pub add trust_fall

插件介绍

基于插件公开信息、社区数据与项目使用情况整理的选型参考。

TrustFall 是一个 Flutter 插件,旨在检测设备是否受到损害或处于不安全状态。它能够识别越狱或 ROOT 的设备、模拟器环境以及伪造位置服务的存在——这些都是潜在安全风险的常见迹象。通过利用平台特定的检查机制,该插件有助于应用程序在不可信设备上阻止敏感操作的执行。该插件可通过 pub.dev 轻松集成到 Flutter 项目中,特别适用于需要高安全标准的应用程序。

适合场景

  • 保护金融应用
  • 防止移动平台上的欺诈
  • 保护高级内容访问
  • 检测模拟测试环境
  • 在企业应用中强制执行设备完整性

主要特点

  • 越狱/获取root权限检测
  • 模拟器检测
  • 模拟位置检测
  • 跨平台兼容性
  • 与 Flutter 的简单集成

适合对象

  • 高安全性应用
  • 金融和银行应用
  • 企业移动解决方案
  • 包含高级内容的应用程序
  • 测试和开发验证

使用建议

  • 不保证100%的检测准确率
  • 可能在某些设备上触发误报
  • 需要谨慎处理用户隐私
  • 仅限基本设备完整性检查
  • 不能替代全面的安全措施

原始 README

以下为关联源码仓库的 README 原文快照,最新内容请访问源码仓库。

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

Usage

Importing package
import 'package:trust_fall/trust_fall.dart';
Using it

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;

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 ⏰

所属分类

源码仓库

使用此插件的项目

暂无相关数据。