mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2026-07-31 07:44:24 +02:00
Huawei Freebuds Pro: Initial support
This commit is contained in:
@@ -4,6 +4,7 @@
|
|||||||
|
|
||||||
* Initial support for EarFun Air S and Air Pro 4 headphones
|
* Initial support for EarFun Air S and Air Pro 4 headphones
|
||||||
* Initial support for Garmin Instinct 3
|
* Initial support for Garmin Instinct 3
|
||||||
|
* Initial support for Huawei Freebuds Pro
|
||||||
* Amazfit Active 2: Fix device discovery
|
* Amazfit Active 2: Fix device discovery
|
||||||
* Amazfit GTR2e: Enable PAI support
|
* Amazfit GTR2e: Enable PAI support
|
||||||
* Fossil/Skagen Hybrids: Fix hidden upload button in app manager
|
* Fossil/Skagen Hybrids: Fix hidden upload button in app manager
|
||||||
|
|||||||
+35
@@ -0,0 +1,35 @@
|
|||||||
|
package nodomain.freeyourgadget.gadgetbridge.devices.huawei.freebudspro;
|
||||||
|
|
||||||
|
import androidx.annotation.NonNull;
|
||||||
|
|
||||||
|
import java.util.regex.Pattern;
|
||||||
|
|
||||||
|
import nodomain.freeyourgadget.gadgetbridge.R;
|
||||||
|
import nodomain.freeyourgadget.gadgetbridge.devices.huawei.HuaweiFreebudsCoordinator;
|
||||||
|
import nodomain.freeyourgadget.gadgetbridge.model.DeviceType;
|
||||||
|
import nodomain.freeyourgadget.gadgetbridge.service.DeviceSupport;
|
||||||
|
import nodomain.freeyourgadget.gadgetbridge.service.devices.huawei.HuaweiFreebudsSupport;
|
||||||
|
|
||||||
|
public class HuaweiFreebudsProCoordinator extends HuaweiFreebudsCoordinator {
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected Pattern getSupportedDeviceName() {
|
||||||
|
return Pattern.compile("huawei freebuds pro.*", Pattern.CASE_INSENSITIVE);
|
||||||
|
}
|
||||||
|
|
||||||
|
@NonNull
|
||||||
|
@Override
|
||||||
|
public Class<? extends DeviceSupport> getDeviceSupportClass() {
|
||||||
|
return HuaweiFreebudsSupport.class;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public DeviceType getDeviceType() {
|
||||||
|
return DeviceType.HUAWEI_FREEBUDS_PRO;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int getDeviceNameResource() {
|
||||||
|
return R.string.devicetype_huawei_freebuds_pro;
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -186,6 +186,7 @@ import nodomain.freeyourgadget.gadgetbridge.devices.huami.miband6.MiBand6Coordin
|
|||||||
import nodomain.freeyourgadget.gadgetbridge.devices.huami.miband7.MiBand7Coordinator;
|
import nodomain.freeyourgadget.gadgetbridge.devices.huami.miband7.MiBand7Coordinator;
|
||||||
import nodomain.freeyourgadget.gadgetbridge.devices.huami.zeppe.ZeppECoordinator;
|
import nodomain.freeyourgadget.gadgetbridge.devices.huami.zeppe.ZeppECoordinator;
|
||||||
import nodomain.freeyourgadget.gadgetbridge.devices.huawei.freebuds5i.HuaweiFreebuds5iCoordinator;
|
import nodomain.freeyourgadget.gadgetbridge.devices.huawei.freebuds5i.HuaweiFreebuds5iCoordinator;
|
||||||
|
import nodomain.freeyourgadget.gadgetbridge.devices.huawei.freebudspro.HuaweiFreebudsProCoordinator;
|
||||||
import nodomain.freeyourgadget.gadgetbridge.devices.huawei.honorband3.HonorBand3Coordinator;
|
import nodomain.freeyourgadget.gadgetbridge.devices.huawei.honorband3.HonorBand3Coordinator;
|
||||||
import nodomain.freeyourgadget.gadgetbridge.devices.huawei.honorband4.HonorBand4Coordinator;
|
import nodomain.freeyourgadget.gadgetbridge.devices.huawei.honorband4.HonorBand4Coordinator;
|
||||||
import nodomain.freeyourgadget.gadgetbridge.devices.huawei.honorband5.HonorBand5Coordinator;
|
import nodomain.freeyourgadget.gadgetbridge.devices.huawei.honorband5.HonorBand5Coordinator;
|
||||||
@@ -593,6 +594,7 @@ public enum DeviceType {
|
|||||||
HUAWEIWATCH3(HuaweiWatch3Coordinator.class),
|
HUAWEIWATCH3(HuaweiWatch3Coordinator.class),
|
||||||
HUAWEIWATCH4PRO(HuaweiWatch4ProCoordinator.class),
|
HUAWEIWATCH4PRO(HuaweiWatch4ProCoordinator.class),
|
||||||
HUAWEI_FREEBUDS5I(HuaweiFreebuds5iCoordinator.class),
|
HUAWEI_FREEBUDS5I(HuaweiFreebuds5iCoordinator.class),
|
||||||
|
HUAWEI_FREEBUDS_PRO(HuaweiFreebudsProCoordinator.class),
|
||||||
VESC(VescCoordinator.class),
|
VESC(VescCoordinator.class),
|
||||||
BINARY_SENSOR(BinarySensorCoordinator.class),
|
BINARY_SENSOR(BinarySensorCoordinator.class),
|
||||||
FLIPPER_ZERO(FlipperZeroCoordinator.class),
|
FLIPPER_ZERO(FlipperZeroCoordinator.class),
|
||||||
|
|||||||
@@ -1936,6 +1936,7 @@
|
|||||||
<string name="devicetype_huawei_watch3">Huawei Watch 3 (Pro)</string>
|
<string name="devicetype_huawei_watch3">Huawei Watch 3 (Pro)</string>
|
||||||
<string name="devicetype_huawei_watch4pro">Huawei Watch 4 (Pro)</string>
|
<string name="devicetype_huawei_watch4pro">Huawei Watch 4 (Pro)</string>
|
||||||
<string name="devicetype_huawei_freebuds_5i">Huawei FreeBuds 5i</string>
|
<string name="devicetype_huawei_freebuds_5i">Huawei FreeBuds 5i</string>
|
||||||
|
<string name="devicetype_huawei_freebuds_pro">Huawei FreeBuds Pro</string>
|
||||||
<string name="devicetype_femometer_vinca2">Femometer Vinca II</string>
|
<string name="devicetype_femometer_vinca2">Femometer Vinca II</string>
|
||||||
<string name="devicetype_xiaomi_watch_lite">Xiaomi Watch Lite</string>
|
<string name="devicetype_xiaomi_watch_lite">Xiaomi Watch Lite</string>
|
||||||
<string name="devicetype_redmiwatch3active">Redmi Watch 3 Active</string>
|
<string name="devicetype_redmiwatch3active">Redmi Watch 3 Active</string>
|
||||||
|
|||||||
Reference in New Issue
Block a user