Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add (NOT_)EXPORTED to registerReceiver for Android 14 target #4559

Merged

Conversation

jpelgrom
Copy link
Member

@jpelgrom jpelgrom commented Aug 6, 2024

Summary

For dynamically registered receivers, add whether or not they are exported to prevent a crash due to a behavior change when we start targeting Android 14. Exported or not depends on the list of system intents (not on list = exported to be safe): https://developer.android.com/about/versions/12/reference/broadcast-intents-31.

Screenshots

n/a

Link to pull request in Documentation repository

n/a

Any other notes

 - For dynamically registered receivers, add whether or not they are exported to prevent a crash due to a behavior change when we start targeting Android 14: https://developer.android.com/about/versions/14/behavior-changes-14#runtime-receivers-exported. Exported or not depends on the list of system intents (not on list = exported to be safe): https://developer.android.com/about/versions/12/reference/broadcast-intents-31.
@dshokouhi dshokouhi merged commit 241d724 into home-assistant:master Sep 6, 2024
4 checks passed
@jpelgrom jpelgrom deleted the android-14-receiver-exported branch September 6, 2024 04:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants