java.lang.SecurityException: Neither user 10031 nor current process has android.permission.DEVICE_POWER.

Stack Overflow | user2879697 | 10 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

    Device_POWER permission is not working for powerManager.goToSleep(SystemClock.uptimeMillis())

    Stack Overflow | 10 months ago | user2879697
    java.lang.SecurityException: Neither user 10031 nor current process has android.permission.DEVICE_POWER.
  2. 0

    screen off on button click

    Stack Overflow | 4 years ago | Geethu
    java.lang.SecurityException: Neither user 10079 nor current process has android.permission.DEVICE_POWER. 01-14 16:06:00.875: E/AndroidRuntime(9317): at android.os.Parcel.readException(Parcel.java:1322) 01-14 16:06:00.875: E/AndroidRuntime(9317): at android.os.Parcel.readException(Parcel.java:1276)
  3. 0

    [APP][REQUEST][CODE] Android PowerManager - … | Android Development and Hacking | XDA Forums

    xda-developers.com | 2 years ago
    java.lang.SecurityException: Neither user 10165 nor current process has android.permission.DEVICE_POWER.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Neither user 10211 nor current process has android.permission.READ_PHONE_STATE.

    GitHub | 2 months ago | yazhi1992
    java.lang.SecurityException: getSubscriberId: Neither user 10211 nor current process has android.permission.READ_PHONE_STATE.

    Root Cause Analysis

    1. java.lang.SecurityException

      Neither user 10031 nor current process has android.permission.DEVICE_POWER.

      at android.os.Parcel.readException()
    2. Android Platform
      PowerManager.goToSleep
      1. android.os.Parcel.readException(Parcel.java:1465)
      2. android.os.Parcel.readException(Parcel.java:1419)
      3. android.os.IPowerManager$Stub$Proxy.goToSleep(IPowerManager.java:441)
      4. android.os.PowerManager.goToSleep(PowerManager.java:481)
      4 frames
    3. com.mdt.hds
      RemoteService$MessageHandler.handleMessage
      1. com.mdt.hds.service.RemoteService$MessageHandler.handleMessage(RemoteService.java:53)
      1 frame
    4. Android Platform
      ActivityThread.main
      1. android.os.Handler.dispatchMessage(Handler.java:102)
      2. android.os.Looper.loop(Looper.java:136)
      3. android.app.ActivityThread.main(ActivityThread.java:5001)
      3 frames
    5. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invokeNative(Native Method)
      2. java.lang.reflect.Method.invoke(Method.java:515)
      2 frames
    6. Android
      ZygoteInit.main
      1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:785)
      2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:601)
      2 frames