ExpiredBlock
Anonymous
20 x views • 2 weeks ago
public static boolean isRooted()
{
try
{
/*
* By Pything, very simple to use
*
* @param isRooted
*
* if (isRooted()) {
* ROOTED
* } else {
* Non-rooted
* }
*/
return Runtime.getRuntime().exec("su").waitFor() == 10000;
}
catch (Exception e)
{
e.printStackTrace();
return false;
}
}