countly-sdk-android
countly-sdk-android copied to clipboard
Remove BROADCAST_CLOSE_SYSTEM_DIALOGS from sdk
- 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