mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-11-28 12:56:49 +01:00
Amazfit Bip 5 Unity: Experimental support (untested)
This commit is contained in:
parent
8946eff8fa
commit
78c10c3da9
@ -61,6 +61,7 @@ public class HuamiConst {
|
||||
public static final String AMAZFIT_NEO_NAME = "Amazfit Neo";
|
||||
public static final String AMAZFIT_X = "Amazfit X";
|
||||
public static final String AMAZFIT_BIP5_NAME = "Amazfit Bip 5";
|
||||
public static final String AMAZFIT_BIP5_UNITY_NAME = "Amazfit Bip 5 Unity";
|
||||
public static final String AMAZFIT_GTS3_NAME = "Amazfit GTS 3";
|
||||
public static final String AMAZFIT_GTS4_NAME = "Amazfit GTS 4";
|
||||
public static final String AMAZFIT_GTS4_MINI_NAME = "Amazfit GTS 4 Mini";
|
||||
|
@ -56,16 +56,6 @@ public class AmazfitBip5Coordinator extends ZeppOsCoordinator {
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean supportsWifiHotspot(final GBDevice device) {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean supportsFtpServer(final GBDevice device) {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean supportsBluetoothPhoneCalls(final GBDevice device) {
|
||||
return true;
|
||||
|
@ -0,0 +1,79 @@
|
||||
/* Copyright (C) 2023-2024 Daniel Dakhno, 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.amazfitbip5unity;
|
||||
|
||||
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 AmazfitBip5UnityCoordinator extends ZeppOsCoordinator {
|
||||
@Override
|
||||
public boolean isExperimental() {
|
||||
// untested device
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getDeviceBluetoothName() {
|
||||
return HuamiConst.AMAZFIT_BIP5_UNITY_NAME;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Set<Integer> getDeviceSources() {
|
||||
return new HashSet<>(Arrays.asList(8782081, 8782088, 8782089));
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean supportsContinuousFindDevice() {
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean supportsControlCenter() {
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean supportsToDoList() {
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean supportsBluetoothPhoneCalls(final GBDevice device) {
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getDeviceNameResource() {
|
||||
return R.string.devicetype_amazfit_bip5_unity;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getDefaultIconResource() {
|
||||
return R.drawable.ic_device_amazfit_bip;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getDisabledIconResource() {
|
||||
return R.drawable.ic_device_amazfit_bip_disabled;
|
||||
}
|
||||
}
|
@ -65,6 +65,7 @@ import nodomain.freeyourgadget.gadgetbridge.devices.huami.amazfitbip.AmazfitBipL
|
||||
import nodomain.freeyourgadget.gadgetbridge.devices.huami.amazfitbip3.AmazfitBip3Coordinator;
|
||||
import nodomain.freeyourgadget.gadgetbridge.devices.huami.amazfitbip3pro.AmazfitBip3ProCoordinator;
|
||||
import nodomain.freeyourgadget.gadgetbridge.devices.huami.amazfitbip5.AmazfitBip5Coordinator;
|
||||
import nodomain.freeyourgadget.gadgetbridge.devices.huami.amazfitbip5unity.AmazfitBip5UnityCoordinator;
|
||||
import nodomain.freeyourgadget.gadgetbridge.devices.huami.amazfitbips.AmazfitBipSCoordinator;
|
||||
import nodomain.freeyourgadget.gadgetbridge.devices.huami.amazfitbips.AmazfitBipSLiteCoordinator;
|
||||
import nodomain.freeyourgadget.gadgetbridge.devices.huami.amazfitbipu.AmazfitBipUCoordinator;
|
||||
@ -283,6 +284,7 @@ public enum DeviceType {
|
||||
AMAZFITCHEETAHSQUARE(AmazfitCheetahSquareCoordinator.class),
|
||||
AMAZFITCHEETAHROUND(AmazfitCheetahRoundCoordinator.class),
|
||||
AMAZFITBIP5(AmazfitBip5Coordinator.class),
|
||||
AMAZFITBIP5UNITY(AmazfitBip5UnityCoordinator.class),
|
||||
AMAZFITTREXULTRA(AmazfitTRexUltraCoordinator.class),
|
||||
AMAZFITGTRMINI(AmazfitGTRMiniCoordinator.class),
|
||||
AMAZFITFALCON(AmazfitFalconCoordinator.class),
|
||||
|
@ -1457,6 +1457,7 @@
|
||||
<string name="devicetype_amazfit_bip3">Amazfit Bip 3</string>
|
||||
<string name="devicetype_amazfit_bip3_pro">Amazfit Bip 3 Pro</string>
|
||||
<string name="devicetype_amazfit_bip5">Amazfit Bip 5</string>
|
||||
<string name="devicetype_amazfit_bip5_unity">Amazfit Bip 5 Unity</string>
|
||||
<string name="devicetype_amazfit_gtr4">Amazfit GTR 4</string>
|
||||
<string name="devicetype_amazfit_trex_2">Amazfit T-Rex 2</string>
|
||||
<string name="devicetype_amazfit_trex_ultra">Amazfit T-Rex Ultra</string>
|
||||
|
Loading…
Reference in New Issue
Block a user