java.lang.SecurityException: setTime: Neither user 10227 nor current process has android.permission.SET_TIME.

Stack Overflow | narb | 7 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

    My code crashes with set_time permission issue

    Stack Overflow | 7 months ago | narb
    java.lang.SecurityException: setTime: Neither user 10227 nor current process has android.permission.SET_TIME.
  2. 0

    Set Android's date/time programmatically

    Stack Overflow | 5 years ago | eliangela
    java.lang.RuntimeException: Unable to start activity ComponentInfo{br.com.tdta.service/br.com.tdta.service.Service}: java.lang.SecurityException: setTime: Neither user 10038 nor current process has android.permission.SET_TIME.
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.SecurityException

      setTime: Neither user 10227 nor current process has android.permission.SET_TIME.

      at android.os.Parcel.readException()
    2. Android Platform
      AlarmManager.setTime
      1. android.os.Parcel.readException(Parcel.java:1465)
      2. android.os.Parcel.readException(Parcel.java:1419)
      3. android.app.IAlarmManager$Stub$Proxy.setTime(IAlarmManager.java:191)
      4. android.app.AlarmManager.setTime(AlarmManager.java:512)
      4 frames
    3. com.bernard.settime
      MainActivity.onCreate
      1. com.bernard.settime.MainActivity.onCreate(MainActivity.java:20)
      1 frame