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:
parent
20de001e49
commit
003246ae1c
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user