mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2025-01-26 17:47:34 +01:00
Amazfit Neo: re-enable firmware flashing support and fix ft installation
This commit is contained in:
parent
bfa0b6a979
commit
51c87f138d
@ -47,20 +47,17 @@ public class AmazfitNeoFirmwareInfo extends HuamiFirmwareInfo {
|
||||
|
||||
@Override
|
||||
protected HuamiFirmwareType determineFirmwareType(byte[] bytes) {
|
||||
/*
|
||||
|
||||
if (ArrayUtils.equals(bytes, FW_HEADER, FW_HEADER_OFFSET)) {
|
||||
if (searchString32BitAligned(bytes, "Amazfit Neo")) {
|
||||
return HuamiFirmwareType.FIRMWARE;
|
||||
}
|
||||
return HuamiFirmwareType.INVALID;
|
||||
}
|
||||
if (ArrayUtils.startsWith(bytes, NEWFT_HEADER)) {
|
||||
if (bytes[10] == 0x03 || bytes[10] == 0x06) {
|
||||
return HuamiFirmwareType.FONT;
|
||||
}
|
||||
if (ArrayUtils.startsWith(bytes, FT_HEADER)) {
|
||||
return HuamiFirmwareType.FONT;
|
||||
}
|
||||
|
||||
*/
|
||||
return HuamiFirmwareType.INVALID;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user