Fixed
Status Update
Comments
ad...@google.com <ad...@google.com> #2
Thank you very much for reporting the issue. For v 4.3.1, we have released static and dynamic SDK's to minimize the symbol duplication and to speed up our SDK startup time. We are working on this failure case and will provide updates as they are available.
Meanwhile, you can use dynamic one to fix your issue. It can be downloaded here:https://developers.google.com/cast/downloads/GoogleCastSDK-ios-4.3.1_dynamic.zip (link found here: https://developers.google.com/cast/docs/developers )
Meanwhile, you can use dynamic one to fix your issue. It can be downloaded here:
sl...@atlassian.com <sl...@atlassian.com> #3
Hi, thank you for the response. I will definetly try the SDK from the provided link above, to confirm that the issue is no longer present.
Also it would be awesome if it can be published via CocoaPods, as it removes the need of the detailed project setup descirbed in the tutorial.
Also it would be awesome if it can be published via CocoaPods, as it removes the need of the detailed project setup descirbed in the tutorial.
ad...@google.com <ad...@google.com> #4
Thanks for the update. The dynamic SDK will not be pushed to cocoapods, however the next push to cocoapods should fix the issue. We will keep cocoapods as static and the switch to dynamic will fix the compiler errors, but you would see some runtime warnings about duplicate symbols still. Do let us know if you need any other details.
ad...@google.com <ad...@google.com> #5
For v4.3.4 static SDK, issue still exists. Do we have any update?
vi...@adobe.com <vi...@adobe.com> #6
I can confirm that when using the 4.3.5 dynamic framework is working and not failing with duplicate errors issue
na...@ringcentral.com <na...@ringcentral.com> #7
For v4.4.2 static SDK, issue still exists.
vl...@spotify.com <vl...@spotify.com> #8
Still exists for v4.4.4...
[Deleted User] <[Deleted User]> #9
Still exists for v4.4.5...
[Deleted User] <[Deleted User]> #10
Hi, any updates?
ma...@zentity.com <ma...@zentity.com> #11
any updates on the cocoapods, this error still exists for v4.4.5
tr...@udemy.com <tr...@udemy.com> #12
any update on this? still happening on 4.4.6
va...@gmail.com <va...@gmail.com> #13
Do we have any update on this?
[Deleted User] <[Deleted User]> #14
I'd like to know more about an update on this for v4.4.6 — we've got iOS 13 users experiencing some issues and I'd like to update to the latest static version of the SDK, but this is preventing us from doing so. We can include the dynamic framework in the meantime, but all of the rest of our dependencies are sourced through CocoaPods, so it's a pretty inconvenient workaround.
br...@procore.com <br...@procore.com> #15
FWIW, it seems this is no longer an issue in v4.5.0 / iOS 14 / RN 0.63.2
ec...@gmail.com <ec...@gmail.com> #16
Please do re-open if its still an issue.
ec...@gmail.com <ec...@gmail.com> #17
deleted
ec...@gmail.com <ec...@gmail.com> #18 Restricted+
Restricted+
Comment has been deleted.
hz...@gmail.com <hz...@gmail.com> #19
It happens occasionally with our app.
Here is one from Samsung Galaxy S10e (Android 11):
java.lang.SecurityException: Package android does not belong to 10051
Stack trace:
at android.os.Parcel.createExceptionOrNull(Parcel.java:2385)
at android.os.Parcel.createException(Parcel.java:2369)
at android.os.Parcel.readException(Parcel.java:2352)
at android.os.Parcel.readException(Parcel.java:2294)
at android.net.IConnectivityManager$Stub$Proxy.getNetworkCapabilities(IConnectivityManager.java:3347)
at android.net.ConnectivityManager.getNetworkCapabilities(ConnectivityManager.java:1549)
Here is one from Samsung Galaxy S10e (Android 11):
java.lang.SecurityException: Package android does not belong to 10051
Stack trace:
at android.os.Parcel.createExceptionOrNull(Parcel.java:2385)
at android.os.Parcel.createException(Parcel.java:2369)
at android.os.Parcel.readException(Parcel.java:2352)
at android.os.Parcel.readException(Parcel.java:2294)
at android.net.IConnectivityManager$Stub$Proxy.getNetworkCapabilities(IConnectivityManager.java:3347)
at android.net.ConnectivityManager.getNetworkCapabilities(ConnectivityManager.java:1549)
al...@outlook.it <al...@outlook.it> #20
I have the same problem in a Zebra PS20 Android 11 device:
Caused by: java.lang.SecurityException: Package android does not belong to 10268
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.requestNetwork(IConnectivityManager.java:3539)
at android.net.ConnectivityManager.sendRequestForNetwork(ConnectivityManager.java:3694)
at android.net.ConnectivityManager.registerDefaultNetworkCallback(ConnectivityManager.java:4197)
at android.net.ConnectivityManager.registerDefaultNetworkCallback(ConnectivityManager.java:4164)
at it.soluzione1.smartiliomdm.service.ForegroundService.onCreate(ForegroundService.java:237)
at android.app.ActivityThread.handleCreateService(ActivityThread.java:4190)
... 8 common frames omitted
Caused by: android.os.RemoteException: Remote stack trace:
at android.app.AppOpsManager.checkPackage(AppOpsManager.java:7698)
at com.android.server.ConnectivityService.ensureSufficientPermissionsForRequest(ConnectivityService.java:5586)
at com.android.server.ConnectivityService.requestNetwork(ConnectivityService.java:5681)
at android.net.IConnectivityManager$Stub.onTransact(IConnectivityManager.java:1586)
at android.os.Binder.execTransactInternal(Binder.java:1154)
Caused by: java.lang.SecurityException: Package android does not belong to 10268
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.requestNetwork(IConnectivityManager.java:3539)
at android.net.ConnectivityManager.sendRequestForNetwork(ConnectivityManager.java:3694)
at android.net.ConnectivityManager.registerDefaultNetworkCallback(ConnectivityManager.java:4197)
at android.net.ConnectivityManager.registerDefaultNetworkCallback(ConnectivityManager.java:4164)
at it.soluzione1.smartiliomdm.service.ForegroundService.onCreate(ForegroundService.java:237)
at android.app.ActivityThread.handleCreateService(ActivityThread.java:4190)
... 8 common frames omitted
Caused by: android.os.RemoteException: Remote stack trace:
at android.app.AppOpsManager.checkPackage(AppOpsManager.java:7698)
at com.android.server.ConnectivityService.ensureSufficientPermissionsForRequest(ConnectivityService.java:5586)
at com.android.server.ConnectivityService.requestNetwork(ConnectivityService.java:5681)
at android.net.IConnectivityManager$Stub.onTransact(IConnectivityManager.java:1586)
at android.os.Binder.execTransactInternal(Binder.java:1154)
sv...@gmail.com <sv...@gmail.com> #21
Hi. It happens to us for Android 11 only. Devices: Samsung and Pixel.
According to firebase it happens more than once for user. Because count of crashes much more than affected users.
Appears 100 in background (according to Firebase)
Happens when app process is starting (from background) and app is trying to subscribe for Network events.
Fatal Exception: java.lang.RuntimeException: Unable to create application com.xx.xx.xx: java.lang.SecurityException: Package android does not belong to 1010401
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6724)
at android.app.ActivityThread.access$1300(ActivityThread.java:237)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1913)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:223)
at android.app.ActivityThread.main(ActivityThread.java:7664)
at java.lang.reflect.Method.invoke(Method.java)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:947)
Caused by java.lang.SecurityException: Package android does not belong to 1010401
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.listenForNetwork(IConnectivityManager.java:3609)
at android.net.ConnectivityManager.sendRequestForNetwork(ConnectivityManager.java:3685)
at android.net.ConnectivityManager.registerNetworkCallback(ConnectivityManager.java:4079)
at android.net.ConnectivityManager.registerNetworkCallback(ConnectivityManager.java:4049)
at com.xx.xx.xx.registerNetworkMonitor(xx.java:81)
at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1192)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6719)
at android.app.ActivityThread.access$1300(ActivityThread.java:237)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1913)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:223)
at android.app.ActivityThread.main(ActivityThread.java:7664)
at java.lang.reflect.Method.invoke(Method.java)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:947)
Caused by android.os.RemoteException: Remote stack trace:
at android.app.AppOpsManager.checkPackage(AppOpsManager.java:7739)
at com.android.server.ConnectivityService.ensureSufficientPermissionsForRequest(ConnectivityService.java:5444)
at com.android.server.ConnectivityService.listenForNetwork(ConnectivityService.java:5688)
at android.net.IConnectivityManager$Stub.onTransact(IConnectivityManager.java:1646)
at android.os.Binder.execTransactInternal(Binder.java:1154)
According to firebase it happens more than once for user. Because count of crashes much more than affected users.
Appears 100 in background (according to Firebase)
Happens when app process is starting (from background) and app is trying to subscribe for Network events.
Fatal Exception: java.lang.RuntimeException: Unable to create application com.xx.xx.xx: java.lang.SecurityException: Package android does not belong to 1010401
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6724)
at android.app.ActivityThread.access$1300(ActivityThread.java:237)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1913)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:223)
at android.app.ActivityThread.main(ActivityThread.java:7664)
at java.lang.reflect.Method.invoke(Method.java)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:947)
Caused by java.lang.SecurityException: Package android does not belong to 1010401
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.listenForNetwork(IConnectivityManager.java:3609)
at android.net.ConnectivityManager.sendRequestForNetwork(ConnectivityManager.java:3685)
at android.net.ConnectivityManager.registerNetworkCallback(ConnectivityManager.java:4079)
at android.net.ConnectivityManager.registerNetworkCallback(ConnectivityManager.java:4049)
at com.xx.xx.xx.registerNetworkMonitor(xx.java:81)
at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1192)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6719)
at android.app.ActivityThread.access$1300(ActivityThread.java:237)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1913)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:223)
at android.app.ActivityThread.main(ActivityThread.java:7664)
at java.lang.reflect.Method.invoke(Method.java)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:947)
Caused by android.os.RemoteException: Remote stack trace:
at android.app.AppOpsManager.checkPackage(AppOpsManager.java:7739)
at com.android.server.ConnectivityService.ensureSufficientPermissionsForRequest(ConnectivityService.java:5444)
at com.android.server.ConnectivityService.listenForNetwork(ConnectivityService.java:5688)
at android.net.IConnectivityManager$Stub.onTransact(IConnectivityManager.java:1646)
at android.os.Binder.execTransactInternal(Binder.java:1154)
ga...@gmail.com <ga...@gmail.com> #22
I too am seeing this same issue but when calling ConnectivityManager#registerNetworkCallback()
br...@procore.com <br...@procore.com> #23
This is happening way too frequently to be ignored. Its now our top crash.
Fatal Exception: java.lang.SecurityException: Package android does not belong to 10324
at android.os.Parcel.createExceptionOrNull(Parcel.java:2385)
at android.os.Parcel.createException(Parcel.java:2369)
at android.os.Parcel.readException(Parcel.java:2352)
at android.os.Parcel.readException(Parcel.java:2294)
at android.net.IConnectivityManager$Stub$Proxy.listenForNetwork(IConnectivityManager.java:4703)
at android.net.ConnectivityManager.sendRequestForNetwork(ConnectivityManager.java:4191)
at android.net.ConnectivityManager.registerNetworkCallback(ConnectivityManager.java:4594)
at android.net.ConnectivityManager.registerNetworkCallback(ConnectivityManager.java:4564)
at com.xx.xx$init$1.invokeSuspend(xx.java:76)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(BaseContinuationImpl.java:33)
at kotlinx.coroutines.internal.DispatchedContinuation.resumeUndispatchedWith(DispatchedContinuation.java:266)
at kotlinx.coroutines.DispatchedTaskKt.resume(DispatchedTaskKt.java:234)
at kotlinx.coroutines.DispatchedTaskKt.dispatch(DispatchedTaskKt.java:166)
at kotlinx.coroutines.CancellableContinuationImpl.dispatchResume(CancellableContinuationImpl.java:398)
at kotlinx.coroutines.CancellableContinuationImpl.resumeImpl(CancellableContinuationImpl.java:432)
at kotlinx.coroutines.CancellableContinuationImpl.resumeImpl$default(CancellableContinuationImpl.java:421)
at kotlinx.coroutines.CancellableContinuationImpl.resumeUndispatched(CancellableContinuationImpl.java:519)
at kotlinx.coroutines.android.HandlerContext$scheduleResumeAfterDelay$$inlined$Runnable$1.run(HandlerContext.java:19)
at android.os.Handler.handleCallback(Handler.java:938)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:246)
at android.app.ActivityThread.main(ActivityThread.java:8512)
at java.lang.reflect.Method.invoke(Method.java)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:602)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1130)
Fatal Exception: java.lang.SecurityException: Package android does not belong to 10324
at android.os.Parcel.createExceptionOrNull(Parcel.java:2385)
at android.os.Parcel.createException(Parcel.java:2369)
at android.os.Parcel.readException(Parcel.java:2352)
at android.os.Parcel.readException(Parcel.java:2294)
at android.net.IConnectivityManager$Stub$Proxy.listenForNetwork(IConnectivityManager.java:4703)
at android.net.ConnectivityManager.sendRequestForNetwork(ConnectivityManager.java:4191)
at android.net.ConnectivityManager.registerNetworkCallback(ConnectivityManager.java:4594)
at android.net.ConnectivityManager.registerNetworkCallback(ConnectivityManager.java:4564)
at com.xx.xx$init$1.invokeSuspend(xx.java:76)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(BaseContinuationImpl.java:33)
at kotlinx.coroutines.internal.DispatchedContinuation.resumeUndispatchedWith(DispatchedContinuation.java:266)
at kotlinx.coroutines.DispatchedTaskKt.resume(DispatchedTaskKt.java:234)
at kotlinx.coroutines.DispatchedTaskKt.dispatch(DispatchedTaskKt.java:166)
at kotlinx.coroutines.CancellableContinuationImpl.dispatchResume(CancellableContinuationImpl.java:398)
at kotlinx.coroutines.CancellableContinuationImpl.resumeImpl(CancellableContinuationImpl.java:432)
at kotlinx.coroutines.CancellableContinuationImpl.resumeImpl$default(CancellableContinuationImpl.java:421)
at kotlinx.coroutines.CancellableContinuationImpl.resumeUndispatched(CancellableContinuationImpl.java:519)
at kotlinx.coroutines.android.HandlerContext$scheduleResumeAfterDelay$$inlined$Runnable$1.run(HandlerContext.java:19)
at android.os.Handler.handleCallback(Handler.java:938)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:246)
at android.app.ActivityThread.main(ActivityThread.java:8512)
at java.lang.reflect.Method.invoke(Method.java)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:602)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1130)
he...@gmail.com <he...@gmail.com> #24
Does anyone have good workarounds for this? Should we just try-catch the ConnectivityManager
call?
va...@gmail.com <va...@gmail.com> #25
>> #24
Datadog SDK for Android has a try catch,https://github.com/microsoft/cpp_client_telemetry/pull/798/files . Though, a back-off retry logic might also satisfy functional needs.
Datadog SDK for Android has a try catch,
a....@gmail.com <a....@gmail.com> #26
Comment has been deleted.
a....@gmail.com <a....@gmail.com> #27
We also faced this problem. An exception is thrown when registering a callback in ConnectivityManager:
java.lang.SecurityException: Package android does not belong to 10476
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.listenForNetwork(IConnectivityManager.java:3696)
at android.net.ConnectivityManager.sendRequestForNetwork(ConnectivityManager.java:3783)
at android.net.ConnectivityManager.registerNetworkCallback(ConnectivityManager.java:4177)
at android.net.ConnectivityManager.registerNetworkCallback(ConnectivityManager.java:4147)
And as I can see in the logs this is the UID of our application. Here are some details that I can provide based on the source code and the stacktrace:
- It happens on application start up;
- We don't keep link to ConnectivityManager;
- context.getSystemService(Context.CONNECTIVITY_SERVICE) invocation returns ConnectivityManager with wrong packageName in the context;
- SystemServiceRegistry.StaticApplicationContextServiceFetcher#getService may be violated or somehow contain cached instance that was initialized previously.
am...@gmail.com <am...@gmail.com> #28
We are also facing the same issue with Android 11(OnePlus 6 Device). Below is the stack trace of the crash.
java.lang.SecurityException: Package android does not belong to 10470
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)
java.lang.SecurityException: Package android does not belong to 10470
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)
ra...@freshworks.com <ra...@freshworks.com> #29
We see this crash on a POCO X2 device when getNetworkCapabilities is invoked (only on Android 11)
Caused by java.lang.SecurityException: Package android does not belong to 10025
at android.os.Parcel.createExceptionOrNull(Parcel.java:2376)
at android.os.Parcel.createException(Parcel.java:2360)
at android.os.Parcel.readException(Parcel.java:2343)
at android.os.Parcel.readException(Parcel.java:2285)
at android.net.IConnectivityManager$Stub$Proxy.getNetworkCapabilities(IConnectivityManager.java:2456)
Caused by android.os.RemoteException
Remote stack trace: at android.app.AppOpsManager.checkPackage(AppOpsManager.java:7794) at com.android.server.ConnectivityService.getNetworkCapabilities(ConnectivityService.java:1778) at android.net.IConnectivityManager$Stub.onTransact(IConnectivityManager.java:978) at android.os.Binder.execTransactInternal(Binder.java:1154) at android.os.Binder.execTransact(Binder.java:1123)
Any ETA on the fix or a reliable workaround ?
Caused by java.lang.SecurityException: Package android does not belong to 10025
at android.os.Parcel.createExceptionOrNull(Parcel.java:2376)
at android.os.Parcel.createException(Parcel.java:2360)
at android.os.Parcel.readException(Parcel.java:2343)
at android.os.Parcel.readException(Parcel.java:2285)
at android.net.IConnectivityManager$Stub$Proxy.getNetworkCapabilities(IConnectivityManager.java:2456)
Caused by android.os.RemoteException
Remote stack trace: at android.app.AppOpsManager.checkPackage(AppOpsManager.java:7794) at com.android.server.ConnectivityService.getNetworkCapabilities(ConnectivityService.java:1778) at android.net.IConnectivityManager$Stub.onTransact(IConnectivityManager.java:978) at android.os.Binder.execTransactInternal(Binder.java:1154) at android.os.Binder.execTransact(Binder.java:1123)
Any ETA on the fix or a reliable workaround ?
sh...@gmail.com <sh...@gmail.com> #30
Comment has been deleted.
ar...@timesinternet.in <ar...@timesinternet.in> #31
Any updates on this crash. 100% OS 11 & 100% in background. This is spread across all brands.
Fatal Exception: java.lang.SecurityException: Package android does not belong to 10267
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:2456)
at android.net.ConnectivityManager.getNetworkCapabilities(ConnectivityManager.java:1385)
at androidx.work.impl.constraints.trackers.NetworkStateTracker.isActiveNetworkValidated(NetworkStateTracker.java:149)
at androidx.work.impl.constraints.trackers.NetworkStateTracker.getActiveNetworkState(NetworkStateTracker.java:138)
at androidx.work.impl.constraints.trackers.NetworkStateTracker.getInitialState(NetworkStateTracker.java:80)
at androidx.work.impl.constraints.trackers.NetworkStateTracker.getInitialState(NetworkStateTracker.java:50)
at androidx.work.impl.constraints.trackers.ConstraintTracker.addListener(ConstraintTracker.java:67)
at androidx.work.impl.constraints.controllers.ConstraintController.replace(ConstraintController.java:99)
at androidx.work.impl.constraints.WorkConstraintsTracker.replace(WorkConstraintsTracker.java:106)
at androidx.work.impl.background.greedy.GreedyScheduler.schedule(GreedyScheduler.java:163)
at androidx.work.impl.Schedulers.schedule(Schedulers.java:117)
at androidx.work.impl.WorkerWrapper.onWorkFinished(WorkerWrapper.java:362)
at androidx.work.impl.WorkerWrapper$2.run(WorkerWrapper.java:318)
at androidx.work.impl.utils.SerialExecutor$Task.run(SerialExecutor.java:91)
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)
-----
Similar crash only on Samsung devices OS 11
Fatal Exception: java.lang.SecurityException: Package android does not belong to 10314
at android.os.Parcel.createExceptionOrNull(Parcel.java:2385)
at android.os.Parcel.createException(Parcel.java:2369)
at android.os.Parcel.readException(Parcel.java:2352)
at android.os.Parcel.readException(Parcel.java:2294)
at android.net.IConnectivityManager$Stub$Proxy.getNetworkCapabilities(IConnectivityManager.java:3347)
at android.net.ConnectivityManager.getNetworkCapabilities(ConnectivityManager.java:1549)
at androidx.work.impl.constraints.trackers.NetworkStateTracker.isActiveNetworkValidated(NetworkStateTracker.java:149)
at androidx.work.impl.constraints.trackers.NetworkStateTracker.getActiveNetworkState(NetworkStateTracker.java:138)
at androidx.work.impl.constraints.trackers.NetworkStateTracker.getInitialState(NetworkStateTracker.java:80)
at androidx.work.impl.constraints.trackers.NetworkStateTracker.getInitialState(NetworkStateTracker.java:50)
at androidx.work.impl.constraints.trackers.ConstraintTracker.addListener(ConstraintTracker.java:67)
at androidx.work.impl.constraints.controllers.ConstraintController.replace(ConstraintController.java:99)
at androidx.work.impl.constraints.WorkConstraintsTracker.replace(WorkConstraintsTracker.java:106)
at androidx.work.impl.background.greedy.GreedyScheduler.schedule(GreedyScheduler.java:163)
at androidx.work.impl.background.greedy.DelayedWorkTracker$1.run(DelayedWorkTracker.java:75)
at android.os.Handler.handleCallback(Handler.java:938)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:246)
at android.app.ActivityThread.main(ActivityThread.java:8587)
at java.lang.reflect.Method.invoke(Method.java)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:602)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1130)
Caused by android.os.RemoteException: Remote stack trace:
at android.app.AppOpsManager.checkPackage(AppOpsManager.java:7783)
at com.android.server.ConnectivityService.getNetworkCapabilities(ConnectivityService.java:2295)
at android.net.IConnectivityManager$Stub.onTransact(IConnectivityManager.java:1357)
at android.os.Binder.execTransactInternal(Binder.java:1190)
at android.os.Binder.execTransact(Binder.java:1159)
Fatal Exception: java.lang.SecurityException: Package android does not belong to 10267
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:2456)
at android.net.ConnectivityManager.getNetworkCapabilities(ConnectivityManager.java:1385)
at androidx.work.impl.constraints.trackers.NetworkStateTracker.isActiveNetworkValidated(NetworkStateTracker.java:149)
at androidx.work.impl.constraints.trackers.NetworkStateTracker.getActiveNetworkState(NetworkStateTracker.java:138)
at androidx.work.impl.constraints.trackers.NetworkStateTracker.getInitialState(NetworkStateTracker.java:80)
at androidx.work.impl.constraints.trackers.NetworkStateTracker.getInitialState(NetworkStateTracker.java:50)
at androidx.work.impl.constraints.trackers.ConstraintTracker.addListener(ConstraintTracker.java:67)
at androidx.work.impl.constraints.controllers.ConstraintController.replace(ConstraintController.java:99)
at androidx.work.impl.constraints.WorkConstraintsTracker.replace(WorkConstraintsTracker.java:106)
at androidx.work.impl.background.greedy.GreedyScheduler.schedule(GreedyScheduler.java:163)
at androidx.work.impl.Schedulers.schedule(Schedulers.java:117)
at androidx.work.impl.WorkerWrapper.onWorkFinished(WorkerWrapper.java:362)
at androidx.work.impl.WorkerWrapper$2.run(WorkerWrapper.java:318)
at androidx.work.impl.utils.SerialExecutor$Task.run(SerialExecutor.java:91)
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)
-----
Similar crash only on Samsung devices OS 11
Fatal Exception: java.lang.SecurityException: Package android does not belong to 10314
at android.os.Parcel.createExceptionOrNull(Parcel.java:2385)
at android.os.Parcel.createException(Parcel.java:2369)
at android.os.Parcel.readException(Parcel.java:2352)
at android.os.Parcel.readException(Parcel.java:2294)
at android.net.IConnectivityManager$Stub$Proxy.getNetworkCapabilities(IConnectivityManager.java:3347)
at android.net.ConnectivityManager.getNetworkCapabilities(ConnectivityManager.java:1549)
at androidx.work.impl.constraints.trackers.NetworkStateTracker.isActiveNetworkValidated(NetworkStateTracker.java:149)
at androidx.work.impl.constraints.trackers.NetworkStateTracker.getActiveNetworkState(NetworkStateTracker.java:138)
at androidx.work.impl.constraints.trackers.NetworkStateTracker.getInitialState(NetworkStateTracker.java:80)
at androidx.work.impl.constraints.trackers.NetworkStateTracker.getInitialState(NetworkStateTracker.java:50)
at androidx.work.impl.constraints.trackers.ConstraintTracker.addListener(ConstraintTracker.java:67)
at androidx.work.impl.constraints.controllers.ConstraintController.replace(ConstraintController.java:99)
at androidx.work.impl.constraints.WorkConstraintsTracker.replace(WorkConstraintsTracker.java:106)
at androidx.work.impl.background.greedy.GreedyScheduler.schedule(GreedyScheduler.java:163)
at androidx.work.impl.background.greedy.DelayedWorkTracker$1.run(DelayedWorkTracker.java:75)
at android.os.Handler.handleCallback(Handler.java:938)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:246)
at android.app.ActivityThread.main(ActivityThread.java:8587)
at java.lang.reflect.Method.invoke(Method.java)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:602)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1130)
Caused by android.os.RemoteException: Remote stack trace:
at android.app.AppOpsManager.checkPackage(AppOpsManager.java:7783)
at com.android.server.ConnectivityService.getNetworkCapabilities(ConnectivityService.java:2295)
at android.net.IConnectivityManager$Stub.onTransact(IConnectivityManager.java:1357)
at android.os.Binder.execTransactInternal(Binder.java:1190)
at android.os.Binder.execTransact(Binder.java:1159)
ad...@google.com <ad...@google.com> #32
The issue has been fixed in Android S and above.
ga...@gmail.com <ga...@gmail.com> #33
The issue is happening in Android R (11-api-30). Is there a fix for earlier versions of Android?
ad...@google.com <ad...@google.com> #34
If it's Pixel then the fix will apply when the devices will get upgraded from R to S. For any non-Pixel devices, device manufacturers have been shared the fix, but its upto the device manufacturer to plan for and apply it to R devices.
[Deleted User] <[Deleted User]> #35
Wanted to +1 that this is the top crash in our app as well. For now, given the circumstances, we will have to catch the error and forego this functionality which is actually important to our app. Not ideal.
li...@gmail.com <li...@gmail.com> #36
+1 We see this/a similar issue in our app as well.
Fatal Exception: java.lang.RuntimeException
Unable to create application com.adeptmobile.alliance.bootstrap.AllianceApplication: java.lang.SecurityException: Package android does not belong to 10479
Caused by android.os.RemoteException
Remote stack trace: at android.app.AppOpsManager.checkPackage(AppOpsManager.java:7783) at com.android.server.ConnectivityService.ensureSufficientPermissionsForRequest(ConnectivityService.java:8546) at com.android.server.ConnectivityService.requestNetwork(ConnectivityService.java:8648) at android.net.IConnectivityManager$Stub.onTransact(IConnectivityManager.java:2051) at android.os.Binder.execTransactInternal(Binder.java:1190)
Fatal Exception: java.lang.RuntimeException
Unable to create application com.adeptmobile.alliance.bootstrap.AllianceApplication: java.lang.SecurityException: Package android does not belong to 10479
Caused by android.os.RemoteException
Remote stack trace: at android.app.AppOpsManager.checkPackage(AppOpsManager.java:7783) at com.android.server.ConnectivityService.ensureSufficientPermissionsForRequest(ConnectivityService.java:8546) at com.android.server.ConnectivityService.requestNetwork(ConnectivityService.java:8648) at android.net.IConnectivityManager$Stub.onTransact(IConnectivityManager.java:2051) at android.os.Binder.execTransactInternal(Binder.java:1190)
lb...@gmail.com <lb...@gmail.com> #37
Wait, this was marked as fixed on Android S (Android 12), and there is no way to solve it for older Android versions? Not even one workaround?
ka...@gmail.com <ka...@gmail.com> #38
Comment has been deleted.
ka...@gmail.com <ka...@gmail.com> #39
Thus this issue was fixed on Android s and above , is there any workaround for android 11(R)? I am facing similar issue...
java.lang.SecurityException: Package android does not belong to 10308
android.app.ActivityThread.handleBindApplication
java.lang.SecurityException: Package android does not belong to 10308
android.app.ActivityThread.handleBindApplication
mo...@gmail.com <mo...@gmail.com> #40
I'm facing similar issue too...
On top of that, this crash is greatly reducing the crash-free rate of the app.
Is there any workaround in Android 11 except to avoid crashes with try catch?
I'm not too keen on the concern that instead of not crashing, some of the features of the app will likely be unusable.
On top of that, this crash is greatly reducing the crash-free rate of the app.
Is there any workaround in Android 11 except to avoid crashes with try catch?
I'm not too keen on the concern that instead of not crashing, some of the features of the app will likely be unusable.
ms...@vivino.com <ms...@vivino.com> #41
Saying "The issue has been fixed in Android S and above." isn't really helping as the users might be stuck on OS 11 for the remainder of their device life time.
is...@gmail.com <is...@gmail.com> #42
what is the fix from the framework level? Please share here.
[Deleted User] <[Deleted User]> #43
Any workaround for this? it is happening in android OS 11
ch...@beyls.net <ch...@beyls.net> #44
Can someone from Google explain the cause of the issue, so we can know in which conditions it happens and figure out a workaround ?
va...@wandera.com <va...@wandera.com> #46
In what OS versions can we see this fix? I hope it will be backported to Android 11.
Is there any workaround for Android 11 for the time being?
Is there any workaround for Android 11 for the time being?
ni...@ironvest.com <ni...@ironvest.com> #47
Any workaround for Android below 12?
Description
When using the connectivity manager, registering a callback sometimes throws an exceptionhttps://github.com/DataDog/dd-sdk-android/pull/400/files
Package does not belong to XXX
. Other libraries like datadog have been experiencing similar problems and are just using a simple try/catch to prevent the crash.Currently I am registering a callback via
and there are error logs which I have not been able to reproduce. 99% of devices affected are Pixel devices (2/3) running android 11.