Jailbreak class
Jailbreak 是一个封装类,用于检测当前设备是否处于 非受信任状态(如越狱或 root),常用于移动端安全防护场景。
使用 flutter_root_jailbreak
插件实现平台无感知的越狱/root 检测。
适用平台:
- iOS:检测是否越狱(Jailbroken)
- Android:检测是否已 Root
注意:此检测机制为启发式方法,不能 100% 防止高级隐藏(如 Magisk Hide) 推荐搭配设备完整性校验(如 Play Integrity API 或 iOS DeviceCheck)使用。
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
isDeviceCompromised(
) → Future< bool> - 异步方法:检测当前设备是否被破解(越狱或 root)
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited