1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-07-07 22:22:00 +02:00
Gadgetbridge/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices
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
..
amazfitbip Update license headers and CONTRIBUTORS file 2024-01-10 19:01:48 +01:00
asteroidos Update license headers and CONTRIBUTORS file 2024-01-10 19:01:48 +01:00
banglejs Update license headers and CONTRIBUTORS file 2024-01-10 19:01:48 +01:00
binary_sensor Update license headers and CONTRIBUTORS file 2024-01-10 19:01:48 +01:00
casio Add support for snooze alarm on CasioGBX100 devices 2024-01-14 20:29:30 +00:00
cmfwatchpro Nothing CMF Watch Pro: Initial support 2024-01-28 18:46:13 +00:00
divoom Update license headers and CONTRIBUTORS file 2024-01-10 19:01:48 +01:00
domyos Update license headers and CONTRIBUTORS file 2024-01-10 19:01:48 +01:00
femometer Update license headers and CONTRIBUTORS file 2024-01-10 19:01:48 +01:00
fitpro Update license headers and CONTRIBUTORS file 2024-01-10 19:01:48 +01:00
flipper/zero Update license headers and CONTRIBUTORS file 2024-01-10 19:01:48 +01:00
galaxy_buds Update license headers and CONTRIBUTORS file 2024-01-10 19:01:48 +01:00
hplus Update license headers and CONTRIBUTORS file 2024-01-10 19:01:48 +01:00
huami Zepp OS: Refactor firmware uploads 2024-02-01 18:47:28 +00:00
huawei Fix Huawei exceptions related to early packets 2024-01-30 12:15:46 +01:00
id115 Update license headers and CONTRIBUTORS file 2024-01-10 19:01:48 +01:00
itag Update license headers and CONTRIBUTORS file 2024-01-10 19:01:48 +01:00
jyou Update license headers and CONTRIBUTORS file 2024-01-10 19:01:48 +01:00
lefun Update license headers and CONTRIBUTORS file 2024-01-10 19:01:48 +01:00
lenovo Update license headers and CONTRIBUTORS file 2024-01-10 19:01:48 +01:00
liveview Update license headers and CONTRIBUTORS file 2024-01-10 19:01:48 +01:00
makibeshr3 Update license headers and CONTRIBUTORS file 2024-01-10 19:01:48 +01:00
miband Update license headers and CONTRIBUTORS file 2024-01-10 19:01:48 +01:00
mijia_lywsd Mijia MHO-C303: Initial support 2024-01-17 17:55:15 +00:00
miscale2 Update license headers and CONTRIBUTORS file 2024-01-10 19:01:48 +01:00
no1f1 Update license headers and CONTRIBUTORS file 2024-01-10 19:01:48 +01:00
nothing Update license headers and CONTRIBUTORS file 2024-01-10 19:01:48 +01:00
nut Update license headers and CONTRIBUTORS file 2024-01-10 19:01:48 +01:00
pebble Update license headers and CONTRIBUTORS file 2024-01-10 19:01:48 +01:00
pinetime Zepp OS: Refactor firmware uploads 2024-02-01 18:47:28 +00:00
qc35 Update license headers and CONTRIBUTORS file 2024-01-10 19:01:48 +01:00
qhybrid Nothing CMF Watch Pro: Initial support 2024-01-28 18:46:13 +00:00
roidmi Update license headers and CONTRIBUTORS file 2024-01-10 19:01:48 +01:00
smaq2oss Update license headers and CONTRIBUTORS file 2024-01-10 19:01:48 +01:00
soflow Update license headers and CONTRIBUTORS file 2024-01-10 19:01:48 +01:00
sony initial support for sony WI-SP600N (#3522) 2024-01-27 23:21:11 +00:00
sonyswr12 Update license headers and CONTRIBUTORS file 2024-01-10 19:01:48 +01:00
supercars Update license headers and CONTRIBUTORS file 2024-01-10 19:01:48 +01:00
test Update license headers and CONTRIBUTORS file 2024-01-10 19:01:48 +01:00
tlw64 Update license headers and CONTRIBUTORS file 2024-01-10 19:01:48 +01:00
um25 Update license headers and CONTRIBUTORS file 2024-01-10 19:01:48 +01:00
vesc Update license headers and CONTRIBUTORS file 2024-01-10 19:01:48 +01:00
vibratissimo Update license headers and CONTRIBUTORS file 2024-01-10 19:01:48 +01:00
vivomovehr Update license headers and CONTRIBUTORS file 2024-01-10 19:01:48 +01:00
waspos Update license headers and CONTRIBUTORS file 2024-01-10 19:01:48 +01:00
watch9 Update license headers and CONTRIBUTORS file 2024-01-10 19:01:48 +01:00
withingssteelhr Nothing CMF Watch Pro: Initial support 2024-01-28 18:46:13 +00:00
xiaomi Redmi Watch 2: Experimental support 2024-01-29 18:14:34 +00:00
xwatch Update license headers and CONTRIBUTORS file 2024-01-10 19:01:48 +01:00
zetime Update license headers and CONTRIBUTORS file 2024-01-10 19:01:48 +01:00
AbstractBLClassicDeviceCoordinator.java Xiaomi: introduce XiaomiSppSupport 2024-01-17 20:16:38 +00:00
AbstractBLEDeviceCoordinator.java Update license headers and CONTRIBUTORS file 2024-01-10 19:01:48 +01:00
AbstractDeviceCoordinator.java Nothing CMF Watch Pro: Initial support 2024-01-28 18:46:13 +00:00
AbstractSampleProvider.java Update license headers and CONTRIBUTORS file 2024-01-10 19:01:48 +01:00
AbstractSampleToTimeSampleProvider.java Update license headers and CONTRIBUTORS file 2024-01-10 19:01:48 +01:00
AbstractTimeSampleProvider.java Update license headers and CONTRIBUTORS file 2024-01-10 19:01:48 +01:00
DeviceCoordinator.java Nothing CMF Watch Pro: Initial support 2024-01-28 18:46:13 +00:00
DeviceManager.java Update license headers and CONTRIBUTORS file 2024-01-10 19:01:48 +01:00
EventHandler.java Update license headers and CONTRIBUTORS file 2024-01-10 19:01:48 +01:00
InstallHandler.java Update license headers and CONTRIBUTORS file 2024-01-10 19:01:48 +01:00
SampleProvider.java Update license headers and CONTRIBUTORS file 2024-01-10 19:01:48 +01:00
TimeSampleProvider.java Update license headers and CONTRIBUTORS file 2024-01-10 19:01:48 +01:00
UnknownDeviceCoordinator.java Update license headers and CONTRIBUTORS file 2024-01-10 19:01:48 +01:00