MEmuDetectionMethod class

Detection method specifically designed to identify MEmu emulator.

This method uses a two-pronged approach to detect MEmu:

  1. File-based detection: Checks for MEmu-specific files and directories
  2. Property-based detection: Examines device properties for MEmu signatures

File Detection:

  • MEmu library files (libmemu*.so)
  • MEmu binaries (memu, memud, memuinit)
  • MEmu app directories and packages (com.microvirt.memu*)

Property Detection:

  • "memu" in manufacturer, brand, model, device, product, hardware
  • "Microvirt" as exact manufacturer name (MEmu developer)
  • "MEmu" as exact model name

Reliability: Very High (90-95%)

  • Comprehensive detection covering both files and properties
  • Low false positive rate due to specific MEmu signatures
  • Some advanced MEmu versions may hide these indicators

Score: 30 points when MEmu is detected

Performance: Asynchronous file operations to avoid blocking UI thread

Inheritance

Constructors

MEmuDetectionMethod.new({double score = 30, String? reason = "MEmu emulator 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