1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-06-27 23:40:31 +02:00
Gadgetbridge/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/util
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
..
calendar Update license headers and CONTRIBUTORS file 2024-01-10 19:01:48 +01:00
dialogs Update license headers and CONTRIBUTORS file 2024-01-10 19:01:48 +01:00
gpx Update license headers and CONTRIBUTORS file 2024-01-10 19:01:48 +01:00
language Update license headers and CONTRIBUTORS file 2024-01-10 19:01:48 +01:00
protobuf Update license headers and CONTRIBUTORS file 2024-01-10 19:01:48 +01:00
.gitignore Mi2: Initial support for wear location, hr during sleep and date format #323 2016-11-13 01:44:52 +01:00
AlarmUtils.java Update license headers and CONTRIBUTORS file 2024-01-10 19:01:48 +01:00
AndroidUtils.java Update license headers and CONTRIBUTORS file 2024-01-10 19:01:48 +01:00
ArrayUtils.java Update license headers and CONTRIBUTORS file 2024-01-10 19:01:48 +01:00
BcdUtil.java Update license headers and CONTRIBUTORS file 2024-01-10 19:01:48 +01:00
BitmapUtil.java Update license headers and CONTRIBUTORS file 2024-01-10 19:01:48 +01:00
BondingInterface.java Update license headers and CONTRIBUTORS file 2024-01-10 19:01:48 +01:00
BondingUtil.java Update license headers and CONTRIBUTORS file 2024-01-10 19:01:48 +01:00
CheckSums.java Update license headers and CONTRIBUTORS file 2024-01-10 19:01:48 +01:00
CRC32C.java Update license headers and CONTRIBUTORS file 2024-01-10 19:01:48 +01:00
CryptoUtils.java [Huawei] Add PBKDF2 crypto 2024-01-29 21:34:08 +01:00
DateTimeUtils.java Update license headers and CONTRIBUTORS file 2024-01-10 19:01:48 +01:00
DeviceHelper.java Update license headers and CONTRIBUTORS file 2024-01-10 19:01:48 +01:00
ECDH_B163.java Update license headers and CONTRIBUTORS file 2024-01-10 19:01:48 +01:00
EmojiConverter.java Update license headers and CONTRIBUTORS file 2024-01-10 19:01:48 +01:00
FileUtils.java Update license headers and CONTRIBUTORS file 2024-01-10 19:01:48 +01:00
FormatUtils.java Update license headers and CONTRIBUTORS file 2024-01-10 19:01:48 +01:00
GB.java Update license headers and CONTRIBUTORS file 2024-01-10 19:01:48 +01:00
GBChangeLog.java Update license headers and CONTRIBUTORS file 2024-01-10 19:01:48 +01:00
GBPrefs.java Update license headers and CONTRIBUTORS file 2024-01-10 19:01:48 +01:00
GBZipFile.java Zepp OS: Refactor firmware uploads 2024-02-01 18:47:28 +00:00
GridAutoFitLayoutManager.java Fossil Hybrid HR: Add watchface preview images in the app manager 2022-06-17 14:45:10 +02:00
ImportExportSharedPreferences.java Update license headers and CONTRIBUTORS file 2024-01-10 19:01:48 +01:00
JavaExtensions.java Update license headers and CONTRIBUTORS file 2024-01-10 19:01:48 +01:00
LimitedQueue.java Update license headers and CONTRIBUTORS file 2024-01-10 19:01:48 +01:00
MapUtils.java Update license headers and CONTRIBUTORS file 2024-01-10 19:01:48 +01:00
MediaManager.java MusicManager: Fix NPE when music not playing 2024-01-28 20:26:35 +00:00
NotificationUtils.java Update license headers and CONTRIBUTORS file 2024-01-10 19:01:48 +01:00
Optional.java Update license headers and CONTRIBUTORS file 2024-01-10 19:01:48 +01:00
PebbleUtils.java Update license headers and CONTRIBUTORS file 2024-01-10 19:01:48 +01:00
PendingIntentUtils.java Update license headers and CONTRIBUTORS file 2024-01-10 19:01:48 +01:00
Prefs.java Update license headers and CONTRIBUTORS file 2024-01-10 19:01:48 +01:00
RangeMap.java Update license headers and CONTRIBUTORS file 2024-01-10 19:01:48 +01:00
RtlUtils.java Update license headers and CONTRIBUTORS file 2024-01-10 19:01:48 +01:00
SilentMode.java Update license headers and CONTRIBUTORS file 2024-01-10 19:01:48 +01:00
StringUtils.java Update license headers and CONTRIBUTORS file 2024-01-10 19:01:48 +01:00
SwipeEvents.java Update license headers and CONTRIBUTORS file 2024-01-10 19:01:48 +01:00
TimePreference.java Update license headers and CONTRIBUTORS file 2024-01-10 19:01:48 +01:00
UriHelper.java Update license headers and CONTRIBUTORS file 2024-01-10 19:01:48 +01:00
Version.java Update license headers and CONTRIBUTORS file 2024-01-10 19:01:48 +01:00
WebViewSingleton.java Update license headers and CONTRIBUTORS file 2024-01-10 19:01:48 +01:00
WidgetPreferenceStorage.java Update license headers and CONTRIBUTORS file 2024-01-10 19:01:48 +01:00
XTimePreference.java Update license headers and CONTRIBUTORS file 2024-01-10 19:01:48 +01:00
XTimePreferenceFragment.java Update license headers and CONTRIBUTORS file 2024-01-10 19:01:48 +01:00
ZipFileException.java Update license headers and CONTRIBUTORS file 2024-01-10 19:01:48 +01:00