title: Reliable way of detecting whether an Android app is running in 'BlueStacks'
body: <p>I would like to ascertain at run-time inside an Android app whether it is running within the <a href="http://bluestacks.com/" rel="noreferrer">BlueStacks</a> Android emulator. This is so I can modify the way the app runs when running inside BlueStacks.</p>
  
  <p>BlueStacks does not support multi-touch so I want to implement an alternative to the standard pinch-to-zoom functionality my current app has.</p>
  
  <p>E.g.</p>
  
  <pre><code>If (appIsRunningInBlueStacks){
      mySurfaceView.enableMultiTouchAlternatives();
  } else{
      mySurfaceView.enableMultiTouchFeatures();
  }
  </code></pre>
  
  <p>What is a reliable way of ascertaining the value of appIsRunningInBlueStacks?</p>
  
  <p><strong>EDIT Summary of answers to comments on question:</strong></p>
  
  <p>Ben, Taras, thanks for the suggestions. The Build.MODEL etc. values for BlueStacks are:</p>
  
  <ul>
  <li><p>Model: "GT-I9100"</p></li>
  <li><p>Manufacturer: "samsung"</p></li>
  <li><p>Device: "GT-I9100"</p></li>
  <li><p>Product: "GT-I9100"</p></li>
  </ul>
  
  <p>This is the same model number as the Samsung Galaxy SII so it would not be ideal to use this for fear of treating all users with SIIs the same as those on BlueStacks.</p>
  
  <p>CommonsWare, the app continues to run in BlueStacks even with the &lt; uses-feature> for multitouch in the manifest. In fact (also answering iagreen's question)...</p>
  
  <pre><code>packageManager.hasSystemFeature(PackageManager.FEATURE_TOUCHSCREEN_MULTITOUCH_DISTINCT);
  </code></pre>
  
  <p>... returns true! This is to be expected I suppose as the emulator is convinced it is a Samsung Galaxy SII!</p>
  
  <p>Therefore we are still without a way of reliably detecting whether an app is running on BlueStacks without also throwing all Samsung Galaxy SII users in the same bucket. Any other ideas?</p>