countly-sdk-android icon indicating copy to clipboard operation
countly-sdk-android copied to clipboard

Remove BROADCAST_CLOSE_SYSTEM_DIALOGS from sdk

Open foooorsyth opened this issue 3 years ago • 0 comments

  • Removed BROADCAST_CLOSE_SYSTEM_DIALOGS permission from the SDK's manifest. If this permission is merged into the manifest of a system app on Android 12, it can prevent the app from starting if BROADCAST_CLOSE_SYSTEM_DIALOGS isn't in the app's privapp-permissions file
  • Added the android:maxSdkVersion="30" attribute to the BROADCAST_CLOSE_SYSTEM_DIALOGS permission in the sample app's manifest, so that devices running Android 12 and up don't request the deprecated permission

In your docs, it would probably be best to just recommend this permission (with the maxSdkVersion attribute) for Countly users that are utilizing CountlyPush. For those not using CountlyPush, it's an aggressive permission that isn't used.

https://developer.android.com/about/versions/12/behavior-changes-all#close-system-dialogs

foooorsyth avatar Sep 21 '22 18:09 foooorsyth