[GH-ISSUE #99] Automatically enable / disable Bluetooth to scan devices #68

Closed
opened 2026-02-26 21:31:44 +03:00 by kerem · 8 comments
Owner

Originally created by @Sweazou on GitHub (Jan 12, 2023).
Original GitHub issue: https://github.com/seemoo-lab/AirGuard/issues/99

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.

Originally created by @Sweazou on GitHub (Jan 12, 2023). Original GitHub issue: https://github.com/seemoo-lab/AirGuard/issues/99 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.
kerem closed this issue 2026-02-26 21:31:44 +03:00
Author
Owner

@ASerbinski commented on GitHub (Jan 12, 2023):

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

<!-- gh-comment-id:1380912696 --> @ASerbinski commented on GitHub (Jan 12, 2023): What would be the advantage of turning bluetooth off? Energy savings?
Author
Owner

@Sweazou commented on GitHub (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

<!-- gh-comment-id:1381465352 --> @Sweazou commented on GitHub (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
Author
Owner

@ASerbinski commented on GitHub (Jan 16, 2023):

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

<!-- gh-comment-id:1384053549 --> @ASerbinski commented on GitHub (Jan 16, 2023): Yes, but why don't you leave it switched on? What is the use case for switching it off when not in use?
Author
Owner

@Sweazou commented on GitHub (Jan 16, 2023):

Security issues

<!-- gh-comment-id:1384073887 --> @Sweazou commented on GitHub (Jan 16, 2023): Security issues
Author
Owner

@ASerbinski commented on GitHub (Jan 16, 2023):

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.

<!-- gh-comment-id:1384078043 --> @ASerbinski commented on GitHub (Jan 16, 2023): 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.
Author
Owner

@Sweazou commented on GitHub (Jan 16, 2023):

I'm talking as an attacker

<!-- gh-comment-id:1384083029 --> @Sweazou commented on GitHub (Jan 16, 2023): I'm talking as an attacker
Author
Owner

@Sn0wfreezeDev commented on GitHub (Jan 23, 2023):

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.

<!-- gh-comment-id:1400061416 --> @Sn0wfreezeDev commented on GitHub (Jan 23, 2023): 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.
Author
Owner

@Sn0wfreezeDev commented on GitHub (Mar 23, 2023):

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

<!-- gh-comment-id:1480850727 --> @Sn0wfreezeDev commented on GitHub (Mar 23, 2023): 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 in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/AirGuard#68
No description provided.