java.lang.SecurityException: Permission Denial: service asks to run as user -2 but is calling from user 0; this requires android.permission.INTERACT_ACROSS_USERS_FULL or android.permission.INTERACT_ACROSS_USERS at android.os.Parcel.readException(Parcel.java:1620) at android.os.Parcel.readException(Parcel.java:1573) at android.app.ActivityManagerProxy.startService(ActivityManagerNative.java:4400)

GitHub | hacksoldier98 | 5 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    GitHub comment 7386#250994186

    GitHub | 5 months ago | hacksoldier98
    java.lang.SecurityException: Permission Denial: service asks to run as user -2 but is calling from user 0; this requires android.permission.INTERACT_ACROSS_USERS_FULL or android.permission.INTERACT_ACROSS_USERS at android.os.Parcel.readException(Parcel.java:1620) at android.os.Parcel.readException(Parcel.java:1573) at android.app.ActivityManagerProxy.startService(ActivityManagerNative.java:4400)

    Root Cause Analysis

    1. java.lang.SecurityException

      Permission Denial: service asks to run as user -2 but is calling from user 0; this requires android.permission.INTERACT_ACROSS_USERS_FULL or android.permission.INTERACT_ACROSS_USERS at android.os.Parcel.readException(Parcel.java:1620) at android.os.Parcel.readException(Parcel.java:1573) at android.app.ActivityManagerProxy.startService(ActivityManagerNative.java:4400)

      at com.android.commands.am.Am.runStartService()
    2. com.android.commands
      Am.onRun
      1. com.android.commands.am.Am.runStartService(Am.java:790)
      2. com.android.commands.am.Am.onRun(Am.java:364)
      2 frames
    3. Android
      BaseCommand.run
      1. com.android.internal.os.BaseCommand.run(BaseCommand.java:47)
      1 frame
    4. com.android.commands
      Am.main
      1. com.android.commands.am.Am.main(Am.java:103)
      1 frame
    5. Android
      RuntimeInit.main
      1. com.android.internal.os.RuntimeInit.nativeFinishInit(Native Method)
      2. com.android.internal.os.RuntimeInit.main(RuntimeInit.java:257)
      2 frames