b3b / able

Python for Android Bluetooth Low Energy package
MIT License
38 stars 18 forks source link

After upgrading to new recipe, scanning doesn't work. #20

Closed dwmoffatt closed 3 years ago

dwmoffatt commented 3 years ago

After upgrading to use the new recipe, scanning has stopped working.

I get this error message:

11-14 07:22:28.012 2773 4619 E BluetoothUtils: Permission denial: Need ACCESS_FINE_LOCATION permission to get scan results

dwmoffatt commented 3 years ago

couple more pieces of information below is the configuration that works and doesn't work.

Works - config in buildozer android.api = 28 android.minapi = 21

Not working - config in buildozer android.api = 30 android.minapi = 22

b3b commented 3 years ago

@dwmoffatt Thanks for details. I have not tried to build with new SDKs yet.

ACCESS_FINE_LOCATION permission is required for SDK >= 29, according to https://developer.android.com/about/versions/10/privacy/changes

I updated the recipe, and also ACCESS_FINE_LOCATION should be added to the app buildozer.spec

android.permissions = BLUETOOTH, BLUETOOTH_ADMIN, ACCESS_FINE_LOCATION
dwmoffatt commented 3 years ago

I'll try it out tonight!