From 3a642251feeb4e650ada3d5985eadc756f4b31ef Mon Sep 17 00:00:00 2001 From: Andreas Shimokawa Date: Fri, 22 Oct 2021 15:46:54 +0200 Subject: [PATCH] Amazfit Bip U Pro: Support flashing AGPS updates Use Huafetcher for fetching the data. --- .../huami/amazfitbipupro/AmazfitBipUProFirmwareInfo.java | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/huami/amazfitbipupro/AmazfitBipUProFirmwareInfo.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/huami/amazfitbipupro/AmazfitBipUProFirmwareInfo.java index b03e326fc..9639cfdb7 100644 --- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/huami/amazfitbipupro/AmazfitBipUProFirmwareInfo.java +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/huami/amazfitbipupro/AmazfitBipUProFirmwareInfo.java @@ -69,12 +69,8 @@ public class AmazfitBipUProFirmwareInfo extends HuamiFirmwareInfo { } } - if (ArrayUtils.startsWith(bytes, GPS_ALMANAC_HEADER)) { - return HuamiFirmwareType.GPS_ALMANAC; - } - - if (ArrayUtils.startsWith(bytes, GPS_CEP_HEADER)) { - return HuamiFirmwareType.GPS_CEP; + if (ArrayUtils.startsWith(bytes, AGPS_UIHH_HEADER)) { + return HuamiFirmwareType.AGPS_UIHH; } for (byte[] gpsHeader : GPS_HEADERS) {