mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-12-27 19:15:50 +01:00
Update some manufacturers with brand names
Most users will not recognize the actual manufacturers, so let's replace with the brand names.
This commit is contained in:
parent
1315931ff8
commit
42def1cefb
@ -43,7 +43,7 @@ import nodomain.freeyourgadget.gadgetbridge.service.devices.unknown.UnknownDevic
|
|||||||
public class UnknownDeviceCoordinator extends AbstractDeviceCoordinator {
|
public class UnknownDeviceCoordinator extends AbstractDeviceCoordinator {
|
||||||
private final UnknownSampleProvider sampleProvider;
|
private final UnknownSampleProvider sampleProvider;
|
||||||
|
|
||||||
private static final class UnknownSampleProvider implements SampleProvider {
|
private static final class UnknownSampleProvider implements SampleProvider<AbstractActivitySample> {
|
||||||
@Override
|
@Override
|
||||||
public ActivityKind normalizeType(int rawType) {
|
public ActivityKind normalizeType(int rawType) {
|
||||||
return ActivityKind.UNKNOWN;
|
return ActivityKind.UNKNOWN;
|
||||||
@ -60,12 +60,12 @@ public class UnknownDeviceCoordinator extends AbstractDeviceCoordinator {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public List getAllActivitySamples(int timestamp_from, int timestamp_to) {
|
public List<AbstractActivitySample> getAllActivitySamples(int timestamp_from, int timestamp_to) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public List getActivitySamples(int timestamp_from, int timestamp_to) {
|
public List<AbstractActivitySample> getActivitySamples(int timestamp_from, int timestamp_to) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -100,7 +100,6 @@ public class UnknownDeviceCoordinator extends AbstractDeviceCoordinator {
|
|||||||
sampleProvider = new UnknownSampleProvider();
|
sampleProvider = new UnknownSampleProvider();
|
||||||
}
|
}
|
||||||
|
|
||||||
@NonNull
|
|
||||||
@Override
|
@Override
|
||||||
public boolean supports(GBDeviceCandidate candidate) {
|
public boolean supports(GBDeviceCandidate candidate) {
|
||||||
return false;
|
return false;
|
||||||
@ -125,39 +124,9 @@ public class UnknownDeviceCoordinator extends AbstractDeviceCoordinator {
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean supportsActivityDataFetching() {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean supportsActivityTracking() {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean supportsScreenshots(final GBDevice device) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public int getAlarmSlotCount(GBDevice device) {
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean supportsHeartRateMeasurement(GBDevice device) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String getManufacturer() {
|
public String getManufacturer() {
|
||||||
return "unknown";
|
return "Generic";
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean supportsAppsManagement(final GBDevice device) {
|
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@ -165,42 +134,6 @@ public class UnknownDeviceCoordinator extends AbstractDeviceCoordinator {
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean supportsCalendarEvents() {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean supportsRealtimeData() {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean supportsWeather() {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean supportsFindDevice() {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean supportsLedColor() {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean supportsRgbLedColor() {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
@NonNull
|
|
||||||
@Override
|
|
||||||
public int[] getColorPresets() {
|
|
||||||
return new int[0];
|
|
||||||
}
|
|
||||||
|
|
||||||
@NonNull
|
@NonNull
|
||||||
@Override
|
@Override
|
||||||
public Class<? extends DeviceSupport> getDeviceSupportClass() {
|
public Class<? extends DeviceSupport> getDeviceSupportClass() {
|
||||||
@ -213,7 +146,6 @@ public class UnknownDeviceCoordinator extends AbstractDeviceCoordinator {
|
|||||||
return R.string.devicetype_unknown;
|
return R.string.devicetype_unknown;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@DrawableRes
|
@DrawableRes
|
||||||
public int getDefaultIconResource() {
|
public int getDefaultIconResource() {
|
||||||
|
@ -125,7 +125,7 @@ public class BinarySensorCoordinator extends AbstractBLEDeviceCoordinator {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String getManufacturer() {
|
public String getManufacturer() {
|
||||||
return "DIY";
|
return "Generic";
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -75,7 +75,7 @@ public class CyclingSensorCoordinator extends AbstractBLEDeviceCoordinator {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String getManufacturer() {
|
public String getManufacturer() {
|
||||||
return "Unknown";
|
return "Generic";
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -39,7 +39,8 @@ import nodomain.freeyourgadget.gadgetbridge.service.devices.femometer.FemometerV
|
|||||||
public class FemometerVinca2DeviceCoordinator extends AbstractDeviceCoordinator {
|
public class FemometerVinca2DeviceCoordinator extends AbstractDeviceCoordinator {
|
||||||
@Override
|
@Override
|
||||||
public String getManufacturer() {
|
public String getManufacturer() {
|
||||||
return "Joytech Healthcare";
|
// Actual manufacturer is Joytech Healthcare
|
||||||
|
return "Femometer";
|
||||||
}
|
}
|
||||||
|
|
||||||
@NonNull
|
@NonNull
|
||||||
|
@ -92,7 +92,7 @@ public class FlipperZeroCoordinator extends AbstractBLEDeviceCoordinator {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String getManufacturer() {
|
public String getManufacturer() {
|
||||||
return "Flipper devices";
|
return "Flipper Devices";
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -22,13 +22,9 @@ package nodomain.freeyourgadget.gadgetbridge.devices.hplus;
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
import androidx.annotation.NonNull;
|
|
||||||
|
|
||||||
import java.util.regex.Pattern;
|
import java.util.regex.Pattern;
|
||||||
|
|
||||||
import nodomain.freeyourgadget.gadgetbridge.R;
|
import nodomain.freeyourgadget.gadgetbridge.R;
|
||||||
import nodomain.freeyourgadget.gadgetbridge.impl.GBDeviceCandidate;
|
|
||||||
import nodomain.freeyourgadget.gadgetbridge.model.DeviceType;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Pseudo Coordinator for the EXRIZU K8, a sub type of the HPLUS devices
|
* Pseudo Coordinator for the EXRIZU K8, a sub type of the HPLUS devices
|
||||||
@ -41,7 +37,7 @@ public class EXRIZUK8Coordinator extends HPlusCoordinator {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String getManufacturer() {
|
public String getManufacturer() {
|
||||||
return "EXRIZU";
|
return "Exrizu";
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -26,9 +26,6 @@ import android.os.ParcelUuid;
|
|||||||
import androidx.annotation.NonNull;
|
import androidx.annotation.NonNull;
|
||||||
import androidx.annotation.Nullable;
|
import androidx.annotation.Nullable;
|
||||||
|
|
||||||
import org.slf4j.Logger;
|
|
||||||
import org.slf4j.LoggerFactory;
|
|
||||||
|
|
||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
import java.util.Collection;
|
import java.util.Collection;
|
||||||
import java.util.Collections;
|
import java.util.Collections;
|
||||||
@ -63,8 +60,6 @@ import nodomain.freeyourgadget.gadgetbridge.service.devices.huami.HuamiVibration
|
|||||||
import nodomain.freeyourgadget.gadgetbridge.util.Prefs;
|
import nodomain.freeyourgadget.gadgetbridge.util.Prefs;
|
||||||
|
|
||||||
public abstract class HuamiCoordinator extends AbstractBLEDeviceCoordinator {
|
public abstract class HuamiCoordinator extends AbstractBLEDeviceCoordinator {
|
||||||
private static final Logger LOG = LoggerFactory.getLogger(HuamiCoordinator.class);
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Class<? extends Activity> getPairingActivity() {
|
public Class<? extends Activity> getPairingActivity() {
|
||||||
return MiBandPairingActivity.class;
|
return MiBandPairingActivity.class;
|
||||||
@ -95,11 +90,6 @@ public abstract class HuamiCoordinator extends AbstractBLEDeviceCoordinator {
|
|||||||
return "Huami";
|
return "Huami";
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean supportsAppsManagement(final GBDevice device) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean supportsFlashing() {
|
public boolean supportsFlashing() {
|
||||||
return true;
|
return true;
|
||||||
@ -110,11 +100,6 @@ public abstract class HuamiCoordinator extends AbstractBLEDeviceCoordinator {
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean supportsCalendarEvents() {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean supportsRealtimeData() {
|
public boolean supportsRealtimeData() {
|
||||||
return true;
|
return true;
|
||||||
@ -525,11 +510,6 @@ public abstract class HuamiCoordinator extends AbstractBLEDeviceCoordinator {
|
|||||||
return prefs.getBoolean(DeviceSettingsPreferenceConst.PREF_WORKOUT_SEND_GPS_TO_BAND, false);
|
return prefs.getBoolean(DeviceSettingsPreferenceConst.PREF_WORKOUT_SEND_GPS_TO_BAND, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean supportsScreenshots(final GBDevice device) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean supportsFindDevice() {
|
public boolean supportsFindDevice() {
|
||||||
return true;
|
return true;
|
||||||
|
@ -36,6 +36,12 @@ import nodomain.freeyourgadget.gadgetbridge.service.DeviceSupport;
|
|||||||
import nodomain.freeyourgadget.gadgetbridge.service.devices.huami.amazfitband5.AmazfitBand5Support;
|
import nodomain.freeyourgadget.gadgetbridge.service.devices.huami.amazfitband5.AmazfitBand5Support;
|
||||||
|
|
||||||
public class AmazfitBand5Coordinator extends HuamiCoordinator {
|
public class AmazfitBand5Coordinator extends HuamiCoordinator {
|
||||||
|
@Override
|
||||||
|
public String getManufacturer() {
|
||||||
|
// Actual manufacturer is Huami
|
||||||
|
return "Amazfit";
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected Pattern getSupportedDeviceName() {
|
protected Pattern getSupportedDeviceName() {
|
||||||
return Pattern.compile(HuamiConst.AMAZFIT_BAND5_NAME, Pattern.CASE_INSENSITIVE);
|
return Pattern.compile(HuamiConst.AMAZFIT_BAND5_NAME, Pattern.CASE_INSENSITIVE);
|
||||||
|
@ -35,6 +35,12 @@ import nodomain.freeyourgadget.gadgetbridge.service.DeviceSupport;
|
|||||||
import nodomain.freeyourgadget.gadgetbridge.service.devices.huami.amazfitbip.AmazfitBipSupport;
|
import nodomain.freeyourgadget.gadgetbridge.service.devices.huami.amazfitbip.AmazfitBipSupport;
|
||||||
|
|
||||||
public class AmazfitBipCoordinator extends HuamiCoordinator {
|
public class AmazfitBipCoordinator extends HuamiCoordinator {
|
||||||
|
@Override
|
||||||
|
public String getManufacturer() {
|
||||||
|
// Actual manufacturer is Huami
|
||||||
|
return "Amazfit";
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected Pattern getSupportedDeviceName() {
|
protected Pattern getSupportedDeviceName() {
|
||||||
return Pattern.compile("Amazfit Bip Watch", Pattern.CASE_INSENSITIVE);
|
return Pattern.compile("Amazfit Bip Watch", Pattern.CASE_INSENSITIVE);
|
||||||
|
@ -34,6 +34,12 @@ import nodomain.freeyourgadget.gadgetbridge.service.DeviceSupport;
|
|||||||
import nodomain.freeyourgadget.gadgetbridge.service.devices.huami.amazfitbip3.AmazfitBip3Support;
|
import nodomain.freeyourgadget.gadgetbridge.service.devices.huami.amazfitbip3.AmazfitBip3Support;
|
||||||
|
|
||||||
public class AmazfitBip3Coordinator extends HuamiCoordinator {
|
public class AmazfitBip3Coordinator extends HuamiCoordinator {
|
||||||
|
@Override
|
||||||
|
public String getManufacturer() {
|
||||||
|
// Actual manufacturer is Huami
|
||||||
|
return "Amazfit";
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected Pattern getSupportedDeviceName() {
|
protected Pattern getSupportedDeviceName() {
|
||||||
return Pattern.compile("^Amazfit Bip 3$", Pattern.CASE_INSENSITIVE);
|
return Pattern.compile("^Amazfit Bip 3$", Pattern.CASE_INSENSITIVE);
|
||||||
|
@ -34,6 +34,12 @@ import nodomain.freeyourgadget.gadgetbridge.service.DeviceSupport;
|
|||||||
import nodomain.freeyourgadget.gadgetbridge.service.devices.huami.amazfitbip3pro.AmazfitBip3ProSupport;
|
import nodomain.freeyourgadget.gadgetbridge.service.devices.huami.amazfitbip3pro.AmazfitBip3ProSupport;
|
||||||
|
|
||||||
public class AmazfitBip3ProCoordinator extends HuamiCoordinator {
|
public class AmazfitBip3ProCoordinator extends HuamiCoordinator {
|
||||||
|
@Override
|
||||||
|
public String getManufacturer() {
|
||||||
|
// Actual manufacturer is Huami
|
||||||
|
return "Amazfit";
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected Pattern getSupportedDeviceName() {
|
protected Pattern getSupportedDeviceName() {
|
||||||
return Pattern.compile("Amazfit Bip 3 Pro", Pattern.CASE_INSENSITIVE);
|
return Pattern.compile("Amazfit Bip 3 Pro", Pattern.CASE_INSENSITIVE);
|
||||||
|
@ -35,6 +35,12 @@ import nodomain.freeyourgadget.gadgetbridge.service.DeviceSupport;
|
|||||||
import nodomain.freeyourgadget.gadgetbridge.service.devices.huami.amazfitbips.AmazfitBipSSupport;
|
import nodomain.freeyourgadget.gadgetbridge.service.devices.huami.amazfitbips.AmazfitBipSSupport;
|
||||||
|
|
||||||
public class AmazfitBipSCoordinator extends HuamiCoordinator {
|
public class AmazfitBipSCoordinator extends HuamiCoordinator {
|
||||||
|
@Override
|
||||||
|
public String getManufacturer() {
|
||||||
|
// Actual manufacturer is Huami
|
||||||
|
return "Amazfit";
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected Pattern getSupportedDeviceName() {
|
protected Pattern getSupportedDeviceName() {
|
||||||
return Pattern.compile("Amazfit Bip S", Pattern.CASE_INSENSITIVE);
|
return Pattern.compile("Amazfit Bip S", Pattern.CASE_INSENSITIVE);
|
||||||
|
@ -35,6 +35,12 @@ import nodomain.freeyourgadget.gadgetbridge.service.DeviceSupport;
|
|||||||
import nodomain.freeyourgadget.gadgetbridge.service.devices.huami.amazfitbipu.AmazfitBipUSupport;
|
import nodomain.freeyourgadget.gadgetbridge.service.devices.huami.amazfitbipu.AmazfitBipUSupport;
|
||||||
|
|
||||||
public class AmazfitBipUCoordinator extends HuamiCoordinator {
|
public class AmazfitBipUCoordinator extends HuamiCoordinator {
|
||||||
|
@Override
|
||||||
|
public String getManufacturer() {
|
||||||
|
// Actual manufacturer is Huami
|
||||||
|
return "Amazfit";
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected Pattern getSupportedDeviceName() {
|
protected Pattern getSupportedDeviceName() {
|
||||||
return Pattern.compile("Amazfit Bip U", Pattern.CASE_INSENSITIVE);
|
return Pattern.compile("Amazfit Bip U", Pattern.CASE_INSENSITIVE);
|
||||||
|
@ -35,6 +35,12 @@ import nodomain.freeyourgadget.gadgetbridge.service.DeviceSupport;
|
|||||||
import nodomain.freeyourgadget.gadgetbridge.service.devices.huami.amazfitbipupro.AmazfitBipUProSupport;
|
import nodomain.freeyourgadget.gadgetbridge.service.devices.huami.amazfitbipupro.AmazfitBipUProSupport;
|
||||||
|
|
||||||
public class AmazfitBipUProCoordinator extends HuamiCoordinator {
|
public class AmazfitBipUProCoordinator extends HuamiCoordinator {
|
||||||
|
@Override
|
||||||
|
public String getManufacturer() {
|
||||||
|
// Actual manufacturer is Huami
|
||||||
|
return "Amazfit";
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected Pattern getSupportedDeviceName() {
|
protected Pattern getSupportedDeviceName() {
|
||||||
return Pattern.compile("Amazfit Bip U Pro", Pattern.CASE_INSENSITIVE);
|
return Pattern.compile("Amazfit Bip U Pro", Pattern.CASE_INSENSITIVE);
|
||||||
|
@ -22,9 +22,6 @@ import android.net.Uri;
|
|||||||
|
|
||||||
import androidx.annotation.NonNull;
|
import androidx.annotation.NonNull;
|
||||||
|
|
||||||
import org.slf4j.Logger;
|
|
||||||
import org.slf4j.LoggerFactory;
|
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.regex.Pattern;
|
import java.util.regex.Pattern;
|
||||||
|
|
||||||
@ -34,12 +31,16 @@ import nodomain.freeyourgadget.gadgetbridge.activities.devicesettings.DeviceSpec
|
|||||||
import nodomain.freeyourgadget.gadgetbridge.devices.InstallHandler;
|
import nodomain.freeyourgadget.gadgetbridge.devices.InstallHandler;
|
||||||
import nodomain.freeyourgadget.gadgetbridge.devices.huami.HuamiCoordinator;
|
import nodomain.freeyourgadget.gadgetbridge.devices.huami.HuamiCoordinator;
|
||||||
import nodomain.freeyourgadget.gadgetbridge.impl.GBDevice;
|
import nodomain.freeyourgadget.gadgetbridge.impl.GBDevice;
|
||||||
import nodomain.freeyourgadget.gadgetbridge.impl.GBDeviceCandidate;
|
|
||||||
import nodomain.freeyourgadget.gadgetbridge.model.DeviceType;
|
|
||||||
import nodomain.freeyourgadget.gadgetbridge.service.DeviceSupport;
|
import nodomain.freeyourgadget.gadgetbridge.service.DeviceSupport;
|
||||||
import nodomain.freeyourgadget.gadgetbridge.service.devices.huami.amazfitcor.AmazfitCorSupport;
|
import nodomain.freeyourgadget.gadgetbridge.service.devices.huami.amazfitcor.AmazfitCorSupport;
|
||||||
|
|
||||||
public class AmazfitCorCoordinator extends HuamiCoordinator {
|
public class AmazfitCorCoordinator extends HuamiCoordinator {
|
||||||
|
@Override
|
||||||
|
public String getManufacturer() {
|
||||||
|
// Actual manufacturer is Huami
|
||||||
|
return "Amazfit";
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected Pattern getSupportedDeviceName() {
|
protected Pattern getSupportedDeviceName() {
|
||||||
return Pattern.compile("Amazfit Band|Amazfit Cor", Pattern.CASE_INSENSITIVE);
|
return Pattern.compile("Amazfit Band|Amazfit Cor", Pattern.CASE_INSENSITIVE);
|
||||||
|
@ -35,6 +35,12 @@ import nodomain.freeyourgadget.gadgetbridge.service.DeviceSupport;
|
|||||||
import nodomain.freeyourgadget.gadgetbridge.service.devices.huami.amazfitcor2.AmazfitCor2Support;
|
import nodomain.freeyourgadget.gadgetbridge.service.devices.huami.amazfitcor2.AmazfitCor2Support;
|
||||||
|
|
||||||
public class AmazfitCor2Coordinator extends HuamiCoordinator {
|
public class AmazfitCor2Coordinator extends HuamiCoordinator {
|
||||||
|
@Override
|
||||||
|
public String getManufacturer() {
|
||||||
|
// Actual manufacturer is Huami
|
||||||
|
return "Amazfit";
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected Pattern getSupportedDeviceName() {
|
protected Pattern getSupportedDeviceName() {
|
||||||
return Pattern.compile("Amazfit Band 2|Amazfit Cor 2", Pattern.CASE_INSENSITIVE);
|
return Pattern.compile("Amazfit Band 2|Amazfit Cor 2", Pattern.CASE_INSENSITIVE);
|
||||||
|
@ -35,6 +35,12 @@ import nodomain.freeyourgadget.gadgetbridge.service.DeviceSupport;
|
|||||||
import nodomain.freeyourgadget.gadgetbridge.service.devices.huami.amazfitgtr.AmazfitGTRSupport;
|
import nodomain.freeyourgadget.gadgetbridge.service.devices.huami.amazfitgtr.AmazfitGTRSupport;
|
||||||
|
|
||||||
public class AmazfitGTRCoordinator extends HuamiCoordinator {
|
public class AmazfitGTRCoordinator extends HuamiCoordinator {
|
||||||
|
@Override
|
||||||
|
public String getManufacturer() {
|
||||||
|
// Actual manufacturer is Huami
|
||||||
|
return "Amazfit";
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected Pattern getSupportedDeviceName() {
|
protected Pattern getSupportedDeviceName() {
|
||||||
return Pattern.compile("Amazfit GTR", Pattern.CASE_INSENSITIVE);
|
return Pattern.compile("Amazfit GTR", Pattern.CASE_INSENSITIVE);
|
||||||
|
@ -35,6 +35,12 @@ import nodomain.freeyourgadget.gadgetbridge.service.DeviceSupport;
|
|||||||
import nodomain.freeyourgadget.gadgetbridge.service.devices.huami.amazfitgtr.AmazfitGTRLiteSupport;
|
import nodomain.freeyourgadget.gadgetbridge.service.devices.huami.amazfitgtr.AmazfitGTRLiteSupport;
|
||||||
|
|
||||||
public class AmazfitGTRLiteCoordinator extends HuamiCoordinator {
|
public class AmazfitGTRLiteCoordinator extends HuamiCoordinator {
|
||||||
|
@Override
|
||||||
|
public String getManufacturer() {
|
||||||
|
// Actual manufacturer is Huami
|
||||||
|
return "Amazfit";
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected Pattern getSupportedDeviceName() {
|
protected Pattern getSupportedDeviceName() {
|
||||||
return Pattern.compile("Amazfit GTR L", Pattern.CASE_INSENSITIVE);
|
return Pattern.compile("Amazfit GTR L", Pattern.CASE_INSENSITIVE);
|
||||||
|
@ -35,6 +35,12 @@ import nodomain.freeyourgadget.gadgetbridge.service.DeviceSupport;
|
|||||||
import nodomain.freeyourgadget.gadgetbridge.service.devices.huami.amazfitgtr2.AmazfitGTR2Support;
|
import nodomain.freeyourgadget.gadgetbridge.service.devices.huami.amazfitgtr2.AmazfitGTR2Support;
|
||||||
|
|
||||||
public class AmazfitGTR2Coordinator extends HuamiCoordinator {
|
public class AmazfitGTR2Coordinator extends HuamiCoordinator {
|
||||||
|
@Override
|
||||||
|
public String getManufacturer() {
|
||||||
|
// Actual manufacturer is Huami
|
||||||
|
return "Amazfit";
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected Pattern getSupportedDeviceName() {
|
protected Pattern getSupportedDeviceName() {
|
||||||
return Pattern.compile("Amazfit GTR 2", Pattern.CASE_INSENSITIVE);
|
return Pattern.compile("Amazfit GTR 2", Pattern.CASE_INSENSITIVE);
|
||||||
|
@ -35,6 +35,12 @@ import nodomain.freeyourgadget.gadgetbridge.service.DeviceSupport;
|
|||||||
import nodomain.freeyourgadget.gadgetbridge.service.devices.huami.amazfitgtr2.AmazfitGTR2eSupport;
|
import nodomain.freeyourgadget.gadgetbridge.service.devices.huami.amazfitgtr2.AmazfitGTR2eSupport;
|
||||||
|
|
||||||
public class AmazfitGTR2eCoordinator extends HuamiCoordinator {
|
public class AmazfitGTR2eCoordinator extends HuamiCoordinator {
|
||||||
|
@Override
|
||||||
|
public String getManufacturer() {
|
||||||
|
// Actual manufacturer is Huami
|
||||||
|
return "Amazfit";
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected Pattern getSupportedDeviceName() {
|
protected Pattern getSupportedDeviceName() {
|
||||||
return Pattern.compile("Amazfit GTR 2e", Pattern.CASE_INSENSITIVE);
|
return Pattern.compile("Amazfit GTR 2e", Pattern.CASE_INSENSITIVE);
|
||||||
|
@ -35,6 +35,12 @@ import nodomain.freeyourgadget.gadgetbridge.service.DeviceSupport;
|
|||||||
import nodomain.freeyourgadget.gadgetbridge.service.devices.huami.amazfitgts.AmazfitGTSSupport;
|
import nodomain.freeyourgadget.gadgetbridge.service.devices.huami.amazfitgts.AmazfitGTSSupport;
|
||||||
|
|
||||||
public class AmazfitGTSCoordinator extends HuamiCoordinator {
|
public class AmazfitGTSCoordinator extends HuamiCoordinator {
|
||||||
|
@Override
|
||||||
|
public String getManufacturer() {
|
||||||
|
// Actual manufacturer is Huami
|
||||||
|
return "Amazfit";
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected Pattern getSupportedDeviceName() {
|
protected Pattern getSupportedDeviceName() {
|
||||||
return Pattern.compile("Amazfit GTS", Pattern.CASE_INSENSITIVE);
|
return Pattern.compile("Amazfit GTS", Pattern.CASE_INSENSITIVE);
|
||||||
|
@ -35,6 +35,12 @@ import nodomain.freeyourgadget.gadgetbridge.service.DeviceSupport;
|
|||||||
import nodomain.freeyourgadget.gadgetbridge.service.devices.huami.amazfitgts2.AmazfitGTS2Support;
|
import nodomain.freeyourgadget.gadgetbridge.service.devices.huami.amazfitgts2.AmazfitGTS2Support;
|
||||||
|
|
||||||
public class AmazfitGTS2Coordinator extends HuamiCoordinator {
|
public class AmazfitGTS2Coordinator extends HuamiCoordinator {
|
||||||
|
@Override
|
||||||
|
public String getManufacturer() {
|
||||||
|
// Actual manufacturer is Huami
|
||||||
|
return "Amazfit";
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected Pattern getSupportedDeviceName() {
|
protected Pattern getSupportedDeviceName() {
|
||||||
return Pattern.compile("Amazfit GTS 2", Pattern.CASE_INSENSITIVE);
|
return Pattern.compile("Amazfit GTS 2", Pattern.CASE_INSENSITIVE);
|
||||||
|
@ -35,6 +35,12 @@ import nodomain.freeyourgadget.gadgetbridge.service.DeviceSupport;
|
|||||||
import nodomain.freeyourgadget.gadgetbridge.service.devices.huami.amazfitgts2.AmazfitGTS2eSupport;
|
import nodomain.freeyourgadget.gadgetbridge.service.devices.huami.amazfitgts2.AmazfitGTS2eSupport;
|
||||||
|
|
||||||
public class AmazfitGTS2eCoordinator extends HuamiCoordinator {
|
public class AmazfitGTS2eCoordinator extends HuamiCoordinator {
|
||||||
|
@Override
|
||||||
|
public String getManufacturer() {
|
||||||
|
// Actual manufacturer is Huami
|
||||||
|
return "Amazfit";
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected Pattern getSupportedDeviceName() {
|
protected Pattern getSupportedDeviceName() {
|
||||||
return Pattern.compile("Amazfit GTS 2e", Pattern.CASE_INSENSITIVE);
|
return Pattern.compile("Amazfit GTS 2e", Pattern.CASE_INSENSITIVE);
|
||||||
|
@ -38,6 +38,12 @@ import nodomain.freeyourgadget.gadgetbridge.service.DeviceSupport;
|
|||||||
import nodomain.freeyourgadget.gadgetbridge.service.devices.huami.amazfitneo.AmazfitNeoSupport;
|
import nodomain.freeyourgadget.gadgetbridge.service.devices.huami.amazfitneo.AmazfitNeoSupport;
|
||||||
|
|
||||||
public class AmazfitNeoCoordinator extends HuamiCoordinator {
|
public class AmazfitNeoCoordinator extends HuamiCoordinator {
|
||||||
|
@Override
|
||||||
|
public String getManufacturer() {
|
||||||
|
// Actual manufacturer is Huami
|
||||||
|
return "Amazfit";
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected Pattern getSupportedDeviceName() {
|
protected Pattern getSupportedDeviceName() {
|
||||||
return Pattern.compile(HuamiConst.AMAZFIT_NEO_NAME, Pattern.CASE_INSENSITIVE);
|
return Pattern.compile(HuamiConst.AMAZFIT_NEO_NAME, Pattern.CASE_INSENSITIVE);
|
||||||
|
@ -35,6 +35,12 @@ import nodomain.freeyourgadget.gadgetbridge.service.DeviceSupport;
|
|||||||
import nodomain.freeyourgadget.gadgetbridge.service.devices.huami.amazfittrex.AmazfitTRexSupport;
|
import nodomain.freeyourgadget.gadgetbridge.service.devices.huami.amazfittrex.AmazfitTRexSupport;
|
||||||
|
|
||||||
public class AmazfitTRexCoordinator extends HuamiCoordinator {
|
public class AmazfitTRexCoordinator extends HuamiCoordinator {
|
||||||
|
@Override
|
||||||
|
public String getManufacturer() {
|
||||||
|
// Actual manufacturer is Huami
|
||||||
|
return "Amazfit";
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected Pattern getSupportedDeviceName() {
|
protected Pattern getSupportedDeviceName() {
|
||||||
return Pattern.compile("Amazfit T-Rex", Pattern.CASE_INSENSITIVE);
|
return Pattern.compile("Amazfit T-Rex", Pattern.CASE_INSENSITIVE);
|
||||||
|
@ -35,6 +35,12 @@ import nodomain.freeyourgadget.gadgetbridge.service.DeviceSupport;
|
|||||||
import nodomain.freeyourgadget.gadgetbridge.service.devices.huami.amazfittrexpro.AmazfitTRexProSupport;
|
import nodomain.freeyourgadget.gadgetbridge.service.devices.huami.amazfittrexpro.AmazfitTRexProSupport;
|
||||||
|
|
||||||
public class AmazfitTRexProCoordinator extends HuamiCoordinator {
|
public class AmazfitTRexProCoordinator extends HuamiCoordinator {
|
||||||
|
@Override
|
||||||
|
public String getManufacturer() {
|
||||||
|
// Actual manufacturer is Huami
|
||||||
|
return "Amazfit";
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected Pattern getSupportedDeviceName() {
|
protected Pattern getSupportedDeviceName() {
|
||||||
return Pattern.compile("Amazfit T-Rex Pro", Pattern.CASE_INSENSITIVE);
|
return Pattern.compile("Amazfit T-Rex Pro", Pattern.CASE_INSENSITIVE);
|
||||||
|
@ -34,6 +34,12 @@ import nodomain.freeyourgadget.gadgetbridge.service.DeviceSupport;
|
|||||||
import nodomain.freeyourgadget.gadgetbridge.service.devices.huami.amazfitvergel.AmazfitVergeLSupport;
|
import nodomain.freeyourgadget.gadgetbridge.service.devices.huami.amazfitvergel.AmazfitVergeLSupport;
|
||||||
|
|
||||||
public class AmazfitVergeLCoordinator extends HuamiCoordinator {
|
public class AmazfitVergeLCoordinator extends HuamiCoordinator {
|
||||||
|
@Override
|
||||||
|
public String getManufacturer() {
|
||||||
|
// Actual manufacturer is Huami
|
||||||
|
return "Amazfit";
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected Pattern getSupportedDeviceName() {
|
protected Pattern getSupportedDeviceName() {
|
||||||
return Pattern.compile("Amazfit Verge L", Pattern.CASE_INSENSITIVE);
|
return Pattern.compile("Amazfit Verge L", Pattern.CASE_INSENSITIVE);
|
||||||
|
@ -36,6 +36,12 @@ import nodomain.freeyourgadget.gadgetbridge.service.DeviceSupport;
|
|||||||
import nodomain.freeyourgadget.gadgetbridge.service.devices.huami.amazfitx.AmazfitXSupport;
|
import nodomain.freeyourgadget.gadgetbridge.service.devices.huami.amazfitx.AmazfitXSupport;
|
||||||
|
|
||||||
public class AmazfitXCoordinator extends HuamiCoordinator {
|
public class AmazfitXCoordinator extends HuamiCoordinator {
|
||||||
|
@Override
|
||||||
|
public String getManufacturer() {
|
||||||
|
// Actual manufacturer is Huami
|
||||||
|
return "Amazfit";
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected Pattern getSupportedDeviceName() {
|
protected Pattern getSupportedDeviceName() {
|
||||||
return Pattern.compile(HuamiConst.AMAZFIT_X, Pattern.CASE_INSENSITIVE);
|
return Pattern.compile(HuamiConst.AMAZFIT_X, Pattern.CASE_INSENSITIVE);
|
||||||
|
@ -40,10 +40,17 @@ import nodomain.freeyourgadget.gadgetbridge.service.ServiceDeviceSupport;
|
|||||||
import nodomain.freeyourgadget.gadgetbridge.service.devices.huami.miband2.MiBand2Support;
|
import nodomain.freeyourgadget.gadgetbridge.service.devices.huami.miband2.MiBand2Support;
|
||||||
|
|
||||||
public class MiBand2Coordinator extends HuamiCoordinator {
|
public class MiBand2Coordinator extends HuamiCoordinator {
|
||||||
|
@Override
|
||||||
|
public String getManufacturer() {
|
||||||
|
// Actual manufacturer is Huami
|
||||||
|
return "Xiaomi";
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected Pattern getSupportedDeviceName() {
|
protected Pattern getSupportedDeviceName() {
|
||||||
return Pattern.compile(HuamiConst.MI_BAND2_NAME, Pattern.CASE_INSENSITIVE);
|
return Pattern.compile(HuamiConst.MI_BAND2_NAME, Pattern.CASE_INSENSITIVE);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public InstallHandler findInstallHandler(final Uri uri, final Context context) {
|
public InstallHandler findInstallHandler(final Uri uri, final Context context) {
|
||||||
final MiBand2FWInstallHandler handler = new MiBand2FWInstallHandler(uri, context);
|
final MiBand2FWInstallHandler handler = new MiBand2FWInstallHandler(uri, context);
|
||||||
|
@ -40,6 +40,12 @@ import nodomain.freeyourgadget.gadgetbridge.service.ServiceDeviceSupport;
|
|||||||
import nodomain.freeyourgadget.gadgetbridge.service.devices.huami.miband2.MiBand2Support;
|
import nodomain.freeyourgadget.gadgetbridge.service.devices.huami.miband2.MiBand2Support;
|
||||||
|
|
||||||
public class MiBand2HRXCoordinator extends HuamiCoordinator {
|
public class MiBand2HRXCoordinator extends HuamiCoordinator {
|
||||||
|
@Override
|
||||||
|
public String getManufacturer() {
|
||||||
|
// Actual manufacturer is Huami
|
||||||
|
return "Xiaomi";
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected Pattern getSupportedDeviceName() {
|
protected Pattern getSupportedDeviceName() {
|
||||||
return Pattern.compile(
|
return Pattern.compile(
|
||||||
|
@ -40,6 +40,12 @@ import nodomain.freeyourgadget.gadgetbridge.service.devices.huami.miband3.MiBand
|
|||||||
import nodomain.freeyourgadget.gadgetbridge.util.Prefs;
|
import nodomain.freeyourgadget.gadgetbridge.util.Prefs;
|
||||||
|
|
||||||
public class MiBand3Coordinator extends HuamiCoordinator {
|
public class MiBand3Coordinator extends HuamiCoordinator {
|
||||||
|
@Override
|
||||||
|
public String getManufacturer() {
|
||||||
|
// Actual manufacturer is Huami
|
||||||
|
return "Xiaomi";
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected Pattern getSupportedDeviceName() {
|
protected Pattern getSupportedDeviceName() {
|
||||||
return Pattern.compile(
|
return Pattern.compile(
|
||||||
|
@ -39,6 +39,12 @@ import nodomain.freeyourgadget.gadgetbridge.service.DeviceSupport;
|
|||||||
import nodomain.freeyourgadget.gadgetbridge.service.devices.huami.miband4.MiBand4Support;
|
import nodomain.freeyourgadget.gadgetbridge.service.devices.huami.miband4.MiBand4Support;
|
||||||
|
|
||||||
public class MiBand4Coordinator extends HuamiCoordinator {
|
public class MiBand4Coordinator extends HuamiCoordinator {
|
||||||
|
@Override
|
||||||
|
public String getManufacturer() {
|
||||||
|
// Actual manufacturer is Huami
|
||||||
|
return "Xiaomi";
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected Pattern getSupportedDeviceName() {
|
protected Pattern getSupportedDeviceName() {
|
||||||
return Pattern.compile(HuamiConst.MI_BAND4_NAME, Pattern.CASE_INSENSITIVE);
|
return Pattern.compile(HuamiConst.MI_BAND4_NAME, Pattern.CASE_INSENSITIVE);
|
||||||
|
@ -38,6 +38,12 @@ import nodomain.freeyourgadget.gadgetbridge.service.DeviceSupport;
|
|||||||
import nodomain.freeyourgadget.gadgetbridge.service.devices.huami.miband5.MiBand5Support;
|
import nodomain.freeyourgadget.gadgetbridge.service.devices.huami.miband5.MiBand5Support;
|
||||||
|
|
||||||
public class MiBand5Coordinator extends HuamiCoordinator {
|
public class MiBand5Coordinator extends HuamiCoordinator {
|
||||||
|
@Override
|
||||||
|
public String getManufacturer() {
|
||||||
|
// Actual manufacturer is Huami
|
||||||
|
return "Xiaomi";
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected Pattern getSupportedDeviceName() {
|
protected Pattern getSupportedDeviceName() {
|
||||||
return Pattern.compile(HuamiConst.MI_BAND5_NAME, Pattern.CASE_INSENSITIVE);
|
return Pattern.compile(HuamiConst.MI_BAND5_NAME, Pattern.CASE_INSENSITIVE);
|
||||||
|
@ -22,9 +22,6 @@ import android.net.Uri;
|
|||||||
|
|
||||||
import androidx.annotation.NonNull;
|
import androidx.annotation.NonNull;
|
||||||
|
|
||||||
import org.slf4j.Logger;
|
|
||||||
import org.slf4j.LoggerFactory;
|
|
||||||
|
|
||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.regex.Pattern;
|
import java.util.regex.Pattern;
|
||||||
@ -42,7 +39,11 @@ import nodomain.freeyourgadget.gadgetbridge.service.DeviceSupport;
|
|||||||
import nodomain.freeyourgadget.gadgetbridge.service.devices.huami.miband6.MiBand6Support;
|
import nodomain.freeyourgadget.gadgetbridge.service.devices.huami.miband6.MiBand6Support;
|
||||||
|
|
||||||
public class MiBand6Coordinator extends HuamiCoordinator {
|
public class MiBand6Coordinator extends HuamiCoordinator {
|
||||||
private static final Logger LOG = LoggerFactory.getLogger(MiBand6Coordinator.class);
|
@Override
|
||||||
|
public String getManufacturer() {
|
||||||
|
// Actual manufacturer is Huami
|
||||||
|
return "Xiaomi";
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected Pattern getSupportedDeviceName() {
|
protected Pattern getSupportedDeviceName() {
|
||||||
|
@ -28,6 +28,12 @@ import nodomain.freeyourgadget.gadgetbridge.devices.huami.zeppos.ZeppOsCoordinat
|
|||||||
import nodomain.freeyourgadget.gadgetbridge.impl.GBDevice;
|
import nodomain.freeyourgadget.gadgetbridge.impl.GBDevice;
|
||||||
|
|
||||||
public class MiBand7Coordinator extends ZeppOsCoordinator {
|
public class MiBand7Coordinator extends ZeppOsCoordinator {
|
||||||
|
@Override
|
||||||
|
public String getManufacturer() {
|
||||||
|
// Actual manufacturer is Huami
|
||||||
|
return "Xiaomi";
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String getDeviceBluetoothName() {
|
public String getDeviceBluetoothName() {
|
||||||
return HuamiConst.XIAOMI_SMART_BAND7_NAME;
|
return HuamiConst.XIAOMI_SMART_BAND7_NAME;
|
||||||
|
@ -35,6 +35,12 @@ import nodomain.freeyourgadget.gadgetbridge.service.DeviceSupport;
|
|||||||
import nodomain.freeyourgadget.gadgetbridge.service.devices.huami.zeppe.ZeppESupport;
|
import nodomain.freeyourgadget.gadgetbridge.service.devices.huami.zeppe.ZeppESupport;
|
||||||
|
|
||||||
public class ZeppECoordinator extends HuamiCoordinator {
|
public class ZeppECoordinator extends HuamiCoordinator {
|
||||||
|
@Override
|
||||||
|
public String getManufacturer() {
|
||||||
|
// Actual manufacturer is Huami
|
||||||
|
return "Amazfit";
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected Pattern getSupportedDeviceName() {
|
protected Pattern getSupportedDeviceName() {
|
||||||
return Pattern.compile("Zepp E", Pattern.CASE_INSENSITIVE);
|
return Pattern.compile("Zepp E", Pattern.CASE_INSENSITIVE);
|
||||||
|
@ -84,6 +84,12 @@ public abstract class ZeppOsCoordinator extends HuamiCoordinator {
|
|||||||
return Collections.emptyMap();
|
return Collections.emptyMap();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String getManufacturer() {
|
||||||
|
// Actual manufacturer is Huami
|
||||||
|
return "Amazfit";
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected final Pattern getSupportedDeviceName() {
|
protected final Pattern getSupportedDeviceName() {
|
||||||
// Most devices use the exact bluetooth name
|
// Most devices use the exact bluetooth name
|
||||||
|
@ -80,7 +80,8 @@ public class MiCompositionScaleCoordinator extends AbstractBLEDeviceCoordinator
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String getManufacturer() {
|
public String getManufacturer() {
|
||||||
return "Huami";
|
// Actual manufacturer is Huami
|
||||||
|
return "Xiaomi";
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -37,7 +37,8 @@ import nodomain.freeyourgadget.gadgetbridge.service.devices.miscale.MiSmartScale
|
|||||||
public class MiSmartScaleCoordinator extends AbstractBLEDeviceCoordinator {
|
public class MiSmartScaleCoordinator extends AbstractBLEDeviceCoordinator {
|
||||||
@Override
|
@Override
|
||||||
public String getManufacturer() {
|
public String getManufacturer() {
|
||||||
return "Huami";
|
// Actual manufacturer is Huami
|
||||||
|
return "Xiaomi";
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -37,7 +37,7 @@ public class ScannableDeviceCoordinator extends AbstractBLEDeviceCoordinator {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String getManufacturer() {
|
public String getManufacturer() {
|
||||||
return "unknown";
|
return "Generic";
|
||||||
}
|
}
|
||||||
|
|
||||||
@NonNull
|
@NonNull
|
||||||
|
@ -86,7 +86,7 @@ public class SoFlowCoordinator extends AbstractBLEDeviceCoordinator {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String getManufacturer() {
|
public String getManufacturer() {
|
||||||
return "SoFlow AG";
|
return "SoFlow";
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Loading…
Reference in New Issue
Block a user