Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-117358

BLUETOOTH_SCAN permission flag neverForLocation

    XMLWordPrintable

Details

    • Android
    • 13
    • Foundation PM Staging

    Description

      There are 2 issues with "neverForLocation":

      1. default Permissions in Manifest

      For 'normal' BT LE Device Scan, no Location permission is needed.

      Only less use-cases with BEACONs can need Location

      From my experiences most of developers are using 'normal' BT LE devices where no location is needed

      So it would be great if default generation of BT permissions in Android Manifest can get a slight modification and add a permission flag:

      <uses-permission android:name="android.permission.BLUETOOTH_SCAN"
                       android:usesPermissionFlags="neverForLocation"/>  

      ATM for all my BT LE Apps I cannot use the default Manifest and have to overwrite the permissions.

      But I had to set the Flag, because without the Flag there were some devices under Android 13 where the DeviceList is empty - a very curious side-effect As soon as I add the neverForLocation flag all devices are listed again.

      2. Qt ignores neverForLocation flag

      If the neverForLocation flag is set, Qt ignores and asks user for location permission.

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              ablasche Alex Blasche
              ekkescorner Ekkehard
              Vladimir Minenko Vladimir Minenko
              Votes:
              4 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes