package com.smartdevicelink.test.util;

import android.os.Build;

public class DeviceUtil {
    public static boolean isEmulator() {
        return Build.FINGERPRINT.startsWith("generic")
                || Build.FINGERPRINT.startsWith("unknown")
                || Build.MODEL.contains("google_sdk")
                || Build.MODEL.contains("Emulator")
                || Build.MODEL.contains("Android SDK built for")
                || (Build.BRAND.startsWith("generic") && Build.DEVICE.startsWith("generic"))
                || (Build.BRAND.startsWith("Android") && Build.DEVICE.startsWith("generic"))
                || (Build.PRODUCT != null && Build.PRODUCT.startsWith("sdk_google_phone"))
                || "google_sdk".equals(Build.PRODUCT);
    }
}
package com.smartdevicelink.test.util;

import android.os.Build;

public class DeviceUtil {
    public static boolean isEmulator() {
        return Build.FINGERPRINT.startsWith("generic")
                || Build.FINGERPRINT.startsWith("unknown")
                || Build.MODEL.contains("google_sdk")
                || Build.MODEL.contains("Emulator")
                || Build.MODEL.contains("Android SDK built for")
                || Build.MANUFACTURER.contains("Genymotion")
                || (Build.BRAND.startsWith("generic") && Build.DEVICE.startsWith("generic"))
                || (Build.BRAND.startsWith("Android") && Build.DEVICE.startsWith("generic"))
                || (Build.PRODUCT != null && Build.PRODUCT.startsWith("sdk_google_phone"))
                || "google_sdk".equals(Build.PRODUCT);
    }
}
Add Genymotion to isEmulator() method