I have listed this permission in the manifest file:
<uses-permission android:name="android.permission.ACCESS_BACKGROUND_LOCATION" />
However it is not granted on Pie or older, this returns false:
ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_BACKGROUND_LOCATION) == PackageManager.PERMISSION_GRANTED
I thought that this was automatically granted on older devices?
Same behavior when targeting both api 29 and api 30.