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

Crash: java.lang.SecurityException Package android does not belong to 10347 #3580

Closed
n0vah opened this issue May 21, 2024 · 3 comments
Closed
Labels
bug Something isn't working pinpoint Issues with the AWS Android SDK for Pinpoint.

Comments

@n0vah
Copy link

n0vah commented May 21, 2024

Describe the bug
Some users on Android 11 and usually on background have crash SecurityException in EventRecorder.isNetworkAvailable

Stack trace

Fatal Exception: java.lang.SecurityException: Package android does not belong to 10347
       at android.os.Parcel.createExceptionOrNull(Parcel.java:2373)
       at android.os.Parcel.createException(Parcel.java:2357)
       at android.os.Parcel.readException(Parcel.java:2340)
       at android.os.Parcel.readException(Parcel.java:2282)
       at android.net.IConnectivityManager$Stub$Proxy.getNetworkCapabilities(IConnectivityManager.java:2543)
       at android.net.ConnectivityManager.getNetworkCapabilities(ConnectivityManager.java:1415)
       at com.amazonaws.mobileconnectors.pinpoint.internal.event.EventRecorder.isNetworkAvailable(EventRecorder.java:698)
       at com.amazonaws.mobileconnectors.pinpoint.internal.event.EventRecorder.access$100(EventRecorder.java:77)
       at com.amazonaws.mobileconnectors.pinpoint.internal.event.EventRecorder$1.run(EventRecorder.java:255)
       at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
       at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
       at java.lang.Thread.run(Thread.java:923)

Which AWS service(s) are affected?

Screenshots
image

Environment Information (please complete the following information):

  • AWS Android SDK Version: 2.75.0
  • Device: any
  • Android Version: 11
  • Specific to simulators: No
@mattcreaser mattcreaser added bug Something isn't working pinpoint Issues with the AWS Android SDK for Pinpoint. labels May 21, 2024
@mattcreaser
Copy link
Member

Thank you for the report @n0vah. We will have a look at this issue.

@tylerjroach
Copy link
Member

tylerjroach commented Jun 12, 2024

This appears to be an Android 11 bug. We will look to try/catch around the Android ConnectivityManager to avoid this crash. https://issuetracker.google.com/issues/175055271?pli=1

@phantumcode
Copy link
Member

Fix released in v2.75.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working pinpoint Issues with the AWS Android SDK for Pinpoint.
Projects
None yet
Development

No branches or pull requests

4 participants