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

Caused by java.lang.SecurityException: ConnectivityService: Neither user 12183 nor current process has android.permission.ACCESS_NETWORK_STATE. #2224

Open
Drjacky opened this issue Oct 21, 2021 · 0 comments

Comments

@Drjacky
Copy link

Drjacky commented Oct 21, 2021

Fatal Exception: java.lang.RuntimeException: Error receiving broadcast Intent { act=android.net.conn.CONNECTIVITY_CHANGE flg=0x4200010 (has extras) } in com.squareup.picasso.Dispatcher$NetworkBroadcastReceiver@fbb5600
       at android.app.LoadedApk$ReceiverDispatcher$Args.lambda$getRunnable$0(LoadedApk.java:1493)
       at android.app.-$$Lambda$LoadedApk$ReceiverDispatcher$Args$_BumDX2UKsnxLVrE6UJsJZkotuA.run(:2)
       at android.os.Handler.handleCallback(Handler.java:873)
       at android.os.Handler.dispatchMessage(Handler.java:99)
       at android.os.Looper.loop(Looper.java:214)
       at android.app.ActivityThread.main(ActivityThread.java:7073)
       at java.lang.reflect.Method.invoke(Method.java)
       at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:494)
       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:964)

Caused by java.lang.SecurityException: ConnectivityService: Neither user 12183 nor current process has android.permission.ACCESS_NETWORK_STATE.
       at android.os.Parcel.createException(Parcel.java:1966)
       at android.os.Parcel.readException(Parcel.java:1934)
       at android.os.Parcel.readException(Parcel.java:1884)
       at android.net.IConnectivityManager$Stub$Proxy.getActiveNetworkInfo(IConnectivityManager.java:1549)
       at android.net.ConnectivityManager.getActiveNetworkInfo(ConnectivityManager.java:1038)
       at com.squareup.picasso.Dispatcher$NetworkBroadcastReceiver.onReceive(Dispatcher.java:570)
       at android.app.LoadedApk$ReceiverDispatcher$Args.lambda$getRunnable$0(LoadedApk.java:1483)
       at android.app.-$$Lambda$LoadedApk$ReceiverDispatcher$Args$_BumDX2UKsnxLVrE6UJsJZkotuA.run(:2)
       at android.os.Handler.handleCallback(Handler.java:873)
       at android.os.Handler.dispatchMessage(Handler.java:99)
       at android.os.Looper.loop(Looper.java:214)
       at android.app.ActivityThread.main(ActivityThread.java:7073)
       at java.lang.reflect.Method.invoke(Method.java)
       at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:494)
       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:964)

Caused by android.os.RemoteException: Remote stack trace:
      at android.app.ContextImpl.enforce(ContextImpl.java:1924)
      at android.app.ContextImpl.enforceCallingOrSelfPermission(ContextImpl.java:1952)
      at com.android.server.ConnectivityService.enforceAccessPermission(ConnectivityService.java:2246)
      at com.android.server.ConnectivityService.getActiveNetworkInfo(ConnectivityService.java:1644)
      at android.net.IConnectivityManager$Stub.onTransact(IConnectivityManager.java:86)

And it's strange that this didn't help:
https://github.com/square/picasso/pull/1977/files

Samsung Galaxy S8
Rooted: No
Android 9
Picasso: v2.8

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

1 participant