diff --git a/Launcher/src/main/java/ru/gravit/launcher/hwid/OshiHWIDProvider.java b/Launcher/src/main/java/ru/gravit/launcher/hwid/OshiHWIDProvider.java index 99864ab8..54a5a12e 100644 --- a/Launcher/src/main/java/ru/gravit/launcher/hwid/OshiHWIDProvider.java +++ b/Launcher/src/main/java/ru/gravit/launcher/hwid/OshiHWIDProvider.java @@ -34,11 +34,15 @@ public String getProcessorID() public String getHWDisk() { try { + HWDiskStore store = null; + long size = 0; for (HWDiskStore s : systemInfo.getHardware().getDiskStores()) { - if (!s.getModel().contains("USB")) - return s.getSerial(); + if (size < s.getSize()) { + store = s; + size = s.getSize(); + } } - return ""; + return store == null ? "" : store.getSerial(); } catch (Exception e) { LogHelper.error(e); diff --git a/libLauncher/src/main/java/ru/gravit/launcher/Launcher.java b/libLauncher/src/main/java/ru/gravit/launcher/Launcher.java index 4754c3d3..70e0b101 100644 --- a/libLauncher/src/main/java/ru/gravit/launcher/Launcher.java +++ b/libLauncher/src/main/java/ru/gravit/launcher/Launcher.java @@ -59,7 +59,7 @@ public final class Launcher { public static int MAJOR = 4; public static int MINOR = 1; public static int PATCH = 0; - public static int BUILD = 0; + public static int BUILD = 1; public static Version.Type RELEASE = Version.Type.DEV; @LauncherAPI