title: Android application must not run on rooted devices
body: <p>I'm writing an application that must not run on rooted devices. I want to store some secure data and which is possible only on non-rooted devices as nobody can access files in <em>/data/data/package-name</em>.</p>
  
  <p>Does anyone know:</p>
  
  <p><strong>1)</strong> Is it possible to prevent the installation of an application on rooted devices? I read something about the "copy-protection mechanism" of Android Market. This feature seems to be outdated and replaced by the licensing feature. However, licensing is only possible for paid application and mine is free...</p>
  
  <p><strong>2)</strong> Is it possible to check programmatically whether a device is rooted or not? If it would be possible to do so I could simply stop the application if the device is rooted.</p>
  
  <p>Any help regarding this topic is appreciated!</p>