1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-07-09 23:21:34 +02:00
Gadgetbridge/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/util
narektor 84e452bd6b Galaxy Buds2 Pro support (this time proper) (#3049)
Mostly copied from the Buds Pro as those earbuds have a similar feature set and mostly the same protocol.

Working:
- Pairing
- Earbud and case battery level
- Finding lost device
- Settings:
	- Noise control:
    	- ANC/ambient/off
        - With one earbud
        - Voice detect and timeouts
    	- Ambient sound during calls
    - Touch options:
    	- Touch lock
        - Switch noise control, voice assistant, Spotify and volume actions
    	- Double tap edge
    - Equalizer
    - Sound balance
	- Seamless earbud connection

Can be improved:
- ~~ANC level and ambient sound volume do nothing, and don't seem to be supported on this model as there is no toggle for either in the official app.~~ (fixed: 26a9d274ae)
- Ambient sound customization has more options than on previous models, but I can't implement it properly as I can't really hear any difference between the options (my buds might be the issue though).
- ~~The touch lock toggle is once again inverted, like on the [Buds2](d2c4990c48)~~ (fixed: 21db5390c1).

Untested:
- Settings:
    - In-ear detection for calls
    - Ambient sound customization
    - Game mode

This PR also makes some visual changes to the settings of various Galaxy Buds models.

I'd also like to be added to the wiki's allow list. I want to add the Buds2 and Buds2 Pro to the list of supported devices.

---

And sorry for creating this many pull requests. This is mostly due to Codeberg breaking the reference to the branch.

Co-authored-by: Narek <narek.email@gmail.com>
Reviewed-on: https://codeberg.org/Freeyourgadget/Gadgetbridge/pulls/3049
Reviewed-by: José Rebelo <joserebelo@noreply.codeberg.org>
Reviewed-by: Andreas Shimokawa <ashimokawa@noreply.codeberg.org>
Co-authored-by: narektor <narektor@noreply.codeberg.org>
Co-committed-by: narektor <narektor@noreply.codeberg.org>
2023-02-21 14:50:24 +00:00
..
calendar Make calendar blacklist configurable per device 2022-07-05 19:58:21 +02:00
language Fix GeorgianTransliterator 2023-02-15 15:44:55 +01:00
protobuf Utils: added simple Protobuf creator 2022-09-15 01:40:05 +02:00
.gitignore Mi2: Initial support for wear location, hr during sleep and date format #323 2016-11-13 01:44:52 +01:00
AlarmUtils.java Handle one shot alarm for Fossil watch 2022-06-12 08:50:46 +02:00
AndroidUtils.java Remove KitKat support 2022-09-10 12:04:16 +02:00
ArrayUtils.java adding FitPro bands support 2021-09-21 16:37:19 +02:00
BcdUtil.java update license headers 2021-01-10 23:38:13 +01:00
BitmapUtil.java Xiaomi Smart Band 7: Initial support 2022-08-19 23:13:27 +02:00
BondingInterface.java Improved logging in bonding and tried to recover from weirdness 2021-05-30 01:00:48 +03:00
BondingUtil.java Allow DeviceService to target a specific device 2022-08-05 21:34:15 +02:00
CheckSums.java Change CRC16 method 2021-11-13 21:43:05 +01:00
CRC32C.java update license headers 2021-01-10 23:38:13 +01:00
CryptoUtils.java Mi Band 6: Sync alarms set on the watch like on Amazfit Bip U and others 2022-02-02 12:57:25 +01:00
DateTimeUtils.java Zepp OS: Display HR zones and Training Effect in Activity Details 2022-10-06 00:03:24 +02:00
DeviceHelper.java Galaxy Buds2 Pro support (this time proper) (#3049) 2023-02-21 14:50:24 +00:00
ECDH_B163.java Dirty port tinyECDH to Java, remove ndk dependencies 2022-09-27 10:51:14 +02:00
EmojiConverter.java update license headers 2021-01-10 23:38:13 +01:00
FileUtils.java Remove KitKat support 2022-09-10 12:04:16 +02:00
FormatUtils.java Refactor formatting of distance strings 2021-12-30 07:55:20 +01:00
GB.java Remove KitKat support 2022-09-10 12:04:16 +02:00
GBPrefs.java Device FlipperZero: added basic support for the Flipper Zero (#2840) 2022-09-04 23:05:57 +02:00
GpxParser.java add UUID to to GPX with opentracks namespace 2021-01-17 00:07:55 +01:00
GridAutoFitLayoutManager.java Fossil Hybrid HR: Add watchface preview images in the app manager 2022-06-17 14:45:10 +02:00
ImportExportSharedPreferences.java Make calendar blacklist configurable per device 2022-07-05 19:58:21 +02:00
JavaExtensions.java update license headers 2021-01-10 23:38:13 +01:00
LimitedQueue.java update license headers 2021-01-10 23:38:13 +01:00
MapUtils.java Xiaomi Smart Band 7: Initial support 2022-08-19 23:13:27 +02:00
NotificationUtils.java Zepp OS: Fix notification icons for work profile apps 2022-12-08 18:14:07 +00:00
Optional.java Fix calls to unsupported API functions 2022-10-02 16:04:14 +02:00
PebbleUtils.java update license headers 2021-01-10 23:38:13 +01:00
Prefs.java Amazfit GTR 4: Initial support 2022-10-22 22:03:49 +02:00
RtlUtils.java update license headers 2021-01-10 23:38:13 +01:00
StringUtils.java Amazfit GTR 4: Initial support 2022-10-22 22:03:49 +02:00
SwipeEvents.java update license headers 2021-01-10 23:38:13 +01:00
TimePreference.java update license headers 2021-01-10 23:38:13 +01:00
UriHelper.java update license headers 2021-01-10 23:38:13 +01:00
Version.java Fossil HR: fixed version calculation 2022-08-27 01:44:41 +02:00
WebViewSingleton.java Remove KitKat support 2022-09-10 12:04:16 +02:00
WidgetPreferenceStorage.java Widget and SleepAlarmWidget: modify for multidevice support 2022-05-28 14:57:01 +02:00
XTimePreference.java update license headers 2021-01-10 23:38:13 +01:00
XTimePreferenceFragment.java update license headers 2021-01-10 23:38:13 +01:00
ZipFile.java Amazfit GTR 4/GTS 4: Add AGPS Updates 2023-01-05 11:31:51 +00:00
ZipFileException.java Amazfit GTR 4/GTS 4: Add AGPS Updates 2023-01-05 11:31:51 +00:00