ZL02D: Initial support

This commit is contained in:
José Rebelo
2026-03-21 16:04:52 +00:00
parent 49ac9467a5
commit 47b2412663
4 changed files with 82 additions and 0 deletions
@@ -0,0 +1,78 @@
/* Copyright (C) 2025 Arjan Schrijver
This file is part of Gadgetbridge.
Gadgetbridge is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published
by the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Gadgetbridge is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>. */
package nodomain.freeyourgadget.gadgetbridge.devices.moyoung;
import androidx.annotation.DrawableRes;
import androidx.annotation.NonNull;
import java.util.regex.Pattern;
import nodomain.freeyourgadget.gadgetbridge.R;
import nodomain.freeyourgadget.gadgetbridge.impl.GBDevice;
public class ZL02DCoordinator extends AbstractMoyoungDeviceCoordinator {
@Override
protected Pattern getSupportedDeviceName() {
return Pattern.compile("^ZL02D$");
}
@Override
public int getDeviceNameResource() {
return R.string.devicetype_zl02d;
}
@Override
@DrawableRes
public int getDefaultIconResource() {
return R.drawable.ic_device_miwatch;
}
@Override
public String getManufacturer() {
return "Mo Young / Da Fit";
}
@Override
public int getMtu() {
return 508;
}
@Override
public int getAlarmSlotCount(GBDevice device) {
return 8;
}
@Override
public int getWorldClocksSlotCount() {
return 6;
}
@Override
public int getWorldClocksLabelLength() {
return 30;
}
@Override
public boolean supportsRemSleep(@NonNull GBDevice device) {
return true;
}
@Override
public boolean supportsStressMeasurement(@NonNull GBDevice device) {
return true;
}
}
@@ -345,6 +345,7 @@ import nodomain.freeyourgadget.gadgetbridge.devices.moyoung.MisirunC17Coordinato
import nodomain.freeyourgadget.gadgetbridge.devices.moyoung.R50ProCoordinator;
import nodomain.freeyourgadget.gadgetbridge.devices.moyoung.RainbuvvyT97Coordinator;
import nodomain.freeyourgadget.gadgetbridge.devices.moyoung.ViranC29Coordinator;
import nodomain.freeyourgadget.gadgetbridge.devices.moyoung.ZL02DCoordinator;
import nodomain.freeyourgadget.gadgetbridge.devices.no1f1.No1F1Coordinator;
import nodomain.freeyourgadget.gadgetbridge.devices.nothing.CmfBuds2Coordinator;
import nodomain.freeyourgadget.gadgetbridge.devices.nothing.CmfBudsPro2Coordinator;
@@ -886,6 +887,7 @@ public enum DeviceType {
KSIX_VENTURE(KsixVentureCoordinator.class),
FIREBOLTT_TALK(FireBolttTalkCoordinator.class),
VIRAN_C29(ViranC29Coordinator.class),
ZL02D(ZL02DCoordinator.class),
R50PRO(R50ProCoordinator.class),
RAINBUVVY_T97(RainbuvvyT97Coordinator.class),
ADVAN_WATCH_SE1_AI(AdvanWatchSE1AICoordinator.class),
+1
View File
@@ -2185,6 +2185,7 @@
<string name="devicetype_colmi_v73" translatable="false">Colmi V73</string>
<string name="devicetype_colmi_v76" translatable="false">Colmi V76</string>
<string name="devicetype_colmi_v89" translatable="false">Colmi V89</string>
<string name="devicetype_zl02d" translatable="false">ZL02D</string>
<string name="devicetype_colmi_p80" translatable="false">Colmi P80</string>
<string name="devicetype_blackview_r60" translatable="false">Blackview R60</string>
<string name="devicetype_misirun_c17" translatable="false">Misirun C17</string>
@@ -46,6 +46,7 @@ public class AbstractDeviceCoordinatorTest extends TestBase {
put("D3(ID-417F)", DeviceType.D3);
put("S10", DeviceType.QECNATO_S10);
put("S52", DeviceType.S52);
put("ZL02D", DeviceType.ZL02D);
put("R11C_B200", DeviceType.YAWELL_R11);
put("R11_B200", DeviceType.YAWELL_R11);
put("WF-C710N", DeviceType.SONY_WF_C710N);