JailbreakCheckTask class
Detects jailbroken or rooted devices and terminates the startup sequence if one is found.
Runs in the StartupPhase.criticalSecurity phase. On detection, SecurityChecker.checkForSecurityIssues throws a SingleJailbreakException or MultiJailbreakException, which is rethrown to halt startup. The check is skipped entirely in kDebugMode.
- Inheritance
-
- Object
- StartupTask
- JailbreakCheckTask
Constructors
- JailbreakCheckTask({required SecurityChecker securityChecker, required AppLogger logger, bool skipInDebug = kDebugMode})
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → StartupTaskId
-
A unique identifier for this task, used for logging and ordering.
no setteroverride
- label → String
-
A short human-readable description shown on the splash screen while this task runs.
no setteroverride
- phase → StartupPhase
-
The startup phase this task belongs to.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- skipInDebug → bool
-
When
true, execute returns early without running the platform check.final
Methods
-
execute(
{void onSubProgress(double subFraction)?}) → Future< void> -
Performs the startup work for this task.
override
-
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