jimu-decompiled/sources/com/tencent/wxop/stat/common/p.java
2025-05-13 19:24:51 +02:00

31 lines
719 B
Java

package com.tencent.wxop.stat.common;
import java.io.File;
/* loaded from: classes.dex */
class p {
private static int a = -1;
public static boolean a() {
int i = a;
if (i == 1) {
return true;
}
if (i == 0) {
return false;
}
String[] strArr = {"/bin", "/system/bin/", "/system/xbin/", "/system/sbin/", "/sbin/", "/vendor/bin/"};
for (int i2 = 0; i2 < 6; i2++) {
try {
if (new File(strArr[i2] + "su").exists()) {
a = 1;
return true;
}
} catch (Exception unused) {
}
}
a = 0;
return false;
}
}