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 support for Android 34 (#642) #644

Closed
wants to merge 3 commits into from

Conversation

kabirnayeem99
Copy link

  • Fix issue - ' java.lang.SecurityException: ************: One of RECEIVER_EXPORTED or RECEIVER_NOT_EXPORTED should be specified when a receiver isn't being registered exclusively for system broadcasts caused on Android 14.
  • Remove deprecated code, or added alternative recommendations by Google.

…EIVER_EXPORTED or RECEIVER_NOT_EXPORTED (gotev#642)

gotev#642

Caused by: java.lang.SecurityException: ************: One of RECEIVER_EXPORTED or RECEIVER_NOT_EXPORTED should be specified when a receiver isn't being registered exclusively for system broadcasts
at android.os.Parcel.createExceptionOrNull(Parcel.java:3057)
at android.os.Parcel.createException(Parcel.java:3041)
at android.os.Parcel.readException(Parcel.java:3024)
at android.os.Parcel.readException(Parcel.java:2966)
at android.app.IActivityManager$Stub$Proxy.registerReceiverWithFeature(IActivityManager.java:5684)
at android.app.ContextImpl.registerReceiverInternal(ContextImpl.java:1852)
at android.app.ContextImpl.registerReceiver(ContextImpl.java:1792)
at android.app.ContextImpl.registerReceiver(ContextImpl.java:1780)
at android.content.ContextWrapper.registerReceiver(ContextWrapper.java:755)
at net.gotev.uploadservice.observer.request.BaseRequestObserver.register(BaseRequestObserver.kt:36)
at net.gotev.uploadservice.observer.request.GlobalRequestObserver.(GlobalRequestObserver.kt:12)
at net.gotev.uploadservice.observer.request.GlobalRequestObserver.(GlobalRequestObserver.kt:6)
at net.gotev.uploadservice.observer.request.GlobalRequestObserver.(Unknown Source:16)
@gotev
Copy link
Owner

gotev commented Oct 15, 2023

@kabirnayeem99 thank you for this PR, got some useful hints! To fully support Android 34 I've made another branch, as there were some other additional modifications to be made. Closing this PR as it's superseded by #647

@gotev gotev closed this Oct 15, 2023
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

Successfully merging this pull request may close these issues.

2 participants