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

Stack Overflow | dev1993 | 9 months ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    Security exception: Unable to start service. User 0 is restricted

    Stack Overflow | 9 months ago | dev1993
    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
  2. 0

    App crash on startup on some devices without Google services

    GitHub | 2 years ago | maxme
    java.lang.RuntimeException: Unable to create application org.wordpress.android.WordPress: java.lang.SecurityException: Not allowed to start service Intent { act=com.google.android.c2dm.intent.REGISTER pkg=com.google.android.gsf (has extras) } without permission com.google.android.c2dm.permission.RECEIVE
  3. 0

    Crash on Applciation recreate

    Stack Overflow | 3 years ago | Andrey T
    java.lang.RuntimeException: Unable to create application com.example.MyApplication: java.lang.SecurityException: Unable to find app for caller android.app.ApplicationThreadProxy@45b256a8 (pid=997) when starting service Intent { cmp=com.example.app/com.example.services.exampleRequestService (has extras) }
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Android - java.lang.Security Exception

    Stack Overflow | 2 years ago | Vinicius Martin
    java.lang.SecurityException: Not allowed to start service Intent { act=SERVICE_1 (has extras) } without permission not exported from uid 10022
  6. 0

    Permission on IntentService with Eclair 2.1

    Stack Overflow | 6 years ago | mike
    java.lang.SecurityException: Not allowed to start service Intent { act=xy.android.myapp.pkg2.REMOTE_LIST cmp=xy.android.myapp.pkg2/.Service (has extras) } without permission xy.android.myapp.ACCESS_SERVICE
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. 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()
  2. Android Platform
    ContextWrapper.startService
    1. android.app.ContextImpl.startServiceCommon(ContextImpl.java:1728)
    2. android.app.ContextImpl.startService(ContextImpl.java:1701)
    3. android.content.ContextWrapper.startService(ContextWrapper.java:516)
    3 frames
  3. com.myapp
    MyApplication.onCreate
    1. com.myapp.MyApplication.onCreate(MyApplication.java:105)
    1 frame
  4. Android Platform
    ActivityThread.main
    1. android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1012)
    2. android.app.ActivityThread.handleBindApplication(ActivityThread.java:4685)
    3. android.app.ActivityThread.access$1600(ActivityThread.java:164)
    4. android.app.ActivityThread$H.handleMessage(ActivityThread.java:1438)
    5. android.os.Handler.dispatchMessage(Handler.java:102)
    6. android.os.Looper.loop(Looper.java:150)
    7. android.app.ActivityThread.main(ActivityThread.java:5408)
    7 frames
  5. Java RT
    Method.invoke
    1. java.lang.reflect.Method.invoke(Method.java)
    2. java.lang.reflect.Method.invoke(Method.java:372)
    2 frames
  6. Android
    ZygoteInit.main
    1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:964)
    2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:759)
    2 frames