function isRoot() {
var file = null;
var paths = ["/system/bin/", "/system/xbin/", "/system/sbin/", "/sbin/", "/vendor/bin/", "/su/bin/"];
try {
for (let path in paths) {
let file = new java.io.File(paths[path] + "su");
if (file.exists() && file.canExecute()) return true;
}
} catch (x) {
toast("错误" + x)
}
return false;
}
Warning: strpos(): Empty needle in /mnt/extdata/wwwroot/freebasic.ts/wp-content/themes/kratos-pjax-master/functions.php on line 168
千道流说道: