From b9c6b3bb8f33e6031fe3ccae4412eddfebe6e23d Mon Sep 17 00:00:00 2001 From: Andreas Shimokawa Date: Thu, 8 Feb 2018 22:41:16 +0100 Subject: [PATCH] Amazfit Bip: Whitelist fw 0.1.0.70/80 and fonts Also change the recommended flashing order of .fw .res and .gps --- .../devices/amazfitbip/AmazfitBipFirmwareInfo.java | 9 +++++++++ app/src/main/res/values/strings.xml | 4 ++-- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/amazfitbip/AmazfitBipFirmwareInfo.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/amazfitbip/AmazfitBipFirmwareInfo.java index 5fcf1f964..34d3c9dde 100644 --- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/amazfitbip/AmazfitBipFirmwareInfo.java +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/amazfitbip/AmazfitBipFirmwareInfo.java @@ -91,6 +91,8 @@ public class AmazfitBipFirmwareInfo extends HuamiFirmwareInfo { crcToVersion.put(47685, "0.1.0.43"); crcToVersion.put(2839, "0.1.0.44"); crcToVersion.put(30229, "0.1.0.45"); + crcToVersion.put(24302, "0.1.0.70"); + crcToVersion.put(1333, "0.1.0.80"); // resources crcToVersion.put(12586, "0.0.8.74"); @@ -103,12 +105,19 @@ public class AmazfitBipFirmwareInfo extends HuamiFirmwareInfo { crcToVersion.put(28696, "0.1.0.26-0.1.0.27"); crcToVersion.put(5650, "0.1.0.33"); crcToVersion.put(16117, "0.1.0.39-0.1.0.45"); + crcToVersion.put(22506, "0.1.0.66-0.1.0.70"); + crcToVersion.put(22506, "0.1.0.66-0.1.0.70"); + crcToVersion.put(42264, "0.1.0.77-0.1.0.80"); // gps crcToVersion.put(61520, "9367,8f79a91,0,0,"); crcToVersion.put(8784, "9565,dfbd8fa,0,0,"); crcToVersion.put(16716, "9565,dfbd8faf42,0"); crcToVersion.put(54154, "9567,8b05506,0,0,"); + + // font + crcToVersion.put(61054, "8"); + crcToVersion.put(62291, "9 (Latin)"); } public AmazfitBipFirmwareInfo(byte[] bytes) { diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 018dec8a6..4bd05160d 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -53,8 +53,8 @@ FW/App installer You are about to install firmware %s instead of the one currently on your Mi Band. - You are about to install the %s firmware on your Amazfit Bip.\n\nPlease make sure to install the .gps firmware, then the .res file, and finally the .fw file. Your watch will reboot after installing the .fw file.\n\nNote: You do not have to install .res and .gps if these files are exactly the same as the ones previously installed.\n\nPROCEED AT YOUR OWN RISK! - You are about to install the %s firmware on your Amazfit Cor.\n\nPlease make sure to install the .res file, and after that the .fw file. Your watch will reboot after installing the .fw file.\n\nNote: You do not have to install .res if it is exactly the same as the one previously installed.\n\nUNTESTED, MAY BRICK YOUR DEVICE, PROCEED AT YOUR OWN RISK! + You are about to install the %s firmware on your Amazfit Bip.\n\nPlease make sure to install the .fw file, then the .res file, and finally the .gps file. Your watch will reboot after installing the .fw file.\n\nNote: You do not have to install .res and .gps if these files are exactly the same as the ones previously installed.\n\nPROCEED AT YOUR OWN RISK! + You are about to install the %s firmware on your Amazfit Cor.\n\nPlease make sure to install the .fw file, and after that the .res file. Your watch will reboot after installing the .fw file.\n\nNote: You do not have to install .res if it is exactly the same as the one previously installed.\n\nUNTESTED, MAY BRICK YOUR DEVICE, PROCEED AT YOUR OWN RISK! You are about to install the %1$s and %2$s firmware, instead of the ones currently on your Mi Band. This firmware has been tested and is known to be compatible with Gadgetbridge. "This firmware is untested and may not be compatible with Gadgetbridge.\n\nYou are DISCOURAGED from flashing it onto your Mi Band!"