title: How to block android apps from being run on Emulators like Nox?
body: <p>I'm having a hard time when trying to block my app from being run on emulators, especially when we talk about Nox Emulator.</p>
  
  <p>I've tried some of the most popular answers about this question, like this one:</p>
  
  <pre><code>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 x86")
              || Build.MANUFACTURER.contains("Genymotion")
              || (Build.BRAND.startsWith("generic") &amp;&amp; Build.DEVICE.startsWith("generic"))
              || "google_sdk".equals(Build.PRODUCT);
  }
  </code></pre>
  
  <p>But it doesn't work.</p>
  
  <p>Is there a "modern way" of blocking android apps from being run on emulators?</p>