From fda4816fc1aaa1ebf06b3f657c8b1339bbdddd52 Mon Sep 17 00:00:00 2001 From: Andreas Shimokawa Date: Sat, 13 Jan 2018 16:56:30 +0100 Subject: [PATCH] Mi Band 2: Whitellist firmwares I tested Fixes #939 --- .../service/devices/miband2/Mi2FirmwareInfo.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/miband2/Mi2FirmwareInfo.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/miband2/Mi2FirmwareInfo.java index e5ac63dae..0c1670eb3 100644 --- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/miband2/Mi2FirmwareInfo.java +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/miband2/Mi2FirmwareInfo.java @@ -47,7 +47,7 @@ public class Mi2FirmwareInfo extends HuamiFirmwareInfo { private static final int FW_HEADER_OFFSET = 0x150; - protected static Map crcToVersion = new HashMap<>(); + private static Map crcToVersion = new HashMap<>(); static { // firmware @@ -57,6 +57,9 @@ public class Mi2FirmwareInfo extends HuamiFirmwareInfo { crcToVersion.put(51770, "1.0.1.34"); crcToVersion.put(3929, "1.0.1.39"); crcToVersion.put(47364, "1.0.1.54"); + crcToVersion.put(44776, "1.0.1.59"); + crcToVersion.put(27318, "1.0.1.67"); + crcToVersion.put(54702, "1.0.1.69"); // fonts crcToVersion.put(45624, "Font");