List of utility methods to do Emulator Check
void | setIsEmulator() Sets the status whether the test is run on an emulator or not. isEmulator = android.os.Build.MODEL.equals("google_sdk");
|
boolean | isEmulator() is Emulator return ("google_sdk".equals(Build.PRODUCT) || "sdk" .equals(Build.PRODUCT)); |
boolean | isEmulator() is Emulator String product = Build.PRODUCT; return (product != null && (product.equals("sdk") || product.contains("_sdk") || product.contains("sdk_"))); |