FreeDiskSpaceMethod class
Detection method that checks for unusually high free disk space ratio.
This method calculates the ratio of free disk space to total disk space and flags devices with very high available storage. Emulators often have large virtual disk images with minimal usage, resulting in high free disk space ratios that are uncommon on physical devices with typical app and data usage.
Reliability: Medium (60-75%)
- Good indicator for emulators with large virtual storage
- May have false positives on new or lightly used physical devices
- Some emulators may limit disk space to appear more realistic
Score: 20 points when free disk space ratio is above 95%
Performance: Fast - only checks numeric properties
- Inheritance
-
- Object
- EmulatorDetectionMethod
- FreeDiskSpaceMethod
Constructors
- FreeDiskSpaceMethod({double score = 20, String? reason = "Free disk space unusually high"})
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