1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-11-27 12:26:48 +01:00

Amazfit Bip S: Support flashing fonts and setting high MTU

This commit is contained in:
Andreas Shimokawa 2020-06-11 13:29:41 +02:00
parent 8e08a9d660
commit 25c749bab9
3 changed files with 13 additions and 1 deletions

View File

@ -3,7 +3,8 @@
#### Next
* Amazfit Bip: Support flashing newer GPS ALM
* Amazfit Bip S: Support music control
* Amazfit Bip S: Support flashing watchfaces and GPS CEP
* Amazfit Bip S: Support flashing watchfaces, fonts and GPS CEP
* Amazfit Bip S: Allow setting high MTU (much faster firmware installation, default off since it does not work for some)
* Fossil Hybrid HR: Add last notification widget
* Try to fix vanishing incoming call information when VoIP call support is enabled

View File

@ -94,6 +94,7 @@ public class AmazfitBipSCoordinator extends HuamiCoordinator {
R.xml.devicesettings_sync_calendar,
R.xml.devicesettings_expose_hr_thirdparty,
R.xml.devicesettings_buttonactions_with_longpress,
R.xml.devicesettings_high_mtu,
R.xml.devicesettings_pairingkey
};
}

View File

@ -41,6 +41,16 @@ public class AmazfitBipSFirmwareInfo extends HuamiFirmwareInfo {
if (ArrayUtils.startsWith(bytes, GPS_CEP_HEADER)) {
return HuamiFirmwareType.GPS_CEP;
}
if (ArrayUtils.startsWith(bytes, GPS_CEP_HEADER)) {
return HuamiFirmwareType.GPS_CEP;
}
if (ArrayUtils.startsWith(bytes, NEWFT_HEADER)) {
if (bytes[10] == 0x01) {
return HuamiFirmwareType.FONT;
} else if (bytes[10] == 0x02 || bytes[10] == 0x0A) {
return HuamiFirmwareType.FONT_LATIN;
}
}
return HuamiFirmwareType.INVALID;
}