Skip to content
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

BLUETOOTH_CONNECT should be limited to SDK 30 #359

Closed
lordfolken opened this issue May 9, 2024 · 4 comments · Fixed by #365
Closed

BLUETOOTH_CONNECT should be limited to SDK 30 #359

lordfolken opened this issue May 9, 2024 · 4 comments · Fixed by #365

Comments

@lordfolken
Copy link

Hello,

We use the library in XCSoar, and we get the following error in the log on modern android devices (14).
05-09 03:48:52.944 6708 6745 E BluetoothIOIOConnection: Did you forget to declare uses-permission of android.permission.BLUETOOTH? 05-09 03:48:52.945 6708 6745 E XCSoar : Failed to initialise IOIO bootstrap 'ioio.lib.android.bluetooth.BluetoothIOIOConnectionBootstrap@7e303b9': Need android.permission.BLUETOOTH_CONNECT permission for android.content.AttributionSource@f163109d: AdapterService getBondedDevices

I believe this needs to be corrected here:

<uses-permission android:name="android.permission.BLUETOOTH" />

and added like this here:

<!-- Request legacy Bluetooth permissions on older devices. -->
<uses-permission android:name="android.permission.BLUETOOTH"
                 android:maxSdkVersion="30" />
@hannesa2
Copy link
Collaborator

hannesa2 commented May 9, 2024

Btw, I'm not the only one, who can make pull requests
#365

@lordfolken
Copy link
Author

Btw, I'm not the only one, who can make pull requests #365

I'm sorry I know. I just wasnt sure about the correctness of it.

@hannesa2
Copy link
Collaborator

hannesa2 commented May 9, 2024

I just wasnt sure about the correctness of it.

Me neither. I expected, that you know more and successfully tested it. But we can give it a try.
But before, I'll fix this time thief onejar library

@hannesa2
Copy link
Collaborator

Here you go https://github.com/ytai/ioio/releases/tag/6.3

@lordfolken please keep me informed, if it solves your issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants