搜尋套件、儲存庫與 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 ⏰

所屬分類

原始碼儲存庫

使用此套件的專案

暫無相關資料。