mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2025-03-13 01:30:09 +01:00
Amazfit Active 2: Experimental support
This commit is contained in:
parent
79fdbb8f85
commit
878d40b8a8
@ -54,6 +54,7 @@ public class HuamiConst {
|
||||
public static final String MI_BAND5_NAME = "Mi Smart Band 5";
|
||||
public static final String MI_BAND6_NAME = "Mi Smart Band 6";
|
||||
public static final String AMAZFIT_ACTIVE_NAME = "Amazfit Active";
|
||||
public static final String AMAZFIT_ACTIVE_2_NAME = "Amazfit Active 2";
|
||||
public static final String AMAZFIT_ACTIVE_EDGE_NAME = "Amazfit Active Edge";
|
||||
public static final String AMAZFIT_BALANCE_NAME = "Amazfit Balance";
|
||||
public static final String AMAZFIT_BAND5_NAME = "Amazfit Band 5";
|
||||
|
@ -0,0 +1,93 @@
|
||||
/* Copyright (C) 2025 José Rebelo
|
||||
|
||||
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.huami.amazfitactive2;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.HashSet;
|
||||
import java.util.Set;
|
||||
|
||||
import nodomain.freeyourgadget.gadgetbridge.R;
|
||||
import nodomain.freeyourgadget.gadgetbridge.devices.huami.HuamiConst;
|
||||
import nodomain.freeyourgadget.gadgetbridge.devices.huami.zeppos.ZeppOsCoordinator;
|
||||
import nodomain.freeyourgadget.gadgetbridge.impl.GBDevice;
|
||||
|
||||
public class AmazfitActive2Coordinator extends ZeppOsCoordinator {
|
||||
@Override
|
||||
public boolean isExperimental() {
|
||||
// Untested device
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getDeviceBluetoothName() {
|
||||
return HuamiConst.AMAZFIT_ACTIVE_2_NAME;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Set<Integer> getDeviceSources() {
|
||||
return new HashSet<>(Arrays.asList(
|
||||
8913152, // chinese mainland version
|
||||
8913153,
|
||||
8913155, // chinese mainland version
|
||||
8913159
|
||||
));
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getDeviceNameResource() {
|
||||
return R.string.devicetype_amazfit_active_2;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean supportsContinuousFindDevice() {
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean mainMenuHasMoreSection() {
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean supportsGpxUploads() {
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean supportsControlCenter() {
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean supportsToDoList() {
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean supportsWifiHotspot(final GBDevice device) {
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean supportsFtpServer(final GBDevice device) {
|
||||
return true;
|
||||
}
|
||||
|
||||
public boolean supportsBluetoothPhoneCalls(final GBDevice device) {
|
||||
return true;
|
||||
}
|
||||
}
|
@ -123,6 +123,7 @@ import nodomain.freeyourgadget.gadgetbridge.devices.hplus.MakibesF68Coordinator;
|
||||
import nodomain.freeyourgadget.gadgetbridge.devices.hplus.Q8Coordinator;
|
||||
import nodomain.freeyourgadget.gadgetbridge.devices.hplus.SG2Coordinator;
|
||||
import nodomain.freeyourgadget.gadgetbridge.devices.huami.amazfitactive.AmazfitActiveCoordinator;
|
||||
import nodomain.freeyourgadget.gadgetbridge.devices.huami.amazfitactive2.AmazfitActive2Coordinator;
|
||||
import nodomain.freeyourgadget.gadgetbridge.devices.huami.amazfitactiveedge.AmazfitActiveEdgeCoordinator;
|
||||
import nodomain.freeyourgadget.gadgetbridge.devices.huami.amazfitbalance.AmazfitBalanceCoordinator;
|
||||
import nodomain.freeyourgadget.gadgetbridge.devices.huami.amazfitband5.AmazfitBand5Coordinator;
|
||||
@ -400,6 +401,7 @@ public enum DeviceType {
|
||||
AMAZFITFALCON(AmazfitFalconCoordinator.class),
|
||||
AMAZFITBALANCE(AmazfitBalanceCoordinator.class),
|
||||
AMAZFITACTIVE(AmazfitActiveCoordinator.class),
|
||||
AMAZFITACTIVE2(AmazfitActive2Coordinator.class),
|
||||
AMAZFITACTIVEEDGE(AmazfitActiveEdgeCoordinator.class),
|
||||
HPLUS(HPlusCoordinator.class),
|
||||
MAKIBESF68(MakibesF68Coordinator.class),
|
||||
|
@ -1699,6 +1699,7 @@
|
||||
<string name="devicetype_miband9pro">Xiaomi Smart Band 9 Pro</string>
|
||||
<string name="devicetype_amazfit_balance">Amazfit Balance</string>
|
||||
<string name="devicetype_amazfit_active">Amazfit Active</string>
|
||||
<string name="devicetype_amazfit_active_2">Amazfit Active 2</string>
|
||||
<string name="devicetype_amazfit_active_edge">Amazfit Active Edge</string>
|
||||
<string name="devicetype_amazfit_cheetah_square">Amazfit Cheetah (Square)</string>
|
||||
<string name="devicetype_amazfit_cheetah_round">Amazfit Cheetah (Round)</string>
|
||||
|
Loading…
x
Reference in New Issue
Block a user