update android hwinfo

This commit is contained in:
Anthony Calosa
2025-09-09 22:36:09 +08:00
parent 8b1c427809
commit 51ed06d60a
5 changed files with 800 additions and 8 deletions

View File

@@ -45,8 +45,9 @@ public class GuiBase {
if (hwInfo != null) {
return "##########################################\n" +
"APP: Forge v." + getInterface().getCurrentVersion() +
"\nDEV: " + hwInfo.device().getName() +
"\nCPU: " + hwInfo.device().getCpuDescription() +
"\nDEV: " + hwInfo.device().getName() + (hwInfo.getChipset() ?
"\nSOC: " + hwInfo.device().getChipset() :
"\nCPU: " + hwInfo.device().getCpuDescription()) +
"\nRAM: " + deviceRAM + " MB" +
"\nOS: " + hwInfo.os().getRawDescription() +
"\n##########################################";

View File

@@ -3,5 +3,5 @@ package forge.util;
import io.sentry.protocol.Device;
import io.sentry.protocol.OperatingSystem;
public record HWInfo(Device device, OperatingSystem os) {
public record HWInfo(Device device, OperatingSystem os, boolean getChipset) {
}