java.lang.SecurityException: Unable to start service Intent { cmp=com.myapp/.background.MyService }: Unable to launch app com.myapp/10232 for service Intent { cmp=com.myapp/.background.MyService }: user 0 is restricted

Hot problem!
This exception has a lot of traffic. You can help 19 users by writing a short tip.

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Stack Overflow by dev1993
, 1 year ago
Unable to start service Intent { cmp=com.myapp/.background.MyService }: Unable to launch app com.myapp/10232 for service Intent { cmp=com.myapp/.background.MyService }: user 0 is restricted
via Stack Overflow by gaara87
, 1 year ago
Unable to start service Intent { act=com.google.firebase.crash.internal.service.FirebaseCrashReceiverService.SAVE cmp=com.sample.android/com.google.firebase.crash.internal.service.FirebaseCrashReceiverService (has extras) }: Unable to launch app
via Stack Overflow by oiZo
, 2 years ago
Not allowed to start service Intent { act=com.google.android.c2dm.intent.REGISTER pkg=com.google.android.gms (has extras) } without permission com.google.android.c2dm.permission.RECEIVE
via GitHub by icespring
, 6 months ago
Unable to start service Intent { cmp=./com.tencent.tinker.lib.service.TinkerPatchService (has extras) }: Unable to launch app 10119 for service Intent { cmp=./com.tencent.tinker.lib.service.TinkerPatchService }: process is bad
via GitHub by askirk
, 8 months ago
Unable to start service Intent { smartdevicelink.service.SdlRouterService }: Unable to launch app for service Intent { cmp=smartdevicelink.service.SdlRouterService }: process is bad
via GitHub by jfsso
, 1 year ago
Unable to start service Intent { cmp=com.drivemode.android/io.intercom.android.sdk.gcm.IntercomGcmRegistrationService }: Unable to launch app com.drivemode.android/10133 for service Intent { cmp=com.drivemode.android/io.intercom.android.sdk.gcm.IntercomGcmRegistrationService }: user 0 is restricted
java.lang.SecurityException: Unable to start service Intent { cmp=com.myapp/.background.MyService }: Unable to launch app com.myapp/10232 for service Intent { cmp=com.myapp/.background.MyService }: user 0 is restricted
at android.app.ContextImpl.startServiceCommon(ContextImpl.java:1728)
at android.app.ContextImpl.startService(ContextImpl.java:1701)
at android.content.ContextWrapper.startService(ContextWrapper.java:516)
at com.myapp.MyApplication.onCreate(MyApplication.java:105)
at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1012)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4685)
at android.app.ActivityThread.access$1600(ActivityThread.java:164)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1438)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:150)
at android.app.ActivityThread.main(ActivityThread.java:5408)
at java.lang.reflect.Method.invoke(Method.java)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:964)

Users with the same issue

Once, 3 months ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
2 times, 1 year ago
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 2 years ago
12 more bugmates

Know the solutions? Share your knowledge to help other developers to debug faster.