You can use checks like this:
public boolean isGenymotionEmulator(String buildManufacturer) {
return buildManufacturer != null &&
(buildManufacturer.contains("Genymotion") || buildManufacturer.equals("unknown"));
}
public boolean buildModelContainsEmulatorHints(String buildModel) {
return buildModel.startsWith("sdk")
|| "google_sdk".equals(buildModel)
|| buildModel.contains("Emulator")
|| buildModel.contains("Android SDK");
}