Skip to content
New issue

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

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

Already on GitHub? # to your account

Fix(core): Fix crash on start up for Android 14 #406

Merged
merged 1 commit into from
Sep 19, 2024

Conversation

stonebuzz
Copy link
Collaborator

Changes description

Fix crash on start up for Android 14 (only)

java.lang.SecurityException: org.glpi.inventory.agent: 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:5737)
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 android.content.ContextWrapper.registerReceiver(ContextWrapper.java:755)
at org.glpi.inventory.agent.ui.ActivityMain.onResume(ActivityMain.java:273)
at android.app.Instrumentation.callActivityOnResume(Instrumentation.java:1603)
at androidx.test.runner.MonitoringInstrumentation.callActivityOnResume(MonitoringInstrumentation.java:798)
at android.app.Activity.performResume(Activity.java:8769)
at android.app.ActivityThread.performResumeActivity(ActivityThread.java:4993)
at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:5036)
at android.app.servertransaction.ResumeActivityItem.execute(ResumeActivityItem.java:57)
at android.app.servertransaction.ActivityTransactionItem.execute(ActivityTransactionItem.java:45)
at android.app.servertransaction.TransactionExecutor.executeLifecycleState(TransactionExecutor.java:180)
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:98)

@stonebuzz stonebuzz force-pushed the fix_app_crash_android_14 branch from 6fa477d to d1a6e1a Compare September 19, 2024 10:35
@stonebuzz stonebuzz force-pushed the fix_app_crash_android_14 branch from fca3163 to a92d823 Compare September 19, 2024 12:51
@stonebuzz stonebuzz merged commit 6656619 into develop Sep 19, 2024
1 check failed
@stonebuzz stonebuzz deleted the fix_app_crash_android_14 branch September 19, 2024 12:52
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant