BootloaderMethod class
Detection method that checks if the device bootloader is "unknown".
This method examines the device's bootloader property to detect emulators. Many Android emulators return "unknown" as the bootloader value, which is uncommon on physical devices that typically have specific bootloader versions.
Reliability: Medium (65-75%)
- Good indicator for many emulators
- Some physical devices may also return "unknown" if bootloader info is unavailable
- Easy to spoof by modifying device properties
Score: 5 points when bootloader is "unknown"
Performance: Fast - only checks string property
- Inheritance
-
- Object
- EmulatorDetectionMethod
- BootloaderMethod
Constructors
- BootloaderMethod({double score = 5, String? reason = "Bootloader is unknown"})
Properties
Methods
-
execute(
) → Future< ({String? reason, double score})> -
Executes the method and returns a score between 0 and 100
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