summaryrefslogtreecommitdiffstats
path: root/src/bluetooth/bluetooth.pro
diff options
context:
space:
mode:
authorAlex Blasche <alexander.blasche@qt.io>2020-02-12 16:18:51 +0100
committerAlex Blasche <alexander.blasche@qt.io>2020-02-21 10:39:40 +0100
commit0c8f3eb35eead6e4db7732020d7fb2863ba3787f (patch)
tree0cea4f6c0af28a8f22204386dbcf1674715b426e /src/bluetooth/bluetooth.pro
parentc81430b704e17d2f2eb5445e261ab3753bef3328 (diff)
Grant ACCESS_FINE_LOCATION to QtBluetooth
Since Android 10(SDK v29+) all types of Bluetooth device discovery require ACCESS_FINE_LOCATION. This is highlighted by https://developer.android.com/about/versions/10/privacy/changes#location-telephony-bluetooth-wifi Fixes: QTBUG-81875 Change-Id: Icaecca1f72a994dc774dc2b90194da15cc0787b0 Reviewed-by: Konstantin Ritt <ritt.ks@gmail.com> Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io> Reviewed-by: Oliver Wolff <oliver.wolff@qt.io>
Diffstat (limited to 'src/bluetooth/bluetooth.pro')
-rw-r--r--src/bluetooth/bluetooth.pro1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/bluetooth/bluetooth.pro b/src/bluetooth/bluetooth.pro
index e1e4d7a2..4d181dfb 100644
--- a/src/bluetooth/bluetooth.pro
+++ b/src/bluetooth/bluetooth.pro
@@ -139,6 +139,7 @@ qtConfig(bluez) {
ANDROID_PERMISSIONS = \
android.permission.BLUETOOTH \
android.permission.BLUETOOTH_ADMIN \
+ android.permission.ACCESS_FINE_LOCATION \
android.permission.ACCESS_COARSE_LOCATION # since Android 6.0 (API lvl 23)
ANDROID_BUNDLED_JAR_DEPENDENCIES = \
jar/QtAndroidBluetooth.jar:org.qtproject.qt5.android.bluetooth.QtBluetoothBroadcastReceiver