code: public static boolean isEmulator(){
          return "google_sdk".equals(Build.PRODUCT) ||
                  Build.PRODUCT.contains("sdk_google_phone") ||
                  "sdk".equals(Build.PRODUCT) ||
                  "sdk_x86".equals(Build.PRODUCT) ||
                  "vbox86p".equals(Build.PRODUCT);
      }
docs: Return whether or not the current device is an emulator