-
-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The application is responding to devices that are not mine. #212
Comments
It's not great, but that's the best we can do. CAPod uses a heuristic based on signal strength to determine which are "yours". The Bluetooth address send by the AirPods is randomized and can't be used to determine which are yours. The name is also not part of the BLE broadcast that contains the information like battery status etc. Just doing the best we can with what is available. Direct access like Apple does it on iPhones, is not possible on Android's Bluetooth stack as far as I know. |
I understand, but there are 2 problems.
Additionally, I use Tasker to play music when connected to my AirPods, and it has worked fine so far using the MAC address to identify the device. Could this method be a potential solution, or I wasn't using this method long enough to encounter the problem you've mentioned? |
No There are two ways AirPods offer information:
The following information like
is not available through method 1 because Android does not support it.
Doesn't have a good solution, I already did everything I could think off to reduce false positives
Here we could maybe change the code so it does not execute any reactions if there are no AirPods connected to your phone 🤔 |
This should already be the case. We get only continue if there is a headset device connected: capod/app-common/src/main/java/eu/darken/capod/reaction/core/playpause/PlayPause.kt Lines 32 to 41 in 07a1179
capod/app-common/src/main/java/eu/darken/capod/common/bluetooth/BluetoothManager2.kt Lines 166 to 168 in 07a1179
|
Device: Galaxy S22+ with Airpods 2
The application may not be utilizing the device address or is solely dependent on the device name, "AirPods".
I am in a location with a numerous AirPods nearby.
It displays other devices that are not owned by the user as "mine", despite the "Show all devices" feature being disabled.
Consequently, the auto-play and auto-pause functions are triggered and plays/stops music even when no devices are connected.
The text was updated successfully, but these errors were encountered: