ModelEmulatorMethod class
Detection method that checks if the device model contains "sdk_gphone" or "emulator".
This method examines the device's model property to detect emulators. Many Android emulators return "sdk_gphone" or "emulator" as the model value.
Reliability: Medium (70-80%)
- Good indicator for many emulators
- Easy to spoof by modifying device properties
Score: 20 points when model contains "sdk_gphone" or "emulator"
Performance: Fast - only checks string property
- Inheritance
-
- Object
- EmulatorDetectionMethod
- ModelEmulatorMethod
Constructors
- ModelEmulatorMethod({double score = 20, String? reason = "Model indicates emulator"})
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