EmulatorFilesMethod class

Detection method that checks for emulator-specific files and directories.

This method looks for files and directories that are commonly present in Android emulators but not on physical devices. It checks for:

  • QEMU-related files (qemu_pipe, qemud, qemu-props, etc.)
  • Android emulator system files (gralloc.goldfish.so, gralloc.ranchu.so)
  • Genymotion emulator files (genyd, baseband_genyd)

Reliability: High (90-95%)

  • Very reliable for detecting standard Android emulators
  • May have false positives on rooted devices with emulator files
  • Some emulators may hide these files to avoid detection

Score: 25 points when emulator files are detected

Performance: Asynchronous file operations to avoid blocking UI thread

Inheritance

Constructors

EmulatorFilesMethod({double score = 25, String? reason = "Emulator-specific files detected"})

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