From 8087390336affde1c47a021644d3f0e226c10deb Mon Sep 17 00:00:00 2001 From: Andreas Shimokawa Date: Sun, 27 Sep 2020 12:07:52 +0200 Subject: [PATCH] Huami: recoginze GPS firmware 19439,3aa3392,135 and whitelist it for Bip S --- .../gadgetbridge/service/devices/huami/HuamiFirmwareInfo.java | 4 ++++ .../devices/huami/amazfitbips/AmazfitBipSFirmwareInfo.java | 1 + 2 files changed, 5 insertions(+) diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/huami/HuamiFirmwareInfo.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/huami/HuamiFirmwareInfo.java index b49ab7d6b..72461bac9 100644 --- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/huami/HuamiFirmwareInfo.java +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/huami/HuamiFirmwareInfo.java @@ -85,6 +85,10 @@ public abstract class HuamiFirmwareInfo { new byte[]{ 0x00, 0x00, 0x00, 0x01, 0x00, 0x09, 0x6F, (byte) 0xD0, 0x00, 0x01, 0x00, 0x02, 0x3D, (byte) 0xE0, 0x00, 0x69 + }, + new byte[]{ + 0x00, 0x00, 0x00, 0x01, 0x00, 0x09, 0x32, 0x70, + 0x00, 0x01, 0x00, 0x02, 0x3D, (byte) 0xE0, 0x00, (byte) 0xCC } }; diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/huami/amazfitbips/AmazfitBipSFirmwareInfo.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/huami/amazfitbips/AmazfitBipSFirmwareInfo.java index 2256cc3de..1e29de0d4 100644 --- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/huami/amazfitbips/AmazfitBipSFirmwareInfo.java +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/huami/amazfitbips/AmazfitBipSFirmwareInfo.java @@ -53,6 +53,7 @@ public class AmazfitBipSFirmwareInfo extends HuamiFirmwareInfo { // gps crcToVersion.put(62532, "18344,eb2f43f,126"); crcToVersion.put(31510, "19226,f3a8ad3,135"); + crcToVersion.put(41742, "19439,3aa3392,135"); } public AmazfitBipSFirmwareInfo(byte[] bytes) {