1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-08-24 16:21:16 +02:00
Gadgetbridge/app/src/test/java/nodomain/freeyourgadget/gadgetbridge/test
José Rebelo 34fd18885a Zepp OS: Refactor firmware uploads
Zepp OS 3 firmware upgrades are big (200MB+). Gadgetbridge was crashing,
since the entire firmware file would be pulled into memory.

This commit unifies all the logic for Zepp OS firmware handling.

However, since the needed refactor was big, this commit duplicates some
of the code from Huami classes, namely:
- ZeppOsFirmwareUpdateOperation clones UpdateFirmwareOperation2020
- ZeppOsFwInstallHandler clones AbstractMiBandFWInstallHandler

This avoids changes to older device logic and introducing regressions.

Lost functionality:
- Repackaging firmwares as UIHH (does not seem to be needed, and was not
  used anyway). Code can be recovered from this commit if needed in the
  future
- Whitelisted firmwares by checksum (we do not have a lot of them at
  this point anyway)

Other misc changes:
- Rename ZipFile to GBZipFile not to clash with the java class

Tested by updating the Amazfit GTR 4 to Zepp OS 3.
2024-02-01 18:47:28 +00:00
..
ArrayUtilsTest.java Mi2: support for updating firmware fonts (*.ft, *.ft.en) 2017-03-07 23:26:41 +01:00
BLETypeConversionsTest.java Changes suggested in PR 2023-07-20 20:30:14 +00:00
CalendarEventTest.java Make calendar blacklist configurable per device 2022-07-05 19:58:21 +02:00
FileUtilsTest.java File external files dir creation, add test 2020-01-29 20:20:20 +01:00
FitProTests.java FitPro: add DeviceSupport tests 2022-07-17 00:13:09 +02:00
GBZipFileTest.java Zepp OS: Refactor firmware uploads 2024-02-01 18:47:28 +00:00
HexToBinaryInputStream.java Migrate to androidx support libraries and bump compile SDK version 2019-01-26 16:00:56 +01:00
HexToBinaryInputStreamTest.java Move another file from AmazfitBip to Huami which is no longer Bip specific 2019-08-13 22:20:18 +02:00
HuamiActivityDetailsParserTest.java Zepp OS: Start new GPX segments on pause/resume 2023-05-14 16:22:32 +01:00
LoggingTest.java Refactor file logging logic 2022-08-07 23:24:16 +01:00
MiscTest.java Tiny test for GattCharacteristic class 2017-01-08 21:37:43 +01:00
PebbleUtilsTest.java Add support for dynamic Pebble background colors (#819) 2017-09-19 13:24:31 +02:00
ProtobufTest.java Utils: added simple Protobuf creator 2022-09-15 01:40:05 +02:00
RtlUtilsTest.java Use constants for "rtl" and "contextualArabic" preferences 2018-09-05 21:32:06 +02:00
StringUtilsTest.java Xiaomi Smart Band 7: Initial support 2022-08-19 23:13:27 +02:00
TestBase.java Fix tests after SDK bump 2022-09-11 16:13:29 +02:00
Tryout.java fix tests 2019-06-05 16:07:30 +02:00