1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-12-01 14:32:54 +01:00

Zepp OS: Fix zpk compatibility detection

This commit is contained in:
José Rebelo 2023-06-10 12:41:10 +01:00
parent 20de001e49
commit 003246ae1c

View File

@ -185,7 +185,7 @@ public abstract class Huami2021FirmwareInfo extends AbstractHuamiFirmwareInfo {
for (int j = 0; j < platforms.length(); j++) { for (int j = 0; j < platforms.length(); j++) {
final JSONObject platform = platforms.getJSONObject(j); final JSONObject platform = platforms.getJSONObject(j);
if (!deviceSources().contains(platform.getInt("deviceSource"))) { if (deviceSources().contains(platform.getInt("deviceSource"))) {
// It's compatible with the device, fetch device.zip // It's compatible with the device, fetch device.zip
final String name = zpkEntry.getString("name"); final String name = zpkEntry.getString("name");
final byte[] zpkBytes = zipFile.getFileFromZip(name); final byte[] zpkBytes = zipFile.getFileFromZip(name);