BrandModelMismatchMethod class
Detection method that checks if the device brand and model mismatch with the CPU architecture.
This method examines the device's brand and hardware properties to detect emulators. Many Android emulators return "samsung" as the brand and "x86" as the hardware, which is uncommon on physical devices that typically have specific brand and hardware names.
Reliability: Medium (70-80%)
- Good indicator for many emulators
- Easy to spoof by modifying device properties
Score: 15 points when brand is "samsung" and hardware contains "x86"
Performance: Fast - only checks string properties
- Inheritance
-
- Object
- EmulatorDetectionMethod
- BrandModelMismatchMethod
Constructors
- BrandModelMismatchMethod.new({double score = 15, String? reason = "Brand/model mismatch with CPU architecture"})
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