1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-12-27 02:55:50 +01:00

Zepp OS: Enable AGPS updates for all devices

This commit is contained in:
José Rebelo 2023-08-12 13:25:13 +01:00
parent f86cd39385
commit 0e06bde741
10 changed files with 29 additions and 21 deletions

View File

@ -462,9 +462,12 @@ public abstract class Huami2021Coordinator extends HuamiCoordinator {
}
public boolean supportsAgpsUpdates() {
return false;
return true;
}
/**
* true for Zepp OS 2.0+, false for Zepp OS 1
*/
public boolean sendAgpsAsFileTransfer() {
return true;
}

View File

@ -61,6 +61,11 @@ public class AmazfitBand7Coordinator extends Huami2021Coordinator {
return new AmazfitBand7FWInstallHandler(uri, context);
}
@Override
public boolean supportsAgpsUpdates() {
return false;
}
@Override
public boolean supportsBluetoothPhoneCalls(final GBDevice device) {
return false;

View File

@ -61,11 +61,6 @@ public class AmazfitGTR3Coordinator extends Huami2021Coordinator {
return new AmazfitGTR3FWInstallHandler(uri, context);
}
@Override
public boolean supportsAgpsUpdates() {
return true;
}
@Override
public boolean sendAgpsAsFileTransfer() {
return false;

View File

@ -61,6 +61,11 @@ public class AmazfitGTR3ProCoordinator extends Huami2021Coordinator {
return new AmazfitGTR3ProFWInstallHandler(uri, context);
}
@Override
public boolean sendAgpsAsFileTransfer() {
return false;
}
@Override
public boolean supportsBluetoothPhoneCalls(final GBDevice device) {
return true;

View File

@ -66,11 +66,6 @@ public class AmazfitGTR4Coordinator extends Huami2021Coordinator {
return true;
}
@Override
public boolean supportsAgpsUpdates() {
return true;
}
@Override
public boolean supportsGpxUploads() {
return true;

View File

@ -61,11 +61,6 @@ public class AmazfitGTS3Coordinator extends Huami2021Coordinator {
return new AmazfitGTS3FWInstallHandler(uri, context);
}
@Override
public boolean supportsAgpsUpdates() {
return true;
}
@Override
public boolean sendAgpsAsFileTransfer() {
return false;

View File

@ -66,11 +66,6 @@ public class AmazfitGTS4Coordinator extends Huami2021Coordinator {
return true;
}
@Override
public boolean supportsAgpsUpdates() {
return true;
}
@Override
public boolean supportsGpxUploads() {
return true;

View File

@ -61,6 +61,11 @@ public class AmazfitGTS4MiniCoordinator extends Huami2021Coordinator {
return new AmazfitGTS4MiniFWInstallHandler(uri, context);
}
@Override
public boolean sendAgpsAsFileTransfer() {
return false;
}
@Override
public boolean supportsBluetoothPhoneCalls(final GBDevice device) {
return false;

View File

@ -71,6 +71,11 @@ public class AmazfitTRex2Coordinator extends Huami2021Coordinator {
return true;
}
@Override
public boolean sendAgpsAsFileTransfer() {
return false;
}
@Override
public boolean supportsBluetoothPhoneCalls(final GBDevice device) {
return false;

View File

@ -61,6 +61,11 @@ public class MiBand7Coordinator extends Huami2021Coordinator {
return new MiBand7FWInstallHandler(uri, context);
}
@Override
public boolean supportsAgpsUpdates() {
return false;
}
@Override
public boolean supportsScreenshots() {
return false;