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

One of RECEIVER_EXPORTED or RECEIVER_NOT_EXPORTED should be specified when a receiver isn't being registered exclusively for system broadcasts #70

Open
FelipeGAlmeida opened this issue Aug 27, 2024 · 1 comment

Comments

@FelipeGAlmeida
Copy link

FelipeGAlmeida commented Aug 27, 2024

With the advent of Android 14, the receivers must be updated to not throw a security exception.

More info:
https://stackoverflow.com/questions/77235063/one-of-receiver-exported-or-receiver-not-exported-should-be-specified-when-a-rec

TL;DL;

We need to update this line:
context.registerReceiver(this, filter);

To something like:
context.registerReceiver(this, filter, RECEIVER_NOT_EXPORTED);

Thanks in advance.

@FelipeGAlmeida
Copy link
Author

There were a couple of changes besides the one listed above.

I've created a fork with an updated version (that fixes this issue):
Cropiwa Updated

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
@FelipeGAlmeida and others