Skip to content

Commit e87fb5e

Browse files
authored
Merge pull request #2516 from xitation/xi_battery_ble_opt
Include instruction on how to disable Battery Optimisation for the Android System Bluetooth app.
2 parents 005d693 + 5c38973 commit e87fb5e

13 files changed

Lines changed: 53 additions & 0 deletions

docs/EN/GettingHelp/BluetoothTroubleshooting.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,18 @@ Some of these issues likely apply to other Bluetooth Insulin pumps too, the Medt
1515

1616
---
1717

18+
(bluetoothtroubleshooting-bluetooth-battery-optimisation)=
19+
20+
## Bluetooth Battery Optimisation
21+
22+
Newer versions of Android have enable Battery optimisation for the system Bluetooth app. This is known to cause some issues for Bluetooth pumps and CGMs.
23+
24+
If you followed the [Setup Wizard](../SettingUpAaps/SetupWizard) and followed the configuration settings in the [Bluetooth Battery Optimisation](setup-wizard-bluetooth-battery-optimisation) section then this setting should be correct, however if you followed an older version of this guide its possible you have not changed this setting.
25+
26+
Verify this is correctly configured if you have pump an CGM disconnections.
27+
28+
---
29+
1830
(bluetoothtroubleshooting-apps-using-nearby-device-permission)=
1931

2032
## Apps that use the "Nearby devices" Android permission can cause connection drops and Pod activation problems

docs/EN/SettingUpAaps/SetupWizard.md

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,47 @@ Please select "Allow":
8484

8585
![Allow Background](../images/setup-wizard/Wizard05-Background.png)
8686

87+
(setup-wizard-bluetooth-battery-optimisation)=
88+
### Bluetooth battery optimisation
89+
90+
Newer versions of Android have added battery optimisation to the system Bluetooth application too.
91+
92+
As well as Disabling battery optimisation for **AAPS**, you will likely need to also disable this for the Bluetooth system app. Failure to do this may lead to pump connection dropouts and issues.
93+
94+
***NOTE: The xDrip documentation covers how to do this here: [xDrip documentation](https://navid200.github.io/xDrip/docs/BluetoothBatteryOpt.html)***
95+
96+
Follow these steps on Android 16, other versions will varies slightly from the provided screenshots:
97+
98+
1. Open Android settings and search for **Apps**, and open the Apps settings.
99+
100+
![settings_apps](../images/setup-wizard/settings_apps.png)
101+
102+
2. You will see the App settings, however we need to expand to see all apps, click on **See all apps** to expand.
103+
104+
![settings_apps](../images/setup-wizard/apps_not_expanded.png)
105+
106+
3. As the Bluetooth app is a system app its hidden by default, we need to show system apps. Click on the **three dots (hamburger)** on the top left (1). Then click on **Show System** (2).
107+
108+
![settings_apps](../images/setup-wizard/show_system.png)
109+
110+
4. Search for the `Bluetooth` app and click on `Bluetooth` and/or `Legacy Bluetooth` if both are present ensure the procedure is followed for both.
111+
112+
***NOTE: It's safe to ignore the `Bluetooth MIDI Service` this is not used by AAPS***
113+
114+
![settings_apps_1](../images/setup-wizard/apps_search_blue_13-14.png) ![settings_apps_2](../images/setup-wizard/apps_search_blue_12.png) ![settings_apps_3](../images/setup-wizard/apps_search_blue_15.png)
115+
116+
1. On Android 12 Click on `Battery`, Android 13+ Click on `App battery usage`,
117+
118+
![settings_apps_16](../images/setup-wizard/app_bluetooth.png)) ![settings_apps_12](../images/setup-wizard/app_bluetooth_12.png)
119+
120+
5. On Android 12+ select the `Unrestricted` option, on Android 15+ you need to expand the `Allow background usage` setting, click on the section highlighted in red to do this then follow step 6 to complete.
121+
122+
![bluetooth_settings_apps_12](../images/setup-wizard/app_bluetooth_unrestricted_12-14.png) ![bluetooth_settings_apps_15](../images/setup-wizard/app_bluetooth_allow_background.png)
123+
124+
6. On Android 16 Select ``Unrestricted``
125+
126+
![settings_apps](../images/setup-wizard/app_bluetooth_allow_background_unrestrict.png)
127+
87128
### Storage permission
88129

89130
**AAPS** needs to log information to the permanent storage of your smartphone. Permanent storage means that it will be available even after rebooting your smartphone. Other information is just lost, as it is not saved to permanent storage.
138 KB
Loading
100 KB
Loading
59.9 KB
Loading
130 KB
Loading
122 KB
Loading
125 KB
Loading
31 KB
Loading
44.3 KB
Loading

0 commit comments

Comments
 (0)