HardwareEmulatorMethod class

Detection method that checks hardware and board information for emulator indicators.

This method examines the device's hardware and board properties to identify common emulator signatures. It looks for:

  • "goldfish" in hardware or board (Android emulator)
  • "ranchu" in hardware or board (Android emulator)

Reliability: Very High (95-98%)

  • Extremely reliable for detecting standard Android emulators
  • Low false positive rate as these values are hard to spoof
  • Some custom emulators may use different hardware identifiers

Score: 20 points when emulator hardware is detected

Performance: Fast - only checks string properties

Inheritance

Constructors

HardwareEmulatorMethod({double score = 20, String? reason = "Hardware or board indicates emulator"})

Properties

hashCode int
The hash code for this object.
no setterinherited
reason String?
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
score double
finalinherited

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