title: Detect if ADB server is running on Android?
body: <p>I am trying to detect if the <code>adb server</code> is running on the Android device for part of an anti-cheating implementation for my free game.</p>
  
  <p>Specifically, I want to stop use of <code>adb shell input tap x,y</code>, since the game is a competitive multiplayer puzzle game.</p>
  
  <p>Things I have tried:</p>
  
  <ol>
  <li><p>Using battery info I can detect if USB is plugged in.  Well, that is also a legit use.</p></li>
  <li><p>Using <code>Settings.Secure</code> or <code>Settings.Global</code>, I can query <code>ADB_ENABLED</code>, but that always returns <code>1</code> if adb is enabled.  It DOES NOT take into account adb connected or not!</p></li>
  <li><p>Querying all system services, but I cannot see anything that looks like an adb service.</p></li>
  </ol>
  
  <p>At this point, I am out of ideas.  Hopefully someone else knows how to do this?</p>