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

SecurityException when call sentry.init in some Android 11 #2646

Closed
wangzs opened this issue Apr 10, 2023 · 3 comments · Fixed by #2653
Closed

SecurityException when call sentry.init in some Android 11 #2646

wangzs opened this issue Apr 10, 2023 · 3 comments · Fixed by #2653
Assignees

Comments

@wangzs
Copy link

wangzs commented Apr 10, 2023

Integration

sentry-android

Build System

Gradle

AGP Version

7.2.2

Proguard

Enabled

Version

6.17.0

Steps to Reproduce

call SentryAndroid.init

Expected Result

No exception

Actual Result

image

some online user occur this exception (I did not reproduce this exception)

@wangzs wangzs added Platform: Android Type: Bug Something isn't working labels Apr 10, 2023
@kahest kahest moved this from Needs Discussion to Needs Investigation in Mobile & Cross Platform SDK Apr 11, 2023
@G00fY2
Copy link

G00fY2 commented Apr 14, 2023

There is a Android OS bug in Android 11 (API 30) which causes the ConnectivityManager.getNetworkCapabilities to crash with a SecurityException.

You can check out this issue in the Google issue tracker: ConnectivityManager registering callback throws security exception
There is also a SO discussion: Getting Security exception while trying to fetch networkcapabilities on android 11

@markushi
Copy link
Member

Hey everyone, thanks for opening this issue and providing feedback! Good news: We'll ship a fix with the next release, I'll keep you posted once it's out.

@markushi
Copy link
Member

markushi commented May 2, 2023

The fix shipped with the 6.18.0 version of our SDK.

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

Successfully merging a pull request may close this issue.

3 participants