PixelFeaturesMethod class

Detection method that checks if the device has Pixel-exclusive features.

This method examines the device's brand and system features to detect emulators. Many Android emulators return "google" as the brand and have Pixel-exclusive features.

Reliability: Medium (70-80%)

  • Good indicator for many emulators
  • Some physical devices may have custom rom with Pixel-exclusive features
  • Easy to spoof by modifying device properties

Score: 15 points when brand is "google" and system features contain "pixel"

Performance: Fast - only checks string properties

Inheritance

Constructors

PixelFeaturesMethod({double score = 15, String? reason = "Pixel-exclusive features detected on non-Pixel device"})

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