检测root权限

 public boolean checkRootMethod(){
        try {
            File file = new File("/system/app/Superuser.apk");
            if (file.exists()) {
                return true;
            }
        } catch (Exception e) { }

        return false;
    }
 
<!--[if !supportLineBreakNewLine]-->
<!--[endif]-->

你可能感兴趣的:(root)