mapbox-gl-native-android icon indicating copy to clipboard operation
mapbox-gl-native-android copied to clipboard

Is `android.permission.GET_TASKS` required?

Open calvarez-ov opened this issue 4 years ago • 0 comments

When upgrading from mapbox android sdk 9.6.0 -> 9.6.1, we see a new permission added to our mainfest: android.permission.GET_TASKS.

It appears this is part of the transitive telemetry upgrade (from 6.2.0 to 6.2.2).

The permission was added in this commit: https://github.com/mapbox/mapbox-events-android/commit/f91ccf3c4757c61e2c7afef4d3ce81684357ab05

[telemetry] Add foreground/background information to location events.

Our app has minSdkVersion of 23.

Do we need this permission? What will be the consequence if we remove it?

Note that the documentation for this permission says it's deprecated, as of android api level 21: https://developer.android.com/reference/android/Manifest.permission#GET_TASKS

This constant was deprecated in API level 21. No longer enforced.

calvarez-ov avatar May 14 '21 10:05 calvarez-ov