nightscout / AndroidAPS

Opensource automated insulin delivery system (closed loop)
https://wiki.aaps.app
GNU Affero General Public License v3.0
725 stars 1.76k forks source link

Both 3.1.0.1 full-release and its dev version have a bluetooth permission error #1948

Closed T1DLiberation closed 2 years ago

T1DLiberation commented 2 years ago

I updated 3.1.0.1 to resolve 3.1.0's theme color triggered infinite app crashing. Theme color problem has resolved by 3.1.0.1. However, a bluetooth permission error has occurred. Both full-release 3.1.0.1 and 3.1.0.1-dev have a bluetooth permission error. Screenshot attached 3.1.0.1 full-release only though. Screenshot_20220722-234746

I tried finding out the settings but there is no exact option that I can enable bluetooth of AAPS as an end user. Currently, I have rolled back to 3.1.0-dev.

Reporting bugs

heikeov commented 2 years ago

Hi, I have the same problem on an Unihertz Jelly 2 (Android 11) and Cubot KingKong2 (Android 10)...

MilosKozak commented 2 years ago

what pump?

T1DLiberation commented 2 years ago

Hi heikeov, I think 3.1.0.1's code triggered this issue. If it is the case, it won't be a specific device' problem and it may occur in many various devices. I just downgraded to 3.1.0-dev version. If you stay on dark theme on 3.1.0.1, you may build and install 3.1.0 stable version from android studio that can enable the bluetooth as long as you can use it working properly one.

T1DLiberation commented 2 years ago

Hi Kozac, I use Dana R(English). Android 9.

heikeov commented 2 years ago

I use Dana-i

heikeov commented 2 years ago

I go back to 3101-dev_o.

MilosKozak commented 2 years ago

i don't have this issue on Android 12. Other Android versions are?

heikeov commented 2 years ago

I think the problem occurs on Android 9 (TD1Liberation), 10 (me) and 11 (me).

T1DLiberation commented 2 years ago

In my case, 3.1.0-dev built yesterday is fine. However, both 3.1.0.1-dev and 3.1.0.1 stable version I built today have bluetooth permission issue. 3.1.0.1 has released just about 4 hours ago. If more people gets trouble, we will know what android versions they use. So far, I use Android 9 and heikeov use 10 and 11.

MilosKozak commented 2 years ago

ok, i can replicate on older phone.

T1DLiberation commented 2 years ago

Acknowledged. Thank you.

MilosKozak commented 2 years ago

fixed in master

T1DLiberation commented 2 years ago

I have confirmed the issue has been fixed on Android 9 and Dana R. Thanks again for your dedicated commitment, Kozak.