title: How to check device is rooted or not in ionic 2 typescript
body: <p>I am developing a mobile app using ionic2. I need to check if android device is rooted. I did google and found the <a href="https://www.npmjs.com/package/cordova-plugin-root-detection" rel="nofollow noreferrer">this</a> plugin <code>cordova-plugin-root-detection</code> but it does not work for me.</p>
  
  <p>I added this plugin in my project using following command as explain in above link </p>
  
  <p><code>cordova plugin add https://github.com/trykovyura/cordova-plugin-root-detection.git</code> </p>
  
  <p>after adding this plugin i tried to import it but it does not import, saying no module present. I did force quit my project and ran <code>npm insatll</code> and opened my project again but error still present.</p>
  
  <pre><code>rootDetection.isDeviceRooted(successCallback, errorCallback);
  </code></pre>
  
  <p>Calling this does not work as module is not present.</p>
  
  <p>Any reference of plugin or any suggestion will be helpful.</p>