Emulator check
More information, including the motivation for emulator detection can be found in this article:
The emulator checks are done using OS Configuration. For example:
- Default
- Reporting
safeToRun(buildSafeToRunCheckList {
add {
// The default android emulator
banAvdEmulatorCheck()
}
add {
// Ban genymotion emulators
banGenymotionEmulatorCheck()
}
add {
// Ban bluestacks
banBluestacksEmulatorCheck()
}
})
```kotlin osDetectionCheck(banAvdEmulator()).error() ```
Here are the checks supported so far:
// The default android emulator
banAvdEmulator()
// Ban genymotion emulators
banGenymotionEmulator()
// Ban bluestacks
banBluestacksEmulator()