This module provides a function to check if a device has been Jailbroken (iOS), or Rooted (Android). Check the Releases tab for downloads.
Please check the Appcelerator documentation for instructions on how to install this module
var Rooted = require('com.collinprice.rooted');
if (Rooted.isRooted()) {
Ti.API.info("DEVICE IS ROOTED!!!");
} else {
Ti.API.info("DEVICE IS NOT ROOTED.....");
}