diff options
author | Alex Blasche <alexander.blasche@qt.io> | 2020-02-12 16:18:51 +0100 |
---|---|---|
committer | Alex Blasche <alexander.blasche@qt.io> | 2020-02-26 10:35:05 +0100 |
commit | e851596c284bfa3ef5be1bb982cf8a57360baed9 (patch) | |
tree | b6309e8bea4e3c4c2637c0f8cfab237884363625 | |
parent | 5f6187cb9e17b55cd2a68ac3094ae6a1879b50a2 (diff) | |
download | qtconnectivity-e851596c284bfa3ef5be1bb982cf8a57360baed9.tar.gz |
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>
(cherry picked from commit 0c8f3eb35eead6e4db7732020d7fb2863ba3787f)
-rw-r--r-- | src/bluetooth/bluetooth.pro | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/bluetooth/bluetooth.pro b/src/bluetooth/bluetooth.pro index 193ed217..0b253942 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 |