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

Automatically enable / disable Bluetooth to scan devices #99

Closed
Sweazou opened this issue Jan 12, 2023 · 8 comments
Closed

Automatically enable / disable Bluetooth to scan devices #99

Sweazou opened this issue Jan 12, 2023 · 8 comments

Comments

@Sweazou
Copy link

Sweazou commented Jan 12, 2023

As I know, if the Bluetooth isn't enable, the app won't scan for devices, it'd be nice that the app automatically enable Bluetooth to scan devices if it isn't on and then turn it off after if it was off.
Idk maybe I'm crazy because nobody is talking about it.

@ASerbinski
Copy link

What would be the advantage of turning bluetooth off? Energy savings?

@Sweazou
Copy link
Author

Sweazou commented Jan 13, 2023

What would be the advantage of turning bluetooth off? Energy savings?

It'd but in my case my Bluetooth is always off when I'm not using it

@ASerbinski
Copy link

Yes, but why don't you leave it switched on? What is the use case for switching it off when not in use?

@Sweazou Sweazou closed this as not planned Won't fix, can't repro, duplicate, stale Jan 16, 2023
@Sweazou
Copy link
Author

Sweazou commented Jan 16, 2023

Security issues

@Sweazou Sweazou reopened this Jan 16, 2023
@ASerbinski
Copy link

Well this is an Android application, so it runs on an Android phone, which unlike those made by the fruit company, does NOT continually spew bluetooth beacons for the whole world to track. I think you might be overestimating the security risk associated with keeping bluetooth turned on.

@Sweazou
Copy link
Author

Sweazou commented Jan 16, 2023

I'm talking as an attacker

@Sn0wfreezeDev
Copy link
Member

There's an API which would allow the app to turn on Bluetooth, but the documentation states that it should only be used to enable Bluetooth on purpose. So we could not use that for background scanning.

Might be an option to put a setting in the app: activate Bluetooth when doing background scanning.

@Sn0wfreezeDev
Copy link
Member

Android 13 does no longer allow to activate / deactivate Bluetooth automaticaly. We added a detection if Bluetooth is disabled and will show a button to open the settings when using the manual scan

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

No branches or pull requests

3 participants