1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-12-28 19:45:50 +01:00

Fossil Hybrid HR: Relax version check for watch apps

Allows to install latest watchapps

It seems that every time the firmware gets a major update, the new watchapps
have a different minor version, we dont need to check for that because watchapps
seem to be compatible accross firmware versions
This commit is contained in:
Andreas Shimokawa 2022-06-24 09:44:05 +02:00
parent 8c4ab7e713
commit 2182097f0c

View File

@ -82,8 +82,8 @@ public class FossilFileReader {
buf.order(ByteOrder.LITTLE_ENDIAN);
short handle = buf.getShort();
short version = buf.getShort();
if ((handle == 5630) && (version == 3 || version == 515 || version == 771)) {
byte version = buf.get();
if (handle == 5630 && version == 3) {
// This is a watch app or watch face
isValid = true;
isApp = true;