We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6570550 commit e5ec7edCopy full SHA for e5ec7ed
src/main/java/net/coreprotect/utility/Util.java
@@ -127,6 +127,9 @@ public static CentralProcessor getProcessorInfo() {
127
if (System.getProperty("os.name").startsWith("Windows") && !System.getProperty("sun.arch.data.model").equals("64")) {
128
Class.forName("com.sun.jna.platform.win32.Win32Exception");
129
}
130
+ else if (System.getProperty("os.name").toLowerCase().contains("android") || System.getProperty("java.runtime.name").toLowerCase().contains("android")) {
131
+ return null;
132
+ }
133
Configurator.setLevel("oshi.hardware.common.AbstractCentralProcessor", Level.OFF);
134
SystemInfo systemInfo = new SystemInfo();
135
result = systemInfo.getHardware().getProcessor();
0 commit comments