1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-06-21 12:30:23 +02: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++) {
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
final String name = zpkEntry.getString("name");
final byte[] zpkBytes = zipFile.getFileFromZip(name);