This exception is coming on my main activity:
java.lang.RuntimeException: Unable to pause activity:
java.lang.SecurityException: uid does not have android.permission.UPDATE_DEVICE_STATS
I have noticed that this is coming on Android 6.0.1 (Marshmallow) and device is Samsung Galaxy J7. When I researched about the permission UPDATE_DEVICE_STATS
, I found out that this permission is needed by system apps.
Can anyone please guide me why this exception suddenly started to showing up as my app is running fine on other devices.