1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-12-27 19:15: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() { public boolean supportsAgpsUpdates() {
return false; return true;
} }
/**
* true for Zepp OS 2.0+, false for Zepp OS 1
*/
public boolean sendAgpsAsFileTransfer() { public boolean sendAgpsAsFileTransfer() {
return true; return true;
} }

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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